[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/21: gnu: commencement: gcc-boot0: Fix build for x86_64-linux with gcc
From: |
guix-commits |
Subject: |
04/21: gnu: commencement: gcc-boot0: Fix build for x86_64-linux with gcc-14. |
Date: |
Thu, 5 Dec 2024 14:57:10 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit 18e6e3a78f46a72f39f2a53e22286410b80a044a
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue Dec 3 12:17:14 2024 +0100
gnu: commencement: gcc-boot0: Fix build 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 | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 4368893f4d..c221061f73 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -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 _
- 02/21: Revert "Partial revert "gnu: bootstrap: %bootstrap-glibc: Also fix libm.so."", (continued)
- 02/21: Revert "Partial revert "gnu: bootstrap: %bootstrap-glibc: Also fix libm.so."", guix-commits, 2024/12/05
- 05/21: gnu: commencement: gcc-final: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 09/21: gnu: zip: Fix build with gcc-14., guix-commits, 2024/12/05
- 10/21: gnu: gettext: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 03/21: Revert "Partial revert "gnu: make-bootstrap: Update gcc-static to gcc-14, for the 64bit Hurd."", guix-commits, 2024/12/05
- 15/21: gnu: Re-Add automake-1.16.5., guix-commits, 2024/12/05
- 18/21: gnu: elfutils: Update to 0.192., guix-commits, 2024/12/05
- 01/21: Revert "Partial revert "gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd."", guix-commits, 2024/12/05
- 08/21: gnu: libffi: Update to 3.4.6., guix-commits, 2024/12/05
- 11/21: gnu: gettext: Update to 0.23., guix-commits, 2024/12/05
- 04/21: gnu: commencement: gcc-boot0: Fix build for x86_64-linux with gcc-14.,
guix-commits <=
- 13/21: gnu: automake: Fix build with gcc-14., guix-commits, 2024/12/05
- 14/21: gnu: automake: Update to 1.17., guix-commits, 2024/12/05
- 16/21: gnu: automake-1.16.5: Skip tests., guix-commits, 2024/12/05
- 12/21: gnu: unzip: Fix build with gcc-14., guix-commits, 2024/12/05
- 06/21: gnu: bash-minimal: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 07/21: gnu: libffi: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 17/21: gnu: bdb: Use automake-1.16.5., guix-commits, 2024/12/05
- 20/21: gnu: torsocks: Fix build with gcc-14., guix-commits, 2024/12/05
- 19/21: gnu: libstdc++: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 21/21: DRAFT gnu: gcc: Update gcc, gcc-toolchain to 14., guix-commits, 2024/12/05