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
This commit is contained in:
Luca Cirrottola 2025-07-22 12:10:53 +02:00 committed by Andreas Enge
parent 432d9f4df4
commit 6befeb3334
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -1333,7 +1333,13 @@ provide LAPACK for someone who does not have access to a Fortran compiler.")
;; <https://github.com/amd/scalapack/commit/d3b6248b26f615b118ff4d72a00b3028f59a47f6>. ;; <https://github.com/amd/scalapack/commit/d3b6248b26f615b118ff4d72a00b3028f59a47f6>.
(substitute* "TESTING/CMakeLists.txt" (substitute* "TESTING/CMakeLists.txt"
(("^add_test\\(x[cz]heevr.*" all) (("^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/") (home-page "https://www.netlib.org/scalapack/")
(synopsis "Library for scalable numerical linear algebra") (synopsis "Library for scalable numerical linear algebra")
(description (description