guix-commits
[Top][All Lists]
Advanced

[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 _



reply via email to

[Prev in Thread] Current Thread [Next in Thread]