cockroachdb / cockroachdb/cockroach
Fatal glibc error: CPU does not support x86-64-v2 (Only on version 23.2 earlier versions work fine)
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
Andrew Werner suggested that I post the issue here!
**Describe the problem**
CockroachDB 23.2 needs x86-64-v2 architecture (might be SSE4.2 only that's needed) to run. Older versions don't need it!
**To Reproduce**
Use an x64 CPU that does NOT support x86-64-v2 architecture (most likely candidate is SSE4.2 that needs to be missing. But it could possibly be caused by popcnt, SSE4.1, or SSSE3 ) and try to install Cockroachdb version 23.2 using the docker containers. Specifically on top of a bare metal Kubernetes cluster (1.28) configured using kubeadm. Although the actual hardware wasn't bare metal, it was run on Virtual Machines but the bare metal installation process was followed.
This is NOT a problem on the 23.1.xx versions of CockroachDB.
The init containers will give the error:
`Fatal glibc error: CPU does not support x86-64-v2`
**Expected behavior**
Install and start successfully!
**Environment:**
- CockroachDB version 23.2
- Server OS: Ubuntu
- Hardware: Virtual Machine reporting CPU as - QEMU Virtual CPU version 2.5+
- Client app CockroachDB init container
**Additional context**
This is a virtual machine purchased from a datacenter in South Africa. I have requested if a CPU upgrade with the needed architecture was available but haven't heard anything back yet. So for not I am only running on version 23.1, upgrading isn't possible. I was really looking forward to using the READ COMMITED feature and the new query planner that fixes a couple of the queries that we run very often.

Jira issue: CRDB-35973
Contributor guide
Assessment
This issue has not been assessed yet.