New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: getauxval declaration invalid, causes compile issues #21386
Comments
Just for reference, the previous commit works just fine:
|
Would you like to make a PR? |
Sounds like the issue is that |
I'll do a PR if someone tells me what the correct fix is? Or are you suggesting that I reverse the change that broke things? |
This came from #18169 which has no comments about the need for this code. Perhaps clang and gcc differ here? In any case, the conservative move would be to fix the current code. It would be nice if @devnexen could explain how they tested #18169 and why they needed to add the wrapper around |
I might suggest to guard for Linux only the line 582. |
FWIW, the wrapper around re: CI, I don't have time at the moment, but would the numpy project accept the addition of Cirrus CI if a PR comes along that adds it? I think Cirrus is just about the best game in town for FreeBSD runners. |
Describe the issue:
Trying to install numpy, (main branch) on FreeBSD/aarch64 (aka arm64), using clang, and I get the following compile error:
It is very clear that this is the case by code inspection:
https://github.com/numpy/numpy/blob/main/numpy/core/src/common/npy_cpu_features.c.src#L582
Reproduce the code example:
# I can't install numpy so there is no code to reproduce.
Error message:
# see above.
NumPy/Python version information:
Main branch as of a few minutes before I filed this issue, the install was attempted via:
Python version:
FreeBSD version info:
The text was updated successfully, but these errors were encountered: