GNU bug report logs -
#74290
[PATCH 00/31] Add support for x86_64-gnu, aka the 64bit Hurd.
Previous Next
Reported by: Janneke Nieuwenhuizen <janneke <at> gnu.org>
Date: Sun, 10 Nov 2024 10:35:02 UTC
Severity: normal
Tags: patch
Done: Janneke Nieuwenhuizen <janneke <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Janneke Nieuwenhuizen <janneke <at> gnu.org> skribis:
> +++ b/gnu/packages/commencement.scm
> @@ -3643,10 +3643,12 @@ (define-public gcc-toolchain-14
> ;; The default GCC
> (define (current-gcc-toolchain)
> "The current default gcc-toolchain version."
> - gcc-toolchain-11)
> + (if (target-hurd64?)
> + gcc-toolchain-14
> + gcc-toolchain-11))
[...]
> +++ b/gnu/packages/gcc.scm
> @@ -861,10 +861,12 @@ (define-public gcc-14
> ;; the gcc-toolchain-* definitions.
> (define (current-gcc)
> "The current default gcc version."
> - gcc-11)
> + (if (target-hurd64?)
> + gcc-14
> + gcc-11))
This affects not just cross-compilation but also native compilation.
Let’s assume we only want cross-compilation to x86_64-gnu for now, how
about changing the GCC version used for cross-compilation, and only
that:
[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 5781341a87..6120740b3c 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -61,7 +61,7 @@ (define-syntax %xgcc
;;
;; Note: This is a macro so that we do not refer to 'gcc' from the top
;; level, which would lead to circular-dependency issues.
- (identifier-syntax gcc))
+ (identifier-syntax gcc-14))
(define %gcc-include-paths
;; Environment variables for header search paths.
[Message part 3 (text/plain, inline)]
That would affect also non-Hurd cross-compilation targets, but if it
works, it’s simpler.
Then, as a second step, we could prepare a ‘core-packages-team’ branch
that upgrades ‘gcc’ globally, and that way we keep something consistent
and simpler, without ‘current-gcc’. (Though it means we’d have to wait
before we can build natively on x86_64-gnu.)
WDYT?
Ludo’.
This bug report was last modified 175 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.