From 6befeb3334e365e1ba58c36a6b56b0939ca6f234 Mon Sep 17 00:00:00 2001 From: Luca Cirrottola Date: Tue, 22 Jul 2025 12:10:53 +0200 Subject: [PATCH] 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 --- gnu/packages/maths.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 7cb6f05dfb6..d8ddf6a66cb 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.") ;; . (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