[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/74: gnu: commencement: gcc-boot0: Fix build for x86-linux with gcc-14
From: |
guix-commits |
Subject: |
04/74: gnu: commencement: gcc-boot0: Fix build for x86-linux with gcc-14. |
Date: |
Sun, 15 Dec 2024 10:03:15 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit a66dcc60c56a62022a856371230b521a6833fb44
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 _
- 54/74: gnu: tevent: Update to 0.16.1; fixes build with gcc-14., (continued)
- 54/74: gnu: tevent: Update to 0.16.1; fixes build with gcc-14., guix-commits, 2024/12/15
- 41/74: gnu: bdb-4.8: Fix build with gcc-14., guix-commits, 2024/12/15
- 60/74: gnu: m4: Use -Wno-error= for Hurd cross-build., guix-commits, 2024/12/15
- 63/74: gnu: git: Use -Wno-error= for Hurd cross-build., guix-commits, 2024/12/15
- 65/74: gnu: bootstrap: %bootstrap-glibc: Fix linking on armhf-linux., guix-commits, 2024/12/15
- 40/74: gnu: jack-1: Fix build with gcc-14., guix-commits, 2024/12/15
- 72/74: squash! gnu: python-numpy: Update to 1.26.4 and fix build with gcc-14., guix-commits, 2024/12/15
- 48/74: gnu: Add cryptsetup-minimal., guix-commits, 2024/12/15
- 50/74: gnu: openblas: Update to 0.3.28; fixes build with gcc-14., guix-commits, 2024/12/15
- 53/74: gnu: slim: Fix build with gcc-14., guix-commits, 2024/12/15
- 04/74: gnu: commencement: gcc-boot0: Fix build for x86-linux with gcc-14.,
guix-commits <=
- 14/74: gnu: automake: Fix build with gcc-14., guix-commits, 2024/12/15
- 13/74: gnu: unzip: Fix build with gcc-14., guix-commits, 2024/12/15
- 12/74: gnu: gettext: Update to 0.23., guix-commits, 2024/12/15
- 08/74: gnu: libffi: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/15
- 23/74: gnu: guile-lzlib: Fix build with gcc-14., guix-commits, 2024/12/15
- 30/74: gnu: hplip: Update to 3.24.4 and fix build with gcc-14., guix-commits, 2024/12/15
- 33/74: gnu: localed: Fix build with gcc-14., guix-commits, 2024/12/15
- 47/74: gnu: tdb: Update to 1.4.12; fixes build with gcc-14., guix-commits, 2024/12/15
- 44/74: gnu: ntp: Fix build with gcc-14., guix-commits, 2024/12/15
- 55/74: gnu: ldb: Update to 2.9.2; fixes build with gcc-14., guix-commits, 2024/12/15