summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-08-06 21:35:54 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-08-11 18:04:25 +0100
commitcaf58debdd1d3d71c5f20309da2f403f021b55ce (patch)
tree81539604daa4eee94f6f533d3cd61c4af9efb363
parent324b1bfa0d8421360f00991e4954601ffab4a1cd (diff)
downloadpoky-caf58debdd1d3d71c5f20309da2f403f021b55ce.tar.gz
python3-numpy: Always use libgcc for unwinder on aarch64
With libgcc (working): Result: inf Warnings: ['overflow encountered in cast'] With compiler-rt (failing): Result: inf (probably still correct) Warnings: [] (no warnings generated) The issue is likely that compiler-rt on AArch64 doesn't trigger the floating-point exceptions that NumPy expects for overflow detection in type casting operations. (From OE-Core rev: a85f07858b7cf8353541cbe72e2b1a95982d06f3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/python/python3-numpy_2.3.1.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-numpy_2.3.1.bb b/meta/recipes-devtools/python/python3-numpy_2.3.1.bb
index bc718d37c4..ed41d03e6b 100644
--- a/meta/recipes-devtools/python/python3-numpy_2.3.1.bb
+++ b/meta/recipes-devtools/python/python3-numpy_2.3.1.bb
@@ -23,6 +23,9 @@ S = "${UNPACKDIR}/numpy-${PV}"
23 23
24PACKAGECONFIG[svml] = "-Ddisable-svml=false,-Ddisable-svml=true" 24PACKAGECONFIG[svml] = "-Ddisable-svml=false,-Ddisable-svml=true"
25 25
26# the overflow tests fail with compiler-rt on aarch64
27LDFLAGS:append:toolchain-clang:aarch64 = " -rtlib=libgcc -unwindlib=libgcc"
28
26# Remove references to buildpaths from numpy's __config__.py 29# Remove references to buildpaths from numpy's __config__.py
27do_install:append() { 30do_install:append() {
28 sed -i \ 31 sed -i \