[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/71: gnu: commencement: gcc-final: Fix build for x86-linux with gcc-14
From: |
guix-commits |
Subject: |
07/71: gnu: commencement: gcc-final: Fix build for x86-linux with gcc-14. |
Date: |
Sun, 15 Dec 2024 03:42:49 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit cfe2ab495cf94c304a8a0488f3bd784f58e8057e
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"
- branch core-packages-team created (now d4a16790d0), guix-commits, 2024/12/15
- 04/71: gnu: commencement: gcc-boot0: Fix build for x86-linux with gcc-14., guix-commits, 2024/12/15
- 05/71: gnu: gcc-boot0: Fix building on powerpc64le-linux., guix-commits, 2024/12/15
- 02/71: Revert "Partial revert "gnu: bootstrap: %bootstrap-glibc: Also fix libm.so."", guix-commits, 2024/12/15
- 06/71: gnu: bash-minimal: Fix build for x86-linux with gcc-14., guix-commits, 2024/12/15
- 01/71: Revert "Partial revert "gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd."", guix-commits, 2024/12/15
- 10/71: gnu: zip: Fix build with gcc-14., guix-commits, 2024/12/15
- 03/71: Revert "Partial revert "gnu: make-bootstrap: Update gcc-static to gcc-14, for the 64bit Hurd."", guix-commits, 2024/12/15
- 07/71: gnu: commencement: gcc-final: Fix build for x86-linux with gcc-14.,
guix-commits <=
- 08/71: gnu: libffi: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/15
- 16/71: gnu: Re-Add automake-1.16.5., guix-commits, 2024/12/15
- 19/71: gnu: elfutils: Update to 0.192; fixes build with gcc-14., guix-commits, 2024/12/15
- 27/71: gnu: cmake-bootstrap: Fix build with gcc-14., guix-commits, 2024/12/15
- 29/71: gnu: llvm-13: Fix build with gcc-14., guix-commits, 2024/12/15
- 26/71: gnu: xmlto: Fix build with gcc-14., guix-commits, 2024/12/15
- 15/71: gnu: automake: Update to 1.17; fixes build with gcc-14., guix-commits, 2024/12/15
- 21/71: gnu: torsocks: Fix build with gcc-14., guix-commits, 2024/12/15
- 23/71: gnu: guile-lzlib: Fix build with gcc-14., guix-commits, 2024/12/15
- 25/71: gnu: python-lxml: Update to 5.2.2; fixes build with gcc-14., guix-commits, 2024/12/15