From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 yHWoMqPyfGepxgAA62LTzQ:P1 (envelope-from ) for ; Tue, 07 Jan 2025 09:23:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yHWoMqPyfGepxgAA62LTzQ (envelope-from ) for ; Tue, 07 Jan 2025 10:23:47 +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=ure2tW+V; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=AeHfVy1x; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736241827; 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=RAFDiYX1T3BuBLJ05rpA4sm0pJRX9dl0eP+rmhP2vr0=; b=oGlJjPBXJnSNijfBO6zGFhbPysw7cPpfe+RX25k6Pqxm4qLiLQTTYsqR1dQFx/hf+wOXLv +hxt/MKlwUC0fP2ifATmENa+7CK9bw8maDVJOktD1I78bsXTiDFr4ng2+G/55ERCphrDMy M25YN38RYNQAu5YmH32ASOwqK9gmaRpnEwW4EhnQDSaOR7A+VnD2sHFDnZixMP4pEke32R snZdkdd6PaGoQYsq5BQ3YT8FJZQbsPvcJ9q3ZcRruD800FeNgSgSZJ6SfkfAKbh6tTAVXd i/4p9uEcgpViFplQFko7sG0NbaGtqmnLdtuWWx1MuBiBJWJsevfLOr8auHLLkQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=ure2tW+V; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=AeHfVy1x; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736241827; a=rsa-sha256; cv=none; b=cgF3k5P6NbkDSAivi1t/oR+At88vj5+3yMsH4GLvKOyUcOHCu92UNeOoOZsW9XWgzY8TgK X5z1AXJ0gYhITMeK13i3vZyiWekm/60Oo9V73OeMqY/p35nMGFMZ15LCukkXRmzMqO7XOz AHLXCRWqDBJWzM9YsT2jMQXY8b3qjA86CrKN82uqk0LaneAWcs1+OOfbZYrlaDrY/3IVsj toBKKICWTcFrr/jXSjWBSTZo0AoaQngJZjTX3o4iFMZX/VSVOEBHGE5i5IFNVUB31ck3SG odz/ZEbHhv9Sez5T96Nd4pVG9mQwovmqoQ8ovAduZ5LwVTnUf9Q0YaAtAUqfIA== 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 54D0E18F50 for ; Tue, 07 Jan 2025 10:23:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tV5nr-0004YD-Cd; Tue, 07 Jan 2025 04:23: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 1tV5ni-0004XK-Ev for bug-guix@gnu.org; Tue, 07 Jan 2025 04:23:02 -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 1tV5ni-000546-6R for bug-guix@gnu.org; Tue, 07 Jan 2025 04:23:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=RAFDiYX1T3BuBLJ05rpA4sm0pJRX9dl0eP+rmhP2vr0=; b=ure2tW+VylEV7sPeH4n1lcoc6vAAQL6U2vTkjavkZzQNTfNs7O/HunHDtqJJDpNNih2RF470ieVM0H+EDcHNmzqN2A5CVvyTILF5Szs9gBy3Et/EncY9oxhRPJpnMRi7hditB0+Bpo1qXHoOpAvRHXoZpNy2n7ZHOs2vA3qjfzcXWHWCra+sLKhT9l1nsohppleZwWzh6OgmLylXx4ph90VYNMd81cGoqUOzua40i4EscsV8cGRROqD7jpLCVCO6drlnWUQxc2Tfh8WWLVjDIayc3F6HeZserN8uxLDc1YuQ0p+wISkydKCdVYLxdnWeVxSuDG9Wdas++2Ic4dINfg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tV5nh-0003c7-Qs for bug-guix@gnu.org; Tue, 07 Jan 2025 04:23:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74455: gcc-toolchain and gfortran-toolchain conflict Resent-From: Laurent Gatto Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 07 Jan 2025 09:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74455 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Simon Tournier Cc: 74455@debbugs.gnu.org Received: via spool by 74455-submit@debbugs.gnu.org id=B74455.173624176813869 (code B ref 74455); Tue, 07 Jan 2025 09:23:01 +0000 Received: (at 74455) by debbugs.gnu.org; 7 Jan 2025 09:22:48 +0000 Received: from localhost ([127.0.0.1]:41734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tV5nT-0003bd-QS for submit@debbugs.gnu.org; Tue, 07 Jan 2025 04:22:48 -0500 Received: from mail-oo1-xc33.google.com ([2607:f8b0:4864:20::c33]:57781) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tV5nQ-0003bS-RG for 74455@debbugs.gnu.org; Tue, 07 Jan 2025 04:22:46 -0500 Received: by mail-oo1-xc33.google.com with SMTP id 006d021491bc7-5f2efbc31deso7122388eaf.3 for <74455@debbugs.gnu.org>; Tue, 07 Jan 2025 01:22:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736241764; x=1736846564; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RAFDiYX1T3BuBLJ05rpA4sm0pJRX9dl0eP+rmhP2vr0=; b=AeHfVy1xSyDtVqi6rGVmxVSg09R1b7RW4VNn3DZZW2M23TfhLcYbYoKeCze85Gg2tJ jFkfpaRMPI+0KM9J+SQq4sFghhALP8qWb7Q879uI/MhbaS4f7/oNlfm0glT+OCUOhJ5j 8kd32kVuu+IrQevKZ1y8oUCws5qE/fNg9pEnTBPZLk2hM6mK/Vl0VTwPvw4bei68zK0+ iaC4uQoFqWZZvoK0JY/U+0MgosAC19Ze1CLgf/uvCnO9QFCdju+5s+rg2JYuoToO1+wu ALzJKm1sGNFVNeh4NomRkMmEhLXBYvJO1Ik96twWNZjR2hicaETPU9UzDMgqWTtumKFr U0wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736241764; x=1736846564; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RAFDiYX1T3BuBLJ05rpA4sm0pJRX9dl0eP+rmhP2vr0=; b=k3nG5aOX9iZKEwD7PHpm8QQbY7wG8vwdHyaZWhqbmj6ATyFFJX8AydeIhFYZeFSCoi hqQeQJpxYbsLl2ZCTWvQd8784J7yrSBVkOne5qNAeZY21IFj+AGT6+b0+KdBUmeRQoh5 krxYlLuLwCOBC0tqaSj9Yonm2eFYhPUuyQyYToVT+trQJ4D07EfBl82tcT99N/lpJGxH oy9q0zbXs+ELuUwWQqd8JaUrkPU/OhcpbaGC8YaGwBKaZtcqSK0d3Vptcs6kz4uiYrKQ j8PZ3YjWNj6z7fhMBW4jrX5Sd9C35N7WZl2Pu1jU9d9H/dVr+679cZg31aMZFBAUScNg f8XQ== X-Gm-Message-State: AOJu0Yz7siSupApy+ZLWFxKVgP0oUUM0oVCugxaRBf6dFj3VNQs04z0g JxyAT9hgGz/X+LDF007HrMK1LItpVHTB6N0eFi9QDRsQf3SNfBWWGzrSQrwk/3YeYrVxmnZWOnl QYA8IIKIAecAG/y2Odw1LumXlSlY= X-Gm-Gg: ASbGncuT/sKhL4LMfZjeHShqqMxJfdivfhRztyzeG+UvDYwdP73ztiZU96++WhYCo6m Xo81t4n2aRXPtkwKqmDjIxi4uVXXuGvp0iKDj+wEx X-Google-Smtp-Source: AGHT+IHy7aZb2TKdCeMJN+W6Y7Mi3I6QuovJ39mix2LSUPoxzT2GZY5n8VfJG19q6iZox6wQqq2AJiaGCKae/lqa1hQ= X-Received: by 2002:a05:6820:2202:b0:5f6:5596:b98a with SMTP id 006d021491bc7-5f65596ba75mr27566608eaf.7.1736241763779; Tue, 07 Jan 2025 01:22:43 -0800 (PST) MIME-Version: 1.0 References: <871pxfycz7.fsf@gmail.com> In-Reply-To: <871pxfycz7.fsf@gmail.com> From: Laurent Gatto Date: Tue, 7 Jan 2025 10:22:17 +0100 Message-ID: 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.93 X-Spam-Score: -2.93 X-Migadu-Queue-Id: 54D0E18F50 X-Migadu-Scanner: mx10.migadu.com X-TUID: 0RLubJqVr0d4 Hi Simon, Thank you for looking into this! > Well, the naive question: Does it make sense to have in the same profile > some C/C++ GCC toolchain at one version and some Fortran GCC toolchain > at another version? These are the versions I ended up with when installing the latest toolchains, and thought they would work together. Clearly that's not the case, and hence my bug isn't a bug. I have learnt that I need to make sure the toolchain versions match, that's very useful and addresses the original issue that led to this report. Wil there be a fortran-toolchain 14 at some point, or are there technical reasons that hold it back? Best wishes, Laurent On Mon, 6 Jan 2025 at 20:25, Simon Tournier wrot= e: > > Hi, > > On Thu, 21 Nov 2024 at 08:57, Laurent Gatto wro= te: > > > But fails I add gfortran-toolchain *after* gcc-toolchain > > That=E2=80=99s because both are =E2=80=9Cmore or less=E2=80=9D some GCC t= oolchain and provides > similar subset of files. Here, the version of the both default > toolchains does not match (14 vs 11). Since the profile is built using > the command line order, then depending on which one comes first, you > have one version or the other for some of these files. > > And as you can see, the compiler is g++ version 14 but using files from > version 11=E2=80=A6 > > --8<---------------cut here---------------start------------->8--- > $ readlink -f /gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include= /c++/type_traits > /gnu/store/piai5ba5fx901hr7pwnz2b9vysrrjmlh-gfortran-11.4.0/include/c++/t= ype_traits > --8<---------------cut here---------------end--------------->8--- > > =E2=80=A6and bang! > > If both are at 11, then it works as expected: > > --8<---------------cut here---------------start------------->8--- > $ cat main.cpp > #include > > int main(void) { > std::cout << __cplusplus; > > return 0; > } > > $ guix time-machine -q --commit=3D1e6d1c3 \ > -- shell gcc-toolchain@11 gfortran-toolchain \ > -- g++ --version > g++ (GCC) 11.4.0 > Copyright (C) 2021 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is N= O > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS= E. > > $ guix time-machine -q --commit=3D1e6d1c3 \ > -- shell gcc-toolchain@11 gfortran-toolchain \ > -- g++ main.cpp && ./a.out > 201703 > --8<---------------cut here---------------end--------------->8--- > > > Well, the naive question: Does it make sense to have in the same profile > some C/C++ GCC toolchain at one version and some Fortran GCC toolchain > at another version? > > Depending on the answer, I guess the fix is not the same. :-) > > Cheers, > simon