[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/18: gnu: commencement: gcc-boot0: Fix build for x86_64-linux with gcc
From: |
guix-commits |
Subject: |
01/18: gnu: commencement: gcc-boot0: Fix build for x86_64-linux with gcc-14. |
Date: |
Thu, 5 Dec 2024 14:45:39 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit a452b9da1fc08c5a498c823998350f1ab03cb407
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 _
- branch core-packages-team created (now afaa710d61), guix-commits, 2024/12/05
- 04/18: gnu: libffi: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 03/18: gnu: bash-minimal: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 02/18: gnu: commencement: gcc-final: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 01/18: gnu: commencement: gcc-boot0: Fix build for x86_64-linux with gcc-14.,
guix-commits <=
- 07/18: gnu: gettext: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 18/18: DRAFT gnu: gcc: Update gcc, gcc-toolchain to 14., guix-commits, 2024/12/05
- 13/18: gnu: automake-1.16.5: Skip tests., guix-commits, 2024/12/05
- 10/18: gnu: automake: Fix build with gcc-14., guix-commits, 2024/12/05
- 12/18: gnu: Re-Add automake-1.16.5., guix-commits, 2024/12/05
- 16/18: gnu: libstdc++: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 14/18: gnu: bdb: Use automake-1.16.5., guix-commits, 2024/12/05
- 11/18: gnu: automake: Update to 1.17., guix-commits, 2024/12/05
- 08/18: gnu: gettext: Update to 0.23., guix-commits, 2024/12/05
- 17/18: gnu: torsocks: Fix build with gcc-14., guix-commits, 2024/12/05