summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Cirrottola <luca.cirro@gmail.com>2025-07-22 12:10:53 +0200
committerAndreas Enge <andreas@enge.fr>2025-07-22 14:47:21 +0200
commit6befeb3334e365e1ba58c36a6b56b0939ca6f234 (patch)
tree1651c58e732d6a88561a5966617d7553ffc6961d
parent432d9f4df4b5bae6a0a138de9cfa615593290b6c (diff)
gnu: scalapack: Add phase to fix compilation errors with gcc-14.
* gnu/packages/maths.scm (scalapack)[arguments]: Add phase before configuration. Fixes: guix/guix#1487 Change-Id: If4895539a4a8f20a0a97e1625d2322a3af2178d3
-rw-r--r--gnu/packages/maths.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 7cb6f05dfb..d8ddf6a66c 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1333,7 +1333,13 @@ provide LAPACK for someone who does not have access to a Fortran compiler.")
;; <https://github.com/amd/scalapack/commit/d3b6248b26f615b118ff4d72a00b3028f59a47f6>.
(substitute* "TESTING/CMakeLists.txt"
(("^add_test\\(x[cz]heevr.*" all)
- (string-append "# " all "\n"))))))))
+ (string-append "# " all "\n")))))
+ (add-before 'configure 'fix-gcc14-errors
+ (lambda _
+ (setenv "CFLAGS"
+ (string-append
+ "-g -O2 -DNDEBUG"
+ " -Wno-error=implicit-function-declaration")))))))
(home-page "https://www.netlib.org/scalapack/")
(synopsis "Library for scalable numerical linear algebra")
(description