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
This commit is contained in:
Janneke Nieuwenhuizen 2024-12-03 12:17:14 +01:00
parent 4b9f91079c
commit fe48aaa96c
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -2429,6 +2429,15 @@ (define gcc-boot0
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 _