[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/74: gnu: commencement: gcc-final: Fix build for x86-linux with gcc-14
From: |
guix-commits |
Subject: |
07/74: gnu: commencement: gcc-final: Fix build for x86-linux with gcc-14. |
Date: |
Sun, 15 Dec 2024 18:06:01 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit d84c662634efa9bd4113f76bbc1ff17261eb3c13
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue Dec 3 13:15:04 2024 +0100
gnu: commencement: gcc-final: Fix build for x86-linux with gcc-14.
Summary: Use fixes for the 64bit Hurd also on linux.
* gnu/packages/commencement.scm (gcc-final)[arguments]: When building for
x86-linux, create a gcc wrapper in phase "create-stage-wrapper", use it by
adding STAGE_CC_WRAPPER to #:make-flags, and CC to #:configure-flags to
convince configure gmp that gcc and g++ work.
---
gnu/packages/commencement.scm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 787555c78f..1f8e7d9de3 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3274,7 +3274,8 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a
\"$@\"~%"
"/lib -L" zlib "/lib -Wl,-rpath="
zlib "/lib")
flag))
- #$(if (target-hurd64?)
+ #$(if (or (target-hurd64?)
+ (and (target-x86?) (target-linux?)))
`(cons
(string-append
;;Convince gmp's configure that gcc works
@@ -3282,7 +3283,8 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a
\"$@\"~%"
,flags)
flags))))
((#:configure-flags flags)
- (if (target-hurd64?)
+ (if (or (target-hurd64?)
+ (and (target-x86?) (target-linux?)))
#~(append
#$flags
(list #$(string-append
@@ -3336,7 +3338,8 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a
\"$@\"~%"
#\:))
":")
"\nAM_CXXFLAGS = "))))))
- #$@(if (target-hurd64?)
+ #$@(if (or (target-hurd64?)
+ (and (target-x86?) (target-linux?)))
#~((add-after 'configure 'create-stage-wrapper
(lambda _
(with-output-to-file "gcc.sh"
- 43/74: gnu: gn: Fix build with gcc-14., (continued)
- 43/74: gnu: gn: Fix build with gcc-14., guix-commits, 2024/12/15
- 41/74: gnu: bdb-4.8: Fix build with gcc-14., guix-commits, 2024/12/15
- 47/74: gnu: tdb: Update to 1.4.12; fixes build with gcc-14., guix-commits, 2024/12/15
- 62/74: gnu: texinfo-4: Use -Wno-error= for Hurd cross-build., guix-commits, 2024/12/15
- 69/74: gnu: gcc-4.7: Fix build with gcc-14., guix-commits, 2024/12/15
- 68/74: gnu: gcc: Fix build with gcc-14., guix-commits, 2024/12/15
- 71/74: gnu: clang-runtime: Remove gcc-12,13,14 from native-ipnuts., guix-commits, 2024/12/15
- 73/74: gnu: ath9k-firmware: Remove CMAKE_SYSTEM_NAME override., guix-commits, 2024/12/15
- 74/74: DRAFT gnu: gcc: Update gcc, gcc-toolchain, libgccjit to 14., guix-commits, 2024/12/15
- 22/74: gnu: expect: Fix build with gcc-14., guix-commits, 2024/12/15
- 07/74: gnu: commencement: gcc-final: Fix build for x86-linux with gcc-14.,
guix-commits <=
- 21/74: gnu: torsocks: Fix build with gcc-14., guix-commits, 2024/12/15
- 15/74: gnu: automake: Update to 1.17; fixes build with gcc-14., guix-commits, 2024/12/15
- 16/74: gnu: Re-Add automake-1.16.5., guix-commits, 2024/12/15
- 48/74: gnu: Add cryptsetup-minimal., guix-commits, 2024/12/15
- 36/74: gnu: texlive-xdvi-bin: Fix build with gcc-14., guix-commits, 2024/12/15
- 49/74: gnu: Use cryptsetup-minimal instead of cryptsetup., guix-commits, 2024/12/15
- 58/74: gnu: netdde: Use -Wno-error=., guix-commits, 2024/12/15
- 59/74: gnu: libedit: Use -Wno-error= for cross-build., guix-commits, 2024/12/15
- 63/74: gnu: git: Use -Wno-error= for Hurd cross-build., guix-commits, 2024/12/15
- 64/74: gnu: bootstrap: %bootstrap-glibc: Patch more files., guix-commits, 2024/12/15