Skip to content

NumPy x86_64-v2 baseline rejected: “X86_V2 but your machine doesn't support” (AT_HWCAP too low?) #3369

@yzewei

Description

@yzewei

Q

Importing NumPy fails with:
“NumPy was built with baseline optimizations: (X86_V2) but your machine doesn't support (X86_V2).”

CPUID/auxv exposure doesn't reach x86_64‑v2 baseline.

Env

  • Host arch: loongarch64 (Loongson-3A5000LL)
  • Python: python-standalone 3.11
  • NumPy: 2.4.0 (x86_64 wheel)
  • Command:
    BOX64_LOG=1 box64 python3 -c "import numpy"

Logs

RuntimeError: NumPy was built with baseline optimizations: (X86_V2) but your machine doesn't support: (X86_V2).

Also see:
[BOX64] Warning, CPUID command 80000000 unsupported ...

Sum

Box64 exposes CPUID features via my_cpuid_common.c, but AT_HWCAP is set in src/tools/box64stack.c with only v1‑level flags (SSE/SSE2, etc.).
NumPy’s baseline check likely uses getauxval(AT_HWCAP) (or glibc’s cpu feature detection), so it still sees “not v2”, even if CPUID env vars (BOX64_SSE42/BOX64_AVX) are set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions