[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: gnu: commencement: gcc-boot0: Build fix for x86_64-linux with gcc
From: |
guix-commits |
Subject: |
01/07: gnu: commencement: gcc-boot0: Build fix for x86_64-linux with gcc-14. |
Date: |
Tue, 3 Dec 2024 15:06:14 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit ea294ddcb93478c6ba0d9331f9d9faca6ca22940
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue Dec 3 12:17:14 2024 +0100
gnu: commencement: gcc-boot0: Build fix for x86_64-linux with gcc-14.
* gnu/packages/commencement.scm (gcc-boot0)[arguments]: When building for
x86_64-linux, add phase "patch-system.h" to substitute fix SIZE_MAX macro.
Change-Id: I6e552aaa458755ec920873a0535f599c88a1f74f
---
gnu/packages/commencement.scm | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 4368893f4d..5708714342 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2346,7 +2346,7 @@ exec " gcc "/bin/" program
%bootstrap-coreutils&co
coreutils-boot0))
"/bin/rm") "-rf"
-
"gcc/testsuite/go.test/test/fixedbugs/issue27836.dir"))))))
+
"gcc/testsuite/go.test/test/fixedbugs/issue27836.dir"))))))
(arguments
(cons*
#:guile %bootstrap-guile
@@ -2429,6 +2429,15 @@ exec " gcc "/bin/" program
char-set:letter)
#$(package-name lib)))
(list gmp-6.0 mpfr mpc)))))
+ #$@(if (and (target-linux?) (target-x86-64?))
+ #~((add-after 'unpack 'patch-system.h
+ (lambda _
+ ;; Avoid: missing binary operator before token "("
+ (substitute* "gcc/system.h"
+ (("#ifndef SIZE_MAX" all)
+ (string-append "#define SIZE_MAX (ULONG_MAX)\n"
+ all))))))
+ #~())
#$@(if (target-hurd64?)
#~((add-after 'unpack 'patch-libcc1-static
(lambda _
@@ -2476,9 +2485,9 @@ exec " gcc "/bin/" program
;; The libstdc++ that libcc1 links against.
("libstdc++" ,(match (%current-system)
- ("riscv64-linux" (make-libstdc++-boot0
gcc-7))
- ("x86_64-gnu" (make-libstdc++-boot0 gcc-14))
- (_ libstdc++-boot0)))
+ ("riscv64-linux" (make-libstdc++-boot0 gcc-7))
+ ("x86_64-gnu" (make-libstdc++-boot0 gcc-14))
+ (_ libstdc++-boot0)))
;; Call it differently so that the builder can check whether
;; the "libc" input is #f.
- branch core-packages-team created (now e8914ae628), guix-commits, 2024/12/03
- 01/07: gnu: commencement: gcc-boot0: Build fix for x86_64-linux with gcc-14.,
guix-commits <=
- 02/07: gnu: commencement: gcc-final: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/03
- 04/07: gnu: libffi: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/03
- 07/07: REMOVEME gnu: commencement: static-bash-for-glibc: Avoid rebuild., guix-commits, 2024/12/03
- 03/07: gnu: bash-minimal: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/03
- 05/07: DRAFT gnu: gcc: Update gcc, gcc-toolchain to 14., guix-commits, 2024/12/03
- 06/07: REMOVEME gnu: commencement: bash-mesboot: Avoid rebuild., guix-commits, 2024/12/03