-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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: Regression on glibc=2.17 for complex arctanh signbit #25087
Comments
BTW: While looking for possibly existing issue in https://github.com/numpy/numpy/issues?q=glibc+meson I noticed talk about deprecating Is there some kind of documentation or tracking issue about which base system requirements NumPy (e.g., glibc, macOS deployment target, Windows *CRT) is targeting and planning to target in the future? |
We follow the EOL dates as collated in this page for deciding what manylinux wheels to build, but that is not relevant for conda. There is support for non-meson glibc blocklisted routines (for glibc<2.18) should be tracked here numpy/numpy/_core/src/common/npy_config.h Line 141 in 7ff7ec7
I see catanh in that list. Perhaps there is something off with the way we are using meson? |
In a local build I actually tried to eliminated that as a source of error via -#if defined(HAVE_FEATURES_H)
+#if 1
#include <features.h>
-#if defined(__GLIBC__)
-#if !__GLIBC_PREREQ(2, 18)
+#if 1
+#if 1 but it did not make any difference. [EDIT: Maybe I only replaced the Apart from the obvious |
Tried to figure things out a bit, but don't really see what might be wrong. One thing that does look wrong is that the meson defines set the value to |
Fixes function blocklisting for glibc<2.18, reported in issue numpygh-25087. Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
Fixes function blocklisting for glibc<2.18, reported in issue numpygh-25087. Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
Describe the issue:
At conda-forge, on the
numba
feedstock we encountered a regression for glibc=2.17 vianumba
's test suite.See conda-forge/numba-feedstock#128 (comment) .
Essentially, for
1.26.0
, arctanh(-i) gives a "positive zero" real part -- consistent with whatcatanh
from glibc=2.17, but different from NumPy's own implementation andcatanh
from glibc>2.17.I tracked that down to be related to builds via
meson
, i.e., the current1.26
but also1.25
show the same behavior if built viameson
.I don't know why the
meson
-based builds show that behavior.As expected by the observed behavior, one can see that the extension modules link to glibc's versions (not just
catanh
, but that is our example here):readelf --dyn-syms 'numpy/linalg/_umath_linalg.cpython-311-x86_64-linux-gnu.so' | grep -o '[^ ]*catanh[^ ]*'
:with_meson == "yes"
:with_meson == "no"
:For further details see
- conda-forge/numba-feedstock#128 (comment)
- conda-forge/numpy-feedstock#304 (comment)
Reproduce the code example:
Error message:
No response
Runtime information:
Context for the issue:
The regression caused inconsistent behavior in
numba
's test suite:- conda-forge/numba-feedstock#128 (comment)
I did not investigate which other functions and/or use cases are affected.
Builds with/without using
meson
can be retrieved for further inspected at- https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=819015&view=artifacts&pathAsName=false&type=publishedArtifacts
The text was updated successfully, but these errors were encountered: