[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
50/50: gnu: Use gcc-14, gcc-toolchain-14 on the 64bit Hurd.
From: |
guix-commits |
Subject: |
50/50: gnu: Use gcc-14, gcc-toolchain-14 on the 64bit Hurd. |
Date: |
Mon, 18 Nov 2024 16:43:22 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit 6e9b1f39bfed9861c724a48475c8b0612c0484d1
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Nov 18 09:46:17 2024 +0100
gnu: Use gcc-14, gcc-toolchain-14 on the 64bit Hurd.
This enables building packages in a 64bit childhurd. It will not enable
offloading to a childhurd.
* guix/utils.scm (host-hurd?, host-x86-64, host-hurd64?): New procedures.
* gnu/packages/commencement.scm (gcc-toolchain): Use them to determine if
the
host is a 64bit Hurd, and use gcc-toolchain-14.
* gnu/packages/gcc.scm (gcc): Likewise, to use gcc-14.
Change-Id: I55e43fdc61e3ea5fc13065fc7ca854b951c94930
---
gnu/packages/commencement.scm | 4 +++-
gnu/packages/gcc.scm | 5 ++++-
guix/utils.scm | 20 ++++++++++++++++++++
3 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index a14de3002f..3f11bb3384 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3642,7 +3642,9 @@ is the GNU Compiler Collection.")
;; The default GCC
(define-public gcc-toolchain
- gcc-toolchain-11)
+ (if (host-hurd64?)
+ gcc-toolchain-14
+ gcc-toolchain-11))
(define-public gcc-toolchain-aka-gcc
;; It's natural for users to try "guix install gcc". This package
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 64ba37fd69..070a0965e6 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -857,7 +857,10 @@ It also includes runtime support libraries for these
languages.")
;; Note: When changing the default gcc version, update
;; the gcc-toolchain-* definitions.
-(define-public gcc gcc-11)
+(define-public gcc
+ (if (host-hurd64?)
+ gcc-14
+ gcc-11))
;;;
diff --git a/guix/utils.scm b/guix/utils.scm
index e100c03365..7a71919f73 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -96,6 +96,9 @@
system-hurd?
target-hurd64?
system-hurd64?
+ host-hurd?
+ host-hurd64?
+ host-x86-64?
target-mingw?
target-x86-32?
target-x86-64?
@@ -729,6 +732,23 @@ a character other than '@'."
(and (system-hurd?)
(target-64bit? (%current-system))))
+(define (host-hurd?)
+ "Are we running on a Hurd system? This is almost never the right function,
+use target-hurd? or system-hurd? instead."
+ (equal? (utsname:sysname (uname)) "GNU"))
+
+(define (host-x86-64?)
+ "Are we running on a x86_64bit system? This is almost never the right
+function, use target-x86-64? or system-x86-64? instead."
+ (and (host-hurd?)
+ (equal? (utsname:machine (uname)) "x86_64")))
+
+(define (host-hurd64?)
+ "Are we running on a 64bit Hurd? This is almost never the right
+function, use target-hurd64? or system-hurd64? instead."
+ (and (host-hurd?)
+ (host-x86-64?)))
+
(define* (target-mingw? #:optional (target (%current-target-system)))
"Is the operating system of TARGET Windows?"
(and target
- 17/50: gnu: perl: Support [cross-]building with gcc-14 and for 64bit Hurd., (continued)
- 17/50: gnu: perl: Support [cross-]building with gcc-14 and for 64bit Hurd., guix-commits, 2024/11/18
- 29/50: gnu: libpciaccess: Support the 64bit Hurd., guix-commits, 2024/11/18
- 32/50: gnu: rumpkernel: Update to f1ffd6405f225336e595a0f99f01095ed7438337., guix-commits, 2024/11/18
- 35/50: gnu: inetutils: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 37/50: gnu: guile-fibers: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 43/50: gnu: gettext: Fix cross-build shebangs., guix-commits, 2024/11/18
- 40/50: gnu: commencement: mig-boot0: Update to 1.8+git20231217.., guix-commits, 2024/11/18
- 46/50: gnu: bootstrap: %bootstrap-glibc: Also fix libm.so., guix-commits, 2024/11/18
- 49/50: system: examples: Add devel-hurd64.tmpl., guix-commits, 2024/11/18
- 48/50: system: examples: Add bare-hurd64.tmpl., guix-commits, 2024/11/18
- 50/50: gnu: Use gcc-14, gcc-toolchain-14 on the 64bit Hurd.,
guix-commits <=
- 45/50: gnu: guile-lzlib: Support the 64bit Hurd., guix-commits, 2024/11/18
- 47/50: gnu: findutils: Disable tests on the 64bit Hurd., guix-commits, 2024/11/18
- 42/50: gnu: commencement: libstdc++-boot0-gcc7: Replace by make-libstdc++-boot0., guix-commits, 2024/11/18