Skip to content

BUG: CPU detection fails in windows VM running on ARM Mac #25604

@ngoldbaum

Description

@ngoldbaum

Describe the issue:

When I try to build numpy in the default configuration on an ARM Mac running an ARM Windows 11 VM via qemu, I get the build error below.

Building with spin build --clean -- -Ddisable-optimization=True lets me build though so this isn't a showstopper for my debugging session.

Reproduce the code example:

N/A

Error message:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Nathan Goldbaum\numpy\build-install\usr\Lib\site-packages\numpy\__init__.py", line 114, in <module>
    from numpy.__config__ import show as show_config
  File "C:\Users\Nathan Goldbaum\numpy\build-install\usr\Lib\site-packages\numpy\__config__.py", line 4, in <module>
    from numpy._core._multiarray_umath import (
  File "C:\Users\Nathan Goldbaum\numpy\build-install\usr\Lib\site-packages\numpy\_core\__init__.py", line 23, in <module>
    from . import multiarray
  File "C:\Users\Nathan Goldbaum\numpy\build-install\usr\Lib\site-packages\numpy\_core\multiarray.py", line 10, in <module>
    from . import overrides
  File "C:\Users\Nathan Goldbaum\numpy\build-install\usr\Lib\site-packages\numpy\_core\overrides.py", line 8, in <module>
    from numpy._core._multiarray_umath import (
RuntimeError: NumPy was built with baseline optimizations:
(NEON NEON_FP16 NEON_VFPV4 ASIMD) but your machine doesn't support:
(NEON).

Python and NumPy Versions:

python 3.12.1 installed via python.org installer, numpy main.

Runtime Environment:

numpy doesn't install so I can't get this far.

Context for the issue:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    00 - Bugcomponent: 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