From 82de420bd2c9c3e15e6c31ca8c56762c80f82a43 Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Sun, 5 Jan 2025 17:21:01 +0100 Subject: [PATCH] gnu: openmpi-4: Fix build with gcc-14. * gnu/packages/mpi.scm (openmpi-4)[arguments]: Add CFLAGS to #:configure-flags to relax gcc-14's strictness. Change-Id: I4a19a473a729ce054d855ec2c4d6ea94dc94b849 --- gnu/packages/mpi.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm index 157bbfdecd..ffdfb5a731 100644 --- a/gnu/packages/mpi.scm +++ b/gnu/packages/mpi.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2018 Paul Garlick ;;; Copyright © 2019, 2021 Ricardo Wurmus ;;; Copyright © 2024 Romain Garbage +;;; Copyright © 2025 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -234,7 +235,11 @@ (define-public openmpi-4 (outputs '("out" "debug")) (arguments (list - #:configure-flags #~`("--enable-mpi-ext=affinity" ;cr doesn't work + #:configure-flags #~`(#$(string-append + "CFLAGS=-g -O2" + " -Wno-error=implicit-function-declaration" + " -Wno-error=incompatible-pointer-types") + "--enable-mpi-ext=affinity" ;cr doesn't work "--with-sge" "--disable-static"