~ruther/guix-local

b77a918e54e4c9a3ce0e777d44e18af83588cdad — Artyom V. Poptsov 6 months ago 3df6042
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
1 files changed, 11 insertions(+), 1 deletions(-)

M gnu/packages/engineering.scm
M gnu/packages/engineering.scm => gnu/packages/engineering.scm +11 -1
@@ 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)