[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/136: gnu: commencement: gcc-final: Fix build for x86-linux with gcc-1
From: |
guix-commits |
Subject: |
07/136: gnu: commencement: gcc-final: Fix build for x86-linux with gcc-14. |
Date: |
Wed, 1 Jan 2025 10:24:21 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit e01bf1d99d8366de0647e5ef07f71df5293a6f76
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"
- 10/136: gnu: zip: Fix build with gcc-14., (continued)
- 10/136: gnu: zip: Fix build with gcc-14., guix-commits, 2025/01/01
- 16/136: gnu: Re-Add automake-1.16.5., guix-commits, 2025/01/01
- 12/136: gnu: gettext: Update to 0.23., guix-commits, 2025/01/01
- 24/136: gnu: go-1.21.5: Skip test failing with gcc-14., guix-commits, 2025/01/01
- 14/136: gnu: automake: Fix build with gcc-14., guix-commits, 2025/01/01
- 35/136: gnu: zziplib: Update to 0.13.78; fixes build with gcc-14., guix-commits, 2025/01/01
- 01/136: Revert "Partial revert "gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd."", guix-commits, 2025/01/01
- 03/136: Revert "Partial revert "gnu: make-bootstrap: Update gcc-static to gcc-14, for the 64bit Hurd."", guix-commits, 2025/01/01
- 02/136: Revert "Partial revert "gnu: bootstrap: %bootstrap-glibc: Also fix libm.so."", guix-commits, 2025/01/01
- 05/136: gnu: gcc-boot0: Fix building on powerpc64le-linux., guix-commits, 2025/01/01
- 07/136: gnu: commencement: gcc-final: Fix build for x86-linux with gcc-14.,
guix-commits <=
- 08/136: gnu: libffi: Fix build for x86_64-linux with gcc-14., guix-commits, 2025/01/01
- 11/136: gnu: gettext: Fix build with gcc-14., guix-commits, 2025/01/01
- 13/136: gnu: unzip: Fix build with gcc-14., guix-commits, 2025/01/01
- 19/136: gnu: elfutils: Update to 0.192; fixes build with gcc-14., guix-commits, 2025/01/01
- 28/136: gnu: nlohmann-json: Update to 3.11.3; fixes build with gcc-14., guix-commits, 2025/01/01
- 30/136: gnu: hplip: Update to 3.24.4 and fix build with gcc-14., guix-commits, 2025/01/01
- 23/136: gnu: guile-lzlib: Fix build with gcc-14., guix-commits, 2025/01/01
- 42/136: gnu: gamin: Fix build with gcc-14., guix-commits, 2025/01/01
- 25/136: gnu: python-lxml: Update to 5.2.2; fixes build with gcc-14., guix-commits, 2025/01/01
- 45/136: gnu: openldap: Update to 2.6.9; fixes build with gcc-14., guix-commits, 2025/01/01