From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <guix-patches-bounces+larch=yhetil.org@gnu.org>
Received: from mp2.migadu.com ([2001:41d0:303:e224::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms13.migadu.com with LMTPS
	id +Ll0AZQhOmepUwEAe85BDQ:P1
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 17 Nov 2024 17:02:12 +0000
Received: from aspmx1.migadu.com ([2001:41d0:303:e224::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp2.migadu.com with LMTPS
	id +Ll0AZQhOmepUwEAe85BDQ
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 17 Nov 2024 18:02:12 +0100
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=m0klFzIr;
	dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=AaLp9+zS;
	dmarc=pass (policy=none) header.from=gnu.org;
	spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731862931; a=rsa-sha256; cv=none;
	b=gEdu4JhH3J/pnbPdl2DbZhV4x3u1qoIcb/B9G6/Ax26UFzN6Jl9AcZ7qw9woLhryWFfyek
	6i86WGZyFiR44axVuqWNk69Ll+saZCpuPiPjjBfFGvaDgZsSzcVsoPXH942pGYtZT2JSce
	rhU7bxwc2ytT0/Tn1Q8qVBnAMczkGebNJhVQt6z48Pl1Fr0DVf5JuLsyVX7rOC0cuc8LQv
	9N3OWcivECVV3khH7gYYbYLBFEPThJLO5RovOqcVz7fwNKxjNCVnYFXszoJ/SDuUzx3XNX
	GZOjF2YWlFP94DDr7FMG1MHgOoA9FydVnOEvwE65EwpELeeAbvDQ23Z5/geyOw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=m0klFzIr;
	dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=AaLp9+zS;
	dmarc=pass (policy=none) header.from=gnu.org;
	spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1731862931;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:resent-cc:resent-from:resent-sender:
	 resent-message-id:in-reply-to:in-reply-to:references:references:
	 list-id:list-help:list-unsubscribe:list-subscribe:list-post:
	 dkim-signature; bh=uPoSTSlkYPaaJ6YdE8r6zJFUoQxVL5bS/GFp36s+M1s=;
	b=J1wFJASVHZNlzNujwWjES8+mQclxtm0Dcdgx9wAmC8Z8amaPdSBMf40TQC0+Xy55saQOGz
	vr3Up+sBntg6+Z591nDH6Vsl1QJ8zXeEpjjlSFMMFpe3RMx6n0b9+/f1hRHUIwhjquvJYG
	tjYtxyC1uboYP0T72xihd+MKcvIpTrCnSwTLT6aM23hS6cTdbxlvDdXuhyA6MZIopF4R5L
	kzQm8muya2TSR31znOOHVld1QQmuAzkaf4b3yfev+RPdI+cgd2X06v9mpsaeuw+l/Ypk2q
	fKlOrG7Kxyfg25ekGYTeWMMTO24+uWMZHNw/lIacZNuLhuAmGkskFNlyk2WQxg==
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by aspmx1.migadu.com (Postfix) with ESMTPS id 9685C83BE6
	for <larch@yhetil.org>; Sun, 17 Nov 2024 18:02:11 +0100 (CET)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guix-patches-bounces@gnu.org>)
	id 1tCieq-00010W-16; Sun, 17 Nov 2024 12:02:00 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1tCidy-0000dW-V8
 for guix-patches@gnu.org; Sun, 17 Nov 2024 12:01:06 -0500
Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1tCidy-0002ed-Mk
 for guix-patches@gnu.org; Sun, 17 Nov 2024 12:01:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=debbugs.gnu.org; s=debbugs-gnu-org; 
 h=MIME-Version:Date:References:In-Reply-To:From:To:Subject;
 bh=uPoSTSlkYPaaJ6YdE8r6zJFUoQxVL5bS/GFp36s+M1s=; 
 b=m0klFzIrd5PsFZkqNB8ufU8n6/zCHy5rKkbfnf5eo8twMpEmvj00XcjShP63iWbxAG/jdSgfboz84SXR1xVRCam8lc8Ne/q22vtVewxWkmc1pBL+OaSuNOjt52r2je54+x9S0ybwkzbqnC0O5frh5LZLrAYCmCCkVDt3pueDrYZfFNoilBQOWbiq/+l48BWylMMlVPelqjiRaNEzcRAE4bG3tz+rNcstsu1LR9ZKOoWV2dxs8qm62hs6S86U5zXoCOZxs9ka0y0azijvmAudYnKBFo9pCh7YHC/OyHBsTK6EltnSTbpnOw7eC6hLrEMvN6Whe3SkTdo43tPCV1RFAA==;
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tCidy-0003sE-HK
 for guix-patches@gnu.org; Sun, 17 Nov 2024 12:01:02 -0500
X-Loop: help-debbugs@gnu.org
Subject: [bug#74290] [PATCH v2 05/40] gnu: Add basic support for x86_64-pc-gnu
 target, aka 64bit Hurd.
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: guix-patches@gnu.org
Resent-Date: Sun, 17 Nov 2024 17:01:02 +0000
Resent-Message-ID: <handler.74290.B74290.173186280514351@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 74290
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Janneke Nieuwenhuizen <janneke@gnu.org>
Cc: 74290@debbugs.gnu.org, Josselin Poiret <dev@jpoiret.xyz>,
 Ekaitz Zarraga <ekaitz@elenq.tech>, Simon Tournier <zimon.toutoune@gmail.com>,
 Mathieu Othacehe <othacehe@gnu.org>, Tobias Geerinckx-Rice <me@tobias.gr>,
 Efraim Flashner <efraim@flashner.co.il>, Andreas Enge <andreas@enge.fr>,
 Christopher Baines <guix@cbaines.net>
Received: via spool by 74290-submit@debbugs.gnu.org id=B74290.173186280514351
 (code B ref 74290); Sun, 17 Nov 2024 17:01:02 +0000
Received: (at 74290) by debbugs.gnu.org; 17 Nov 2024 17:00:05 +0000
Received: from localhost ([127.0.0.1]:58350 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1tCid2-0003jO-VH
 for submit@debbugs.gnu.org; Sun, 17 Nov 2024 12:00:05 -0500
Received: from eggs.gnu.org ([209.51.188.92]:54132)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@gnu.org>) id 1tCid1-0003iI-8c
 for 74290@debbugs.gnu.org; Sun, 17 Nov 2024 12:00:04 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@gnu.org>)
 id 1tCics-0002IO-Qo; Sun, 17 Nov 2024 11:59:54 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=uPoSTSlkYPaaJ6YdE8r6zJFUoQxVL5bS/GFp36s+M1s=; b=AaLp9+zSZgz7OkXoJ+QN
 Bbp0gO00Ytv2VqIqNsZnzqikiV4Q+LI0oh/DkZKHaVpzF3b3K2a0V9jfFnJvYdWi8NdoLWQN6/MQI
 xeMg+D6ly7iRZVptm+ROKPNmwh/gUkWFk7dXO+tVfQZubMEPQSiYu5hxmJo6jZuxlIndQMR84zKNq
 X00XHatXwDOcx4/UQkO3f4gsek++MqfhR+yEptuyhsTbtwPGOjZaGxKmYKZWTCV2IjQHkBO0vjFrd
 34FZPnG+73HkilQfdpye2HFqXqlJ4CiFKDB9NP26oBB0/2wUF8oXCsMXo8lc52L2iKCt2NxZDMjZS
 Xa47JvWcDJYsKw==;
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@gnu.org>
In-Reply-To: <99a9152dc069538a151504d65b85fd5105149a51.1731427612.git.janneke@gnu.org>
 (Janneke Nieuwenhuizen's message of "Tue, 12 Nov 2024 17:25:14 +0100")
References: <cover.1731427612.git.janneke@gnu.org>
 <99a9152dc069538a151504d65b85fd5105149a51.1731427612.git.janneke@gnu.org>
Date: Sun, 17 Nov 2024 17:59:50 +0100
Message-ID: <87mshxkd89.fsf@gnu.org>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: guix-patches@gnu.org
List-Id: <guix-patches.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-patches>
List-Post: <mailto:guix-patches@gnu.org>
List-Help: <mailto:guix-patches-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=subscribe>
Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org
Sender: guix-patches-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
X-Migadu-Spam-Score: -3.01
X-Spam-Score: -3.01
X-Migadu-Queue-Id: 9685C83BE6
X-Migadu-Scanner: mx12.migadu.com
X-TUID: Rni1p5gervy1

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Janneke Nieuwenhuizen <janneke@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=E2=80=99s 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:


--=-=-=
Content-Type: text/x-patch
Content-Disposition: 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.

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


That would affect also non-Hurd cross-compilation targets, but if it
works, it=E2=80=99s simpler.

Then, as a second step, we could prepare a =E2=80=98core-packages-team=E2=
=80=99 branch
that upgrades =E2=80=98gcc=E2=80=99 globally, and that way we keep somethin=
g consistent
and simpler, without =E2=80=98current-gcc=E2=80=99.  (Though it means we=E2=
=80=99d have to wait
before we can build natively on x86_64-gnu.)

WDYT?

Ludo=E2=80=99.

--=-=-=--