Skip to content

BUG: Win/Arm64 targets broken due to missing __popcnt intrinsics #20930

@niyas-sait

Description

@niyas-sait

Describe the issue:

Numpy is broken for windows/arm64 target due to the use of __popcnt and its variants. Those intrinsics are not available with arm64 msvc intrinsics

https://docs.microsoft.com/en-us/cpp/intrinsics/popcnt16-popcnt-popcnt64?view=msvc-170

Reproduce the code example:

pip install .

Error message:

No response

NumPy/Python version information:

1.23.0.dev0+534.g49f9feeba 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 18:46:00) [MSC v.1929 64 bit (ARM64)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions