[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/40: gnu: commencement: gcc-boot0: Fix build for x86-linux with gcc-14
From: |
guix-commits |
Subject: |
06/40: gnu: commencement: gcc-boot0: Fix build for x86-linux with gcc-14. |
Date: |
Tue, 10 Dec 2024 08:30:12 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit 36a13dea1eceeaee74370002175f2455c624013a
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue Dec 3 12:17:14 2024 +0100
gnu: commencement: gcc-boot0: Fix build for x86-linux with gcc-14.
* gnu/packages/commencement.scm (gcc-boot0)[arguments]: When building for
x86-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..2b20a28ea2 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?))
+ #~((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 _
- branch core-packages-team created (now 644019dcfe), guix-commits, 2024/12/10
- 02/40: Revert "Partial revert "gnu: bootstrap: %bootstrap-glibc: Also fix libm.so."", guix-commits, 2024/12/10
- 06/40: gnu: commencement: gcc-boot0: Fix build for x86-linux with gcc-14.,
guix-commits <=
- 01/40: Revert "Partial revert "gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd."", guix-commits, 2024/12/10
- 24/40: gnu: commencement: static-bash-for-glibc Fix x86-linux build., guix-commits, 2024/12/10
- 13/40: gnu: gettext: Fix build with gcc-14., guix-commits, 2024/12/10
- 26/40: gnu: guile-lzlib: Fix build with gcc-14., guix-commits, 2024/12/10
- 33/40: gnu: llvm-13: Fix build with gcc-14., guix-commits, 2024/12/10
- 21/40: gnu: elfutils: Update to 0.192; fixing build with gcc-14., guix-commits, 2024/12/10
- 04/40: gnu: %bootstrap-glibc: Patch more files., guix-commits, 2024/12/10
- 10/40: gnu: libffi: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/10
- 30/40: gnu: xmlto: Fix build with gcc-14., guix-commits, 2024/12/10
- 29/40: gnu: python-lxml: Update to 5.2.2; fixing build with gcc-14., guix-commits, 2024/12/10