Skip to content

BUG: CPU Feature Checks Fail on OpenBSD 7.5 #26785

@AngeloD2022

Description

@AngeloD2022

Describe the issue:

My machine is running on an Intel Celeron 3855U, which according to Intel's website, does not support advanced vector extensions.

When I run pip install numpy, it needs to build from source. I assume that this is because of my relatively uncommon configuration. Nevertheless, numpy's build script appears to misrecognize my CPU's capabilities and incorrectly enables the AVX targets. Thinking I could resolve this by building numpy from source, I cloned the repository and ran the suggested command from numpy's official documentation, to manually disable the AVX features. The build appears to fail for the same reason (the related log is attached).

install_log.txt

Reproduce the code example:

CPU: Intel Celeron 3855U
OS: OpenBSD 7.5 (amd64)
Python: 3.11.9
NumPy: 2.0.0
python3.11 -m venv venv
source venv/bin/activate
pip install numpy

Error message:

Log is too big to display here, see install_log.txt

Python and NumPy Versions:

Python: 3.11.9
NumPy: 2.0.0

Runtime Environment:

N/A

Context for the issue:

This prevents usage of numpy, as well as any dependent package on machines that:

  • Run OpenBSD 7.5 (but potentially other versions as well)
  • Use an x86 CPU that does not support advanced vector extensions.

Metadata

Metadata

Assignees

Labels

00 - Bug32 - InstallationProblems installing or compiling NumPycomponent: SIMDIssues in SIMD (fast instruction sets) code or machinery

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions