guix_mirror_bot pushed a commit to branch wip-riscv-bootstrap
in repository guix.

commit 0a2c2e0ff0f093718b5065dc45536e981ec788ea
Author: Efraim Flashner <efr...@flashner.co.il>
AuthorDate: Mon Jul 28 09:53:24 2025 +0300

    gnu: Add gmp-boot1.
    
    * gnu/packages/commencement.scm (gmp-boot1): New variable.
    
    Change-Id: I09688324d35f3caa8ea07de588cd673a557d50f6
---
 gnu/packages/commencement.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index a86b82039b..e35ab6370c 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2521,6 +2521,38 @@ exec " gcc "/bin/" program
                     (program (string-append bin "/gcc")))
                (invoke program "--help")))))))))
 
+;; By building these separately we can ensure they build correctly.
+(define gmp-boot1
+  (package
+    (inherit gmp)
+    (outputs '("out"))
+    (name "gmp-boot1")
+    (source (bootstrap-origin (package-source gmp)))
+    (native-inputs (if (target-x86?)
+                       `(("gcc-wrapper" ,gcc-mesboot1-wrapper)
+                         ("headers" ,glibc-headers-mesboot)
+                         ,@(%boot-mesboot4-inputs))
+                       (%boot-tcc-musl-inputs)))
+    (inputs (list m4-boot))
+    (propagated-inputs '())
+    (arguments
+     (list
+       #:guile %bootstrap-guile
+       #:tests? #f
+       #:implicit-inputs? #f
+       #:parallel-build? #f
+       #:configure-flags
+       #~(list #$@(if (target-x86?)
+                      #~()
+                      #~("CC=tcc"))
+               ;; These break building on x86_64-linux.
+               ;(string-append "--build=" #$(commencement-build-target))
+               ;(string-append "--host=" #$(commencement-build-target))
+               "--enable-static"
+               "--disable-shared"
+               "--disable-assembly")
+       ;; Gash crashes on mkdir called through install creating 
%output/share/info
+       #:make-flags #~(list "MKDIRPROG=mkdir -p")))))
 (define gcc-mesboot
   (package
     (inherit gcc-mesboot1)

Reply via email to