From 6c6a442ff6a82e06ef31e561a2bb3e5b34efc5e5 Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Wed, 11 Dec 2024 21:36:22 +0100 Subject: 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 --- gnu/packages/patches/python-numpy-gcc-14.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gnu/packages/patches/python-numpy-gcc-14.patch (limited to 'gnu/packages/patches/python-numpy-gcc-14.patch') 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 00000000000..1d022108c76 --- /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" + -- cgit v1.3