[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/14: gnu: commencement: gcc-boot0: Build fix for x86_64-linux with gcc
From: |
guix-commits |
Subject: |
01/14: gnu: commencement: gcc-boot0: Build fix for x86_64-linux with gcc-14. |
Date: |
Thu, 5 Dec 2024 04:27:02 -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 f2c7f31515), guix-commits, 2024/12/05
- 01/14: gnu: commencement: gcc-boot0: Build fix for x86_64-linux with gcc-14.,
guix-commits <=
- 02/14: gnu: commencement: gcc-final: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 06/14: REMOVEME gnu: commencement: bash-mesboot: Avoid rebuild., guix-commits, 2024/12/05
- 05/14: DRAFT gnu: gcc: Update gcc, gcc-toolchain to 14., guix-commits, 2024/12/05
- 10/14: REMOVEME gnu: Add libffi-previous for guile to prevent rebuild at this time., guix-commits, 2024/12/05
- 11/14: gnu: gettext-minimal: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 03/14: gnu: bash-minimal: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 08/14: gnu: zip: Fix build with gcc-14., guix-commits, 2024/12/05
- 04/14: gnu: libffi: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 12/14: gnu: gettext[-minimal]: Update to 0.23., guix-commits, 2024/12/05
- 13/14: gnu: unzip: Fix build with gcc-14., guix-commits, 2024/12/05