[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74290] [PATCH v2 07/40] gnu: bash-minimal: Fix build for 64bit Hurd
From: |
Janneke Nieuwenhuizen |
Subject: |
[bug#74290] [PATCH v2 07/40] gnu: bash-minimal: Fix build for 64bit Hurd. |
Date: |
Tue, 12 Nov 2024 17:25:16 +0100 |
* 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 <all_but_last@163.com>
;;; Copyright © 2021 Marius Bakke <marius@gnu.org>
;;; Copyright © 2024 Oleg Pykhalov <go.wigust@gmail.com>
+;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -30,6 +31,7 @@ (define-module (gnu packages bash)
#: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 @@ (define-public bash-minimal
;; 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")
--
Janneke Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com
- [bug#74290] [PATCH 00/31] Add support for x86_64-gnu, aka the 64bit Hurd., (continued)
- [bug#74290] [PATCH 00/31] Add support for x86_64-gnu, aka the 64bit Hurd., janneke, 2024/11/10
- [bug#74290] [PATCH v2 00/40] Add support for x86_64-gnu, aka the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 01/40] gnu: gnumach: Update to v1.8+git20240714., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 02/40] gnu: mig: Update to 1.8+git20231217., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 03/40] gnu: hurd: Update to 0.9.git20240714., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 06/40] gnu: cross-libc: Support cross-building for the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 08/40] gnu: elfutils: Fix build for 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 04/40] gnu: gcc: Add indirections current-gcc, current-gcc-toolchain., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 07/40] gnu: bash-minimal: Fix build for 64bit Hurd.,
Janneke Nieuwenhuizen <=
- [bug#74290] [PATCH v2 09/40] gnu: grep: Fix build for the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 10/40] gnu: patch: Fix build for the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 12/40] gnu: libstdc++: Support the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 11/40] gnu: libxcrypt: Support the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 13/40] gnu: gcc-13, gcc-14: Support being used as parent for gcc-static., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 15/40] system: image: Add hurd64 image types., Janneke Nieuwenhuizen, 2024/11/12
- [bug#74290] [PATCH v2 16/40] gnu: Add libgpg-error-1.50., Janneke Nieuwenhuizen, 2024/11/12