From: Khem Raj Date: Thu, 7 Aug 2025 04:35:54 +0000 (-0700) Subject: python3-numpy: Always use libgcc for unwinder on aarch64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a85f07858b7cf8353541cbe72e2b1a95982d06f3;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Khem Raj Signed-off-by: Mathieu Dubois-Briand --- 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 bc718d37c4d..ed41d03e6b5 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}" PACKAGECONFIG[svml] = "-Ddisable-svml=false,-Ddisable-svml=true" +# the overflow tests fail with compiler-rt on aarch64 +LDFLAGS:append:toolchain-clang:aarch64 = " -rtlib=libgcc -unwindlib=libgcc" + # Remove references to buildpaths from numpy's __config__.py do_install:append() { sed -i \