summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/python-numpy-gcc-14.patch
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2024-12-11 21:36:22 +0100
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:14 +0200
commit6c6a442ff6a82e06ef31e561a2bb3e5b34efc5e5 (patch)
tree4b1dede832eccd5d654120106360da5100709198 /gnu/packages/patches/python-numpy-gcc-14.patch
parentd4f2e2ae37fcce3283b0ee7b7add15301c53dce4 (diff)
gnu: python-numpy: Update to 1.26.4 and fix build with gcc-14.
* gnu/packages/patches/python-numpy-gcc-14.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/python-xyz.scm (python-numpy): Update to 1.26.4 and use it. [arguments]: Add phase "relax-gcc-14-strictness". In phase "check", disable more tests. [native-inputs]: Add gcc-14 before gfortran so that gfortran's fenv.h include doesn't win and break the build. Change-Id: I9c8053c66f21521371a85107ef1864a1c0d19ad4
Diffstat (limited to 'gnu/packages/patches/python-numpy-gcc-14.patch')
-rw-r--r--gnu/packages/patches/python-numpy-gcc-14.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/packages/patches/python-numpy-gcc-14.patch b/gnu/packages/patches/python-numpy-gcc-14.patch
new file mode 100644
index 0000000000..1d022108c7
--- /dev/null
+++ b/gnu/packages/patches/python-numpy-gcc-14.patch
@@ -0,0 +1,14 @@
+Upstream status: Not presented upstream.
+
+--- numpy-1.26.4/numpy/core/src/common/half_private.hpp.orig 2024-12-11 22:32:59.883085553 +0100
++++ numpy-1.26.4/numpy/core/src/common/half_private.hpp 2024-12-11 22:33:05.291112742 +0100
+@@ -1,6 +1,9 @@
+ #ifndef NUMPY_CORE_SRC_COMMON_HALF_PRIVATE_HPP
+ #define NUMPY_CORE_SRC_COMMON_HALF_PRIVATE_HPP
+
++int fetestexcept (int);
++int feclearexcept (int);
++int feraiseexcept (int);
+ #include "npstd.hpp"
+ #include "float_status.hpp"
+