janneke pushed a commit to branch hurd-team
in repository guix.

commit cf70058256a3be9607fffde6ca1ec4db7b2e564d
Author: Janneke Nieuwenhuizen <[email protected]>
AuthorDate: Sun Nov 3 16:12:31 2024 +0100

    gnu: bash-minimal: Fix build for 64bit Hurd.
    
    * gnu/packages/bash-minimal.scm (bash)[arguments]: When building with gcc >=
    14 use "CFLAGS=-Wno-implicit-function-declaration".
    
    Change-Id: I3fd2da7a1d9011b155084dceadbad649dbb2a1b9
---
 gnu/packages/bash.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm
index 93641a78d5..1a3b014ad7 100644
--- a/gnu/packages/bash.scm
+++ b/gnu/packages/bash.scm
@@ -8,6 +8,7 @@
 ;;; Copyright © 2020 Zhu Zihao <[email protected]>
 ;;; Copyright © 2021 Marius Bakke <[email protected]>
 ;;; Copyright © 2024 Oleg Pykhalov <[email protected]>
+;;; Copyright © 2024 Janneke Nieuwenhuizen <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -30,6 +31,7 @@
   #:use-module (gnu packages base)
   #:use-module (gnu packages bootstrap)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages gcc)
   #:use-module (gnu packages elf)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages readline)
@@ -251,6 +253,13 @@ without modification.")
                ;; modules and related code.
                "ac_cv_func_dlopen=no"
 
+               ,@(if (version>=? (package-version (current-gcc)) "14")
+                     ;; gcc-14 implictly uses -Wimplicit-function-declaration
+                     ;; which together with -Werror causes:
+                     ;; ./enable.def:492:11: error: implicit declaration of 
function ‘dlclose’;
+                     '("CFLAGS=-Wno-implicit-function-declaration")
+                     '())
+
                ,@(if (%current-target-system)
                      '("bash_cv_job_control_missing=no"
                        "bash_cv_getcwd_malloc=yes")

Reply via email to