1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: mpb: Fix build with gcc-14.

* gnu/packages/engineering.scm (mpb): Fix build with gcc-14.
[arguments]<#:phases>: Add "relax-gcc-14-strictness" phase.

Change-Id: I50c0b7507221a2c738d165b33e99474c65300130
This commit is contained in:
Artyom V. Poptsov
2025-10-31 22:49:13 +03:00
parent 3df60427c6
commit b77a918e54

View File

@@ -1806,7 +1806,17 @@ for scientific simulations.")
(list (string-append "--with-libctl="
(assoc-ref %build-inputs "libctl")
"/share/libctl")
"--enable-shared")))
"--enable-shared")
#:phases
(modify-phases %standard-phases
(add-before 'configure 'relax-gcc-14-strictness
(lambda _
(setenv "CFLAGS"
(string-join
(list "-Wno-error=incompatible-pointer-types"
"-Wno-error=implicit-function-declaration"
"-Wno-error=int-conversion")
" ")))))))
(native-inputs
`(("fortran" ,gfortran)
("pkg-config" ,pkg-config)