mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: bootstrap: Add support for x86_64-gnu, aka the 64bit Hurd.
On commit:
ec8a5ec15f
gnu: make-bootstrap: Update gcc-static to gcc-14, for the 64bit Hurd.
Run:
./pre-inst-env guix build --target=x86_64-gnu bootstrap-tarballs
Producing:
/gnu/store/w1n7bdpn88plcc49h7n0jriaj41sgwx8-bootstrap-tarballs-0/
With guix hash -r:
15cb1xh7s2hhp8s0d81bjnw1759w9sh7ckc9n5jq2f3rqw6z76by
* gnu/packages/bootstrap.scm (%bootstrap-executables): Add entries for
x86_64-gnu.
(%bootstrap-guile-hash, %bootstrap-coreutils&co, %bootstrap-binutils,
%bootstrap-glibc, %bootstrap-gcc): Add entry for x86_64-gnu.
* guix/packages.scm (%supported-systems, %hurd-systems): Add x86_64-gnu.
(%cuirass-supported-systems): Remove x86_64-gnu.
* guix/utils.scm (target-64bit?): Add x86_64-gnu.
* m4/guix.m4: Add x86_64-gnu as a supported system.
* doc/guix.texi (GNU Distribution): Add x86_64-gnu.
Change-Id: I828159aedb3f66caba98e935083cc3682429f219
This commit is contained in:
parent
ec8a5ec15f
commit
4d9c5984fe
4 changed files with 57 additions and 8 deletions
|
@ -36,7 +36,7 @@ Copyright @copyright{} 2016, 2017, 2018, 2021 Chris Marusich@*
|
||||||
Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Efraim Flashner@*
|
Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Efraim Flashner@*
|
||||||
Copyright @copyright{} 2016 John Darrington@*
|
Copyright @copyright{} 2016 John Darrington@*
|
||||||
Copyright @copyright{} 2016, 2017 Nikita Gillmann@*
|
Copyright @copyright{} 2016, 2017 Nikita Gillmann@*
|
||||||
Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Jan Nieuwenhuizen@*
|
Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 Janneke Nieuwenhuizen@*
|
||||||
Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Julien Lepiller@*
|
Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Julien Lepiller@*
|
||||||
Copyright @copyright{} 2016 Alex ter Weele@*
|
Copyright @copyright{} 2016 Alex ter Weele@*
|
||||||
Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Christopher Baines@*
|
Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Christopher Baines@*
|
||||||
|
@ -639,6 +639,13 @@ way for you to give it a try is by setting up an instance of
|
||||||
(@pxref{transparent-emulation-qemu, @code{hurd-vm-service-type}}).
|
(@pxref{transparent-emulation-qemu, @code{hurd-vm-service-type}}).
|
||||||
@xref{Contributing}, on how to help!
|
@xref{Contributing}, on how to help!
|
||||||
|
|
||||||
|
@item x86_64-gnu
|
||||||
|
@uref{https://hurd.gnu.org, GNU/Hurd} on the @code{x86_64} Intel/AMD
|
||||||
|
64-bit architecture.
|
||||||
|
|
||||||
|
This configuration is even more experimental and under heavy upstream
|
||||||
|
development.
|
||||||
|
|
||||||
@item mips64el-linux (unsupported)
|
@item mips64el-linux (unsupported)
|
||||||
little-endian 64-bit MIPS processors, specifically the Loongson series,
|
little-endian 64-bit MIPS processors, specifically the Loongson series,
|
||||||
n32 ABI, and Linux-Libre kernel. This configuration is no longer fully
|
n32 ABI, and Linux-Libre kernel. This configuration is no longer fully
|
||||||
|
|
|
@ -125,6 +125,15 @@
|
||||||
,(base32 "0nq2c1zb3wv5bf7kd83sziaashydazrn7xgq6kijlk0zj2syzc2m"))
|
,(base32 "0nq2c1zb3wv5bf7kd83sziaashydazrn7xgq6kijlk0zj2syzc2m"))
|
||||||
("xz"
|
("xz"
|
||||||
,(base32 "033rhpk6zrpxpd6ffjyg5y2zwq9x9cnq0zljb7k8jlncbalsayq5")))
|
,(base32 "033rhpk6zrpxpd6ffjyg5y2zwq9x9cnq0zljb7k8jlncbalsayq5")))
|
||||||
|
("x86_64-gnu"
|
||||||
|
("bash"
|
||||||
|
,(base32 "1xvhwyvamlcva01zv6pz7br7d2lgq5qd14misi8wffxc78c4lndk"))
|
||||||
|
("mkdir"
|
||||||
|
,(base32 "1c5irkgxaxpwlxzf68xg47j7m6ibd9xqvxznlml42nhfnrka447s"))
|
||||||
|
("tar"
|
||||||
|
,(base32 "0ak7sri6294y1g3ia1yrf7facxc7dij02mlxi4xg6k5yszv1jd3w"))
|
||||||
|
("xz"
|
||||||
|
,(base32 "0zz9pgw0pyadqsq9nvvpiryk1gpmm89754m6xlqh4ssbbvzpk3y6")))
|
||||||
("mips64el-linux"
|
("mips64el-linux"
|
||||||
("bash"
|
("bash"
|
||||||
,(base32 "1aw046dhda240k9pb9iaj5aqkm23gkvxa9j82n4k7fk87nbrixw6"))
|
,(base32 "1aw046dhda240k9pb9iaj5aqkm23gkvxa9j82n4k7fk87nbrixw6"))
|
||||||
|
@ -165,6 +174,7 @@
|
||||||
(match system
|
(match system
|
||||||
("powerpc64le-linux" (string-append system "/20210106/" program))
|
("powerpc64le-linux" (string-append system "/20210106/" program))
|
||||||
("i586-gnu" (string-append system "/20200326/" program))
|
("i586-gnu" (string-append system "/20200326/" program))
|
||||||
|
("x86_64-gnu" (string-append system "/20241122/" program))
|
||||||
("powerpc-linux" (string-append system "/20200923/bin/" program))
|
("powerpc-linux" (string-append system "/20200923/bin/" program))
|
||||||
("riscv64-linux" (string-append system "/20210725/bin/" program))
|
("riscv64-linux" (string-append system "/20210725/bin/" program))
|
||||||
(_ (string-append system "/" program
|
(_ (string-append system "/" program
|
||||||
|
@ -366,6 +376,8 @@ or false to signal an error."
|
||||||
"/20150101/guile-2.0.11.tar.xz")
|
"/20150101/guile-2.0.11.tar.xz")
|
||||||
("i586-gnu"
|
("i586-gnu"
|
||||||
"/20200326/guile-static-stripped-2.0.14-i586-pc-gnu.tar.xz")
|
"/20200326/guile-static-stripped-2.0.14-i586-pc-gnu.tar.xz")
|
||||||
|
("x86_64-gnu"
|
||||||
|
"/20241122/guile-static-stripped-3.0.9-x86_64-pc-gnu.tar.xz")
|
||||||
("powerpc64le-linux"
|
("powerpc64le-linux"
|
||||||
"/20210106/guile-static-stripped-2.0.14-powerpc64le-linux-gnu.tar.xz")
|
"/20210106/guile-static-stripped-2.0.14-powerpc64le-linux-gnu.tar.xz")
|
||||||
("riscv64-linux"
|
("riscv64-linux"
|
||||||
|
@ -387,9 +399,11 @@ or false to signal an error."
|
||||||
("powerpc64le-linux"
|
("powerpc64le-linux"
|
||||||
(base32 "1rnyfz5q38jyvxddj617443bnnzql4vw0mxzqpj8wz48wx4bhbq0"))
|
(base32 "1rnyfz5q38jyvxddj617443bnnzql4vw0mxzqpj8wz48wx4bhbq0"))
|
||||||
("aarch64-linux"
|
("aarch64-linux"
|
||||||
(base32 "1giy2aprjmn5fp9c4s9r125fljw4wv6ixy5739i5bffw4jgr0f9r"))
|
(base32 "1ymp3lck1l5fybsa542ny2fdkfydfcfvqbgr3qh03yvq4fwfn6mc"))
|
||||||
("i586-gnu"
|
("i586-gnu"
|
||||||
(base32 "0wgqpsmvg25rnqn49ap7kwd2qxccd8dr4lllzp7i3rjvgav27vac"))
|
(base32 "0wgqpsmvg25rnqn49ap7kwd2qxccd8dr4lllzp7i3rjvgav27vac"))
|
||||||
|
("x86_64-gnu"
|
||||||
|
(base32 "109p34v8fgxznxdyb90y74qj6ppwgb5qj0c2pa3gxba7x1r0p4k1"))
|
||||||
("powerpc-linux"
|
("powerpc-linux"
|
||||||
(base32 "1by2p7s27fbyjzfkcw8h65h4kkqh7d23kv4sgg5jppjn2qx7swq4"))
|
(base32 "1by2p7s27fbyjzfkcw8h65h4kkqh7d23kv4sgg5jppjn2qx7swq4"))
|
||||||
("riscv64-linux"
|
("riscv64-linux"
|
||||||
|
@ -599,6 +613,8 @@ $out/bin/guile --version~%"
|
||||||
"/20210106/static-binaries-0-powerpc64le-linux-gnu.tar.xz")
|
"/20210106/static-binaries-0-powerpc64le-linux-gnu.tar.xz")
|
||||||
("i586-gnu"
|
("i586-gnu"
|
||||||
"/20200326/static-binaries-0-i586-pc-gnu.tar.xz")
|
"/20200326/static-binaries-0-i586-pc-gnu.tar.xz")
|
||||||
|
("x86_64-gnu"
|
||||||
|
"/20241122/static-binaries-0-x86_64-pc-gnu.tar.xz")
|
||||||
("powerpc-linux"
|
("powerpc-linux"
|
||||||
"/20200923/static-binaries.tar.xz")
|
"/20200923/static-binaries.tar.xz")
|
||||||
("riscv64-linux"
|
("riscv64-linux"
|
||||||
|
@ -626,6 +642,9 @@ $out/bin/guile --version~%"
|
||||||
("i586-gnu"
|
("i586-gnu"
|
||||||
(base32
|
(base32
|
||||||
"17kllqnf3fg79gzy9ansgi801c46yh9c23h4d923plvb0nfm1cfn"))
|
"17kllqnf3fg79gzy9ansgi801c46yh9c23h4d923plvb0nfm1cfn"))
|
||||||
|
("x86_64-gnu"
|
||||||
|
(base32
|
||||||
|
"04zksa2457h1vcl5ry2hyzhhsg8fckvfdgadp0viba3anwms2463"))
|
||||||
("powerpc-linux"
|
("powerpc-linux"
|
||||||
(base32
|
(base32
|
||||||
"0kspxy0yczan2vlih6aa9hailr2inz000fqa0gn5x9d1fxxa5y8m"))
|
"0kspxy0yczan2vlih6aa9hailr2inz000fqa0gn5x9d1fxxa5y8m"))
|
||||||
|
@ -682,6 +701,8 @@ $out/bin/guile --version~%"
|
||||||
"/20210106/binutils-static-stripped-2.34-powerpc64le-linux-gnu.tar.xz")
|
"/20210106/binutils-static-stripped-2.34-powerpc64le-linux-gnu.tar.xz")
|
||||||
("i586-gnu"
|
("i586-gnu"
|
||||||
"/20200326/binutils-static-stripped-2.34-i586-pc-gnu.tar.xz")
|
"/20200326/binutils-static-stripped-2.34-i586-pc-gnu.tar.xz")
|
||||||
|
("x86_64-gnu"
|
||||||
|
"/20241122/binutils-static-stripped-2.41-x86_64-pc-gnu.tar.xz")
|
||||||
("powerpc-linux"
|
("powerpc-linux"
|
||||||
"/20200923/binutils-2.35.1.tar.xz")
|
"/20200923/binutils-2.35.1.tar.xz")
|
||||||
("riscv64-linux"
|
("riscv64-linux"
|
||||||
|
@ -712,6 +733,9 @@ $out/bin/guile --version~%"
|
||||||
("i586-gnu"
|
("i586-gnu"
|
||||||
(base32
|
(base32
|
||||||
"11kykv1kmqc5wln57rs4klaqa13hm952smkc57qcsyss21kfjprs"))
|
"11kykv1kmqc5wln57rs4klaqa13hm952smkc57qcsyss21kfjprs"))
|
||||||
|
("x86_64-gnu"
|
||||||
|
(base32
|
||||||
|
"1fasv76rppnqlshjqc7dbzngic9cqswi5ydzg6w9rc075daqk8kb"))
|
||||||
("powerpc-linux"
|
("powerpc-linux"
|
||||||
(base32
|
(base32
|
||||||
"0asbg1c4avkrvh057mx0942xwddd136jni382zqsxzn79ls42yq8"))
|
"0asbg1c4avkrvh057mx0942xwddd136jni382zqsxzn79ls42yq8"))
|
||||||
|
@ -772,6 +796,8 @@ $out/bin/guile --version~%"
|
||||||
"/20210106/glibc-stripped-2.31-powerpc64le-linux-gnu.tar.xz")
|
"/20210106/glibc-stripped-2.31-powerpc64le-linux-gnu.tar.xz")
|
||||||
("i586-gnu"
|
("i586-gnu"
|
||||||
"/20240816/glibc-stripped-2.39-i586-pc-gnu.tar.xz")
|
"/20240816/glibc-stripped-2.39-i586-pc-gnu.tar.xz")
|
||||||
|
("x86_64-gnu"
|
||||||
|
"/20241122/glibc-stripped-2.39-x86_64-pc-gnu.tar.xz")
|
||||||
("powerpc-linux"
|
("powerpc-linux"
|
||||||
"/20200923/glibc-2.32.tar.xz")
|
"/20200923/glibc-2.32.tar.xz")
|
||||||
("riscv64-linux"
|
("riscv64-linux"
|
||||||
|
@ -802,6 +828,9 @@ $out/bin/guile --version~%"
|
||||||
("i586-gnu"
|
("i586-gnu"
|
||||||
(base32
|
(base32
|
||||||
"0x2x6w611k6v9qdabacawamw2475p04hm3s0q95xcg063wjq4ig2"))
|
"0x2x6w611k6v9qdabacawamw2475p04hm3s0q95xcg063wjq4ig2"))
|
||||||
|
("x86_64-gnu"
|
||||||
|
(base32
|
||||||
|
"1w4h91kxl64a62l646966i73zp2cj6w4dmyc64fh0c1hhdykxass"))
|
||||||
("powerpc-linux"
|
("powerpc-linux"
|
||||||
(base32
|
(base32
|
||||||
"0smmssyjrlk5cvx49586smmk81gkwff0i6r91n4rir4jm6ba25sb"))
|
"0smmssyjrlk5cvx49586smmk81gkwff0i6r91n4rir4jm6ba25sb"))
|
||||||
|
@ -878,6 +907,8 @@ exec ~a/bin/.gcc-wrapped -B~a/lib \
|
||||||
"/20210106/gcc-stripped-5.5.0-powerpc64le-linux-gnu.tar.xz")
|
"/20210106/gcc-stripped-5.5.0-powerpc64le-linux-gnu.tar.xz")
|
||||||
("i586-gnu"
|
("i586-gnu"
|
||||||
"/20200326/gcc-stripped-5.5.0-i586-pc-gnu.tar.xz")
|
"/20200326/gcc-stripped-5.5.0-i586-pc-gnu.tar.xz")
|
||||||
|
("x86_64-gnu"
|
||||||
|
"/20241122/gcc-stripped-14.2.0-x86_64-pc-gnu.tar.xz")
|
||||||
("powerpc-linux"
|
("powerpc-linux"
|
||||||
"/20200923/gcc-5.5.0.tar.xz")
|
"/20200923/gcc-5.5.0.tar.xz")
|
||||||
("riscv64-linux"
|
("riscv64-linux"
|
||||||
|
@ -908,6 +939,9 @@ exec ~a/bin/.gcc-wrapped -B~a/lib \
|
||||||
("i586-gnu"
|
("i586-gnu"
|
||||||
(base32
|
(base32
|
||||||
"1j2zc58wzil71a34h7c70sd68dmqvcscrw3rmn2whq79vd70zvv5"))
|
"1j2zc58wzil71a34h7c70sd68dmqvcscrw3rmn2whq79vd70zvv5"))
|
||||||
|
("x86_64-gnu"
|
||||||
|
(base32
|
||||||
|
"1cgbhc76hlccx6v2z7kk7z173lryyq3la5mmbwivl6hbl1zcqg3m"))
|
||||||
("powerpc-linux"
|
("powerpc-linux"
|
||||||
(base32
|
(base32
|
||||||
"1p7df3yixhm87dw5sccc6yn1i9db1r9hnmsg87wq5xi4rfmirq7w"))
|
"1p7df3yixhm87dw5sccc6yn1i9db1r9hnmsg87wq5xi4rfmirq7w"))
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
|
;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
|
||||||
;;; Copyright © 2022 jgart <jgart@dismail.de>
|
;;; Copyright © 2022 jgart <jgart@dismail.de>
|
||||||
;;; Copyright © 2023 Simon Tournier <zimon.toutoune@gmail.com>
|
;;; Copyright © 2023 Simon Tournier <zimon.toutoune@gmail.com>
|
||||||
|
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -419,7 +420,7 @@ from forcing GEXP-PROMISE."
|
||||||
(define %64bit-supported-systems
|
(define %64bit-supported-systems
|
||||||
;; This is the list of 64-bit system types that are supported.
|
;; This is the list of 64-bit system types that are supported.
|
||||||
'("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux"
|
'("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux"
|
||||||
"riscv64-linux"))
|
"riscv64-linux" "x86_64-gnu"))
|
||||||
|
|
||||||
(define %supported-systems
|
(define %supported-systems
|
||||||
;; This is the list of system types that are supported. By default, we
|
;; This is the list of system types that are supported. By default, we
|
||||||
|
@ -428,14 +429,15 @@ from forcing GEXP-PROMISE."
|
||||||
|
|
||||||
(define %hurd-systems
|
(define %hurd-systems
|
||||||
;; The GNU/Hurd systems for which support is being developed.
|
;; The GNU/Hurd systems for which support is being developed.
|
||||||
'("i586-gnu"))
|
'("i586-gnu" "x86_64-gnu"))
|
||||||
|
|
||||||
(define %cuirass-supported-systems
|
(define %cuirass-supported-systems
|
||||||
;; This is the list of system types for which build machines are available.
|
;; This is the list of system types for which build machines are available.
|
||||||
;;
|
;;
|
||||||
;; XXX: MIPS is unavailable in CI:
|
;; XXX: MIPS is unavailable in CI:
|
||||||
;; <https://lists.gnu.org/archive/html/guix-devel/2017-03/msg00790.html>.
|
;; <https://lists.gnu.org/archive/html/guix-devel/2017-03/msg00790.html>.
|
||||||
(fold delete %supported-systems '("mips64el-linux" "powerpc-linux" "riscv64-linux")))
|
(fold delete %supported-systems '("mips64el-linux" "powerpc-linux"
|
||||||
|
"riscv64-linux" "x86_64-gnu")))
|
||||||
|
|
||||||
(define (maybe-add-input-labels inputs)
|
(define (maybe-add-input-labels inputs)
|
||||||
"Add labels to INPUTS unless it already has them."
|
"Add labels to INPUTS unless it already has them."
|
||||||
|
|
12
m4/guix.m4
12
m4/guix.m4
|
@ -3,6 +3,7 @@ dnl Copyright © 2012, 2013, 2014, 2015, 2016, 2018, 2019, 2020, 2021 Ludovic Co
|
||||||
dnl Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
dnl Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
||||||
dnl Copyright © 2017, 2020, 2021, 2023 Efraim Flashner <efraim@flashner.co.il>
|
dnl Copyright © 2017, 2020, 2021, 2023 Efraim Flashner <efraim@flashner.co.il>
|
||||||
dnl Copyright © 2021 Chris Marusich <cmmarusich@gmail.com>
|
dnl Copyright © 2021 Chris Marusich <cmmarusich@gmail.com>
|
||||||
|
dnl Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
|
||||||
dnl
|
dnl
|
||||||
dnl This file is part of GNU Guix.
|
dnl This file is part of GNU Guix.
|
||||||
dnl
|
dnl
|
||||||
|
@ -61,8 +62,13 @@ AC_DEFUN([GUIX_SYSTEM_TYPE], [
|
||||||
linux-musl*)
|
linux-musl*)
|
||||||
guix_system="$machine_name-linux";;
|
guix_system="$machine_name-linux";;
|
||||||
gnu*)
|
gnu*)
|
||||||
# Always use i586 for GNU/Hurd.
|
case "$machine_name" in
|
||||||
guix_system="i586-gnu";;
|
i386|i486|i586|i686)
|
||||||
|
# Always use i586 for 32bit GNU/Hurd.
|
||||||
|
guix_system="i586-gnu";;
|
||||||
|
*)
|
||||||
|
guix_system="$machine_name-gnu";;
|
||||||
|
esac;;
|
||||||
*)
|
*)
|
||||||
# Strip the version number from names such as `gnu0.3',
|
# Strip the version number from names such as `gnu0.3',
|
||||||
# `darwin10.2.0', etc.
|
# `darwin10.2.0', etc.
|
||||||
|
@ -91,7 +97,7 @@ courageous and port the GNU System distribution to it (see
|
||||||
# Currently only Linux-based systems are supported, and only on some
|
# Currently only Linux-based systems are supported, and only on some
|
||||||
# platforms.
|
# platforms.
|
||||||
case "$guix_system" in
|
case "$guix_system" in
|
||||||
x86_64-linux|i686-linux|armhf-linux|aarch64-linux|powerpc64le-linux|riscv64-linux|i586-gnu)
|
x86_64-linux|i686-linux|armhf-linux|aarch64-linux|powerpc64le-linux|riscv64-linux|i586-gnu|x86_64-gnu)
|
||||||
;;
|
;;
|
||||||
mips64el-linux|powerpc-linux)
|
mips64el-linux|powerpc-linux)
|
||||||
AC_MSG_WARN([building Guix on `$guix_system', which is not supported])
|
AC_MSG_WARN([building Guix on `$guix_system', which is not supported])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue