summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2024-11-17 20:30:17 +0100
committerJanneke Nieuwenhuizen <janneke@gnu.org>2024-12-03 08:33:14 +0100
commitec8a5ec15f898e864705e5a5c834532e3fa8d0a4 (patch)
tree26b67ead346122e7fabcf7203ab82439c400ccc9 /gnu/packages
parent5ffbd2015cd9060046f6a5f64cc2f70eaf17f7d1 (diff)
gnu: make-bootstrap: Update gcc-static to gcc-14, for the 64bit Hurd.
* gnu/packages/make-bootstrap.scm (%gcc-static): Use gcc-14. Update to use G-Expressions. [inputs]: Remove libstdc++ and libstdc++-headers. (%gcc-stripped): Use gcc-14. [inputs, native-inputs]: Clear fields. Change-Id: I4e6d779cb457b256d80d1882f182b72a6f7d2be2
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/make-bootstrap.scm25
1 files changed, 14 insertions, 11 deletions
diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index 689d48d342b..e0dcca7b33e 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -488,11 +488,11 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
488(define %gcc-static 488(define %gcc-static
489 ;; A statically-linked GCC, with stripped-down functionality. 489 ;; A statically-linked GCC, with stripped-down functionality.
490 (package-with-relocatable-glibc 490 (package-with-relocatable-glibc
491 (package (inherit gcc) 491 (package (inherit gcc-14)
492 (name "gcc-static") 492 (name "gcc-static")
493 (outputs '("out")) ; all in one 493 (outputs '("out")) ; all in one
494 (arguments 494 (arguments
495 (substitute-keyword-arguments (package-arguments gcc) 495 (substitute-keyword-arguments (package-arguments gcc-14)
496 ((#:modules modules %default-gnu-modules) 496 ((#:modules modules %default-gnu-modules)
497 `((srfi srfi-1) 497 `((srfi srfi-1)
498 (srfi srfi-26) 498 (srfi srfi-26)
@@ -501,7 +501,7 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
501 ((#:guile _) #f) 501 ((#:guile _) #f)
502 ((#:implicit-inputs? _) #t) 502 ((#:implicit-inputs? _) #t)
503 ((#:configure-flags flags) 503 ((#:configure-flags flags)
504 `(append (list 504 #~(append (list
505 ;; We don't need a full bootstrap here. 505 ;; We don't need a full bootstrap here.
506 "--disable-bootstrap" 506 "--disable-bootstrap"
507 507
@@ -526,9 +526,9 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
526 "--disable-libssp" 526 "--disable-libssp"
527 "--disable-libquadmath") 527 "--disable-libquadmath")
528 (remove (cut string-match "--(.*plugin|enable-languages)" <>) 528 (remove (cut string-match "--(.*plugin|enable-languages)" <>)
529 ,flags))) 529 #$flags)))
530 ((#:phases phases) 530 ((#:phases phases)
531 `(modify-phases ,phases 531 #~(modify-phases #$phases
532 (add-after 'pre-configure 'remove-lgcc_s 532 (add-after 'pre-configure 'remove-lgcc_s
533 (lambda _ 533 (lambda _
534 ;; Remove the '-lgcc_s' added to GNU_USER_TARGET_LIB_SPEC in 534 ;; Remove the '-lgcc_s' added to GNU_USER_TARGET_LIB_SPEC in
@@ -538,12 +538,12 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
538 (substitute* (cons "gcc/config/rs6000/sysv4.h" 538 (substitute* (cons "gcc/config/rs6000/sysv4.h"
539 (find-files "gcc/config" 539 (find-files "gcc/config"
540 "^gnu-user.*\\.h$")) 540 "^gnu-user.*\\.h$"))
541 ((" -lgcc_s}}") "}}")) 541 ((" -lgcc_s}}") "}}"))))))))
542 #t))))))
543 (inputs 542 (inputs
544 `(("zlib:static" ,zlib "static") 543 `(("zlib:static" ,zlib "static")
545 ("isl:static" ,isl "static") 544 ("isl:static" ,isl "static")
546 ,@(package-inputs gcc))) 545 ,@(fold alist-delete (package-inputs gcc-14)
546 '("libstdc++" "libstdc++-headers"))))
547 (native-inputs 547 (native-inputs
548 (if (%current-target-system) 548 (if (%current-target-system)
549 `(;; When doing a Canadian cross, we need GMP/MPFR/MPC both 549 `(;; When doing a Canadian cross, we need GMP/MPFR/MPC both
@@ -556,17 +556,19 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
556 ("gmp-native" ,gmp) 556 ("gmp-native" ,gmp)
557 ("mpfr-native" ,mpfr) 557 ("mpfr-native" ,mpfr)
558 ("mpc-native" ,mpc) 558 ("mpc-native" ,mpc)
559 ,@(package-native-inputs gcc)) 559 ,@(package-native-inputs gcc-14))
560 (package-native-inputs gcc)))))) 560 (package-native-inputs gcc-14))))))
561 561
562(define %gcc-stripped 562(define %gcc-stripped
563 ;; The subset of GCC files needed for bootstrap. 563 ;; The subset of GCC files needed for bootstrap.
564 (package 564 (package
565 (inherit gcc) 565 (inherit gcc-14)
566 (name "gcc-stripped") 566 (name "gcc-stripped")
567 (build-system trivial-build-system) 567 (build-system trivial-build-system)
568 (source #f) 568 (source #f)
569 (outputs '("out")) ;only one output 569 (outputs '("out")) ;only one output
570 (inputs '())
571 (native-inputs '())
570 (arguments 572 (arguments
571 (list #:modules '((guix build utils)) 573 (list #:modules '((guix build utils))
572 #:builder 574 #:builder
@@ -632,6 +634,7 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
632 (propagated-inputs 634 (propagated-inputs
633 (modify-inputs (package-propagated-inputs guile) 635 (modify-inputs (package-propagated-inputs guile)
634 (replace "libgc" libgc/static-libs))) 636 (replace "libgc" libgc/static-libs)))
637
635 (arguments 638 (arguments
636 (substitute-keyword-arguments (package-arguments guile) 639 (substitute-keyword-arguments (package-arguments guile)
637 ((#:configure-flags flags #~'()) 640 ((#:configure-flags flags #~'())