From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yCdoKsYnOmcNOQEAqHPOHw:P1 (envelope-from ) for ; Sun, 17 Nov 2024 17:28:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yCdoKsYnOmcNOQEAqHPOHw (envelope-from ) for ; Sun, 17 Nov 2024 18:28:38 +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=otmxSm3v; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=RqW30TlV; 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=1731864518; a=rsa-sha256; cv=none; b=riVjSPWfu5OsdbA2cRyrfxBRXsQkcM4YT85XZbJlNhhQDyhJz4zpp0E4tIGByl9izDIvlO q6iAhSVjend89Z7aJ/nKRu5AY2/36YYHXtYykuR0MvFwb1AQ3fpcnc72yZzbh2TNVPeAf8 iHOzcaZ3/IPGpQu/lCpADbw6D/2AzaZGmQQUsrAHNS583mJIgrJFJtCmTdHDDZE+B22OYY MUPReHF5KFlo5KTrNafpz132Pw6+oyXvfHtIO/X+5HmsxgphjjasuDJUNtLTQXvhdIdkVl 57nL1qF0pFljxbcmzH7/Awarl7e+rpDnnrrtBUepH2uyIhkQVJbH3y5rM+zCWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=otmxSm3v; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=RqW30TlV; 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=1731864518; 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: content-transfer-encoding:content-transfer-encoding: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=tJDKY9gMoTrVLhhsGsX6SpgOKZ8TIz8/moc2h87z02g=; b=ZysAQ22Y8vC1N0eohXho91F55mJvsFP55WD/sYW6JLY5DmXGQ7GRyZfMtbAxjOeyokl5yM Km0bLksBDbdK/r0D0sE+Eb0cDoa2Du+Jo9ehw1Ds3Egw0HteSKEtKI9cq9azDYkJjo80j3 MqYy4qnR1YGaN5iyQqDZUTnA2L+rVeOnXgyERdvqbSRgtWXpcEWFkMkOpvh2sU7gE/QSd4 goBggLOp5I5fOTwHbsE729xwF9NkQqRCmYXpgfz+aHuCsw0P8HUlXEtCqvp/5sJJJDox39 9GOrdjqnxX2Q4hTugPguwrzIUZtZC7Ximssal5UZ+SAyeI+QIO+TAHnF3GE0Zw== 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 2D5D179EB1 for ; Sun, 17 Nov 2024 18:28:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCj4F-0005y3-K0; Sun, 17 Nov 2024 12:28:11 -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 ) id 1tCj47-0005xF-Cr for guix-patches@gnu.org; Sun, 17 Nov 2024 12:28:04 -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 ) id 1tCj45-0006bV-Rd for guix-patches@gnu.org; Sun, 17 Nov 2024 12:28: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=tJDKY9gMoTrVLhhsGsX6SpgOKZ8TIz8/moc2h87z02g=; b=otmxSm3vM3QFsZGzmJyHd1vfSMUheCb9ACstG9CG96wjnF71byfDAdVVLOFvZDYZvYmrh419txFPR7lyQq9qRGcn592zIfVkWOV4bmyoz2RQUHlLl2p6XYP91wlP2LjmWBEswDPi6zS4xdtvjRIZSW6OqITWGQ38O4JZNmijrVumvR6bIkbZ+Do+gCaO2J5S+11GvD0Ve7hg74+v3Ae4LBu2Nft29alK4yPk4hoINigFXQHMC8fRFx7zVibk5DCEFcMb+NAwDpydQL/OUgXELOb1SOmLp1ByT5xZ7ucOZS7L/XM77Nt9G+iGtZ3J01qQykp9h6uTHAOjflFTkpE4UQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCj45-00055D-NS for guix-patches@gnu.org; Sun, 17 Nov 2024 12:28:01 -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: Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 Nov 2024 17:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74290 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 74290@debbugs.gnu.org, Josselin Poiret , Ekaitz Zarraga , Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , Efraim Flashner , Andreas Enge , Christopher Baines Received: via spool by 74290-submit@debbugs.gnu.org id=B74290.173186443219471 (code B ref 74290); Sun, 17 Nov 2024 17:28:01 +0000 Received: (at 74290) by debbugs.gnu.org; 17 Nov 2024 17:27:12 +0000 Received: from localhost ([127.0.0.1]:58436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCj3I-00053z-4Y for submit@debbugs.gnu.org; Sun, 17 Nov 2024 12:27:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCj3F-00053i-Lf for 74290@debbugs.gnu.org; Sun, 17 Nov 2024 12:27:10 -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 ) id 1tCj35-0006W4-2w; Sun, 17 Nov 2024 12:26:59 -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=tJDKY9gMoTrVLhhsGsX6SpgOKZ8TIz8/moc2h87z02g=; b=RqW30TlVQSXhgTrHqtqL s59okp6mFq9huH66Pnh6ol6N6SHQPnfmNfo9KxDBZLCwTdIboJr3u540iVGq/NM9etfglrzwXOq3F StsPKC1XlskWUiBeeZQcz0uv7uzQMwkfiQEyMy7MbSPz3ALGVVFzWZZDSyLgB/byTMY/thQGE/ryT Ogmr2yu8JWxUATFc/bXvhWobHnovwSattS5NZKF5lpWgNrHLNAZCTFd4cT3v3vhCRUUVLmfBxV9QD ix9y9znYMcWn3x09OigYhe/eJ4mN+X9cKtyo6xy+kk4oxi5fOGCKEEAxhvi1Dw13y90q/26bT/irI OnzkNOvQ+wc7KQ==; From: In-Reply-To: <87mshxkd89.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sun, 17 Nov 2024 17:59:50 +0100") Organization: AvatarAcademy.nl References: <99a9152dc069538a151504d65b85fd5105149a51.1731427612.git.janneke@gnu.org> <87mshxkd89.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Sun, 17 Nov 2024 18:26:51 +0100 Message-ID: <87o72dn544.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.93 X-Spam-Score: -3.93 X-Migadu-Queue-Id: 2D5D179EB1 X-Migadu-Scanner: mx10.migadu.com X-TUID: q/S7yNHv93kG Ludovic Court=C3=A8s writes: > Janneke Nieuwenhuizen 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. Eh, if you mean for the 64bit Hurd, sure! That was the idea, it needs gcc-14... > Let=E2=80=99s assume we only want cross-compilation to x86_64-gnu for now, Cross-compilation works pretty well, I've been mostly working on native compilation the past week... > how about changing the GCC version used for cross-compilation, and > only that: > > 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)) Interesting...I would have thought this would cause a world rebuild, because of the cross-gcc in commencement. Apparently, it doesn't. > That would affect also non-Hurd cross-compilation targets, but if it > works, it=E2=80=99s simpler. Ok, I very much like the simplicity of this. > 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 someth= ing 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? I've been thinking about this route and decided against it because it seems to me that upgrading to gcc-14 will cause a lot of trouble/work. However, if that work is shared, and we have the build farm to help, it may be the best route. Maybe the wait doesn't have to be too long? Also, in the mean time, upstream support might improve. Maybe we can decide to go the route you propose and also keep this current-gcc patch on the hurd-team branch for a bit (we prepend a fat REMOVEME in front of it). We can keep working on native Hurd builds that use gcc-14 on hurd-team using this hack, until core-packages-team is ready to make it obsolete? Greetings, Janneke --=20 Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com