From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 aAGhImYufGcRiwAAe85BDQ:P1 (envelope-from ) for ; Mon, 06 Jan 2025 19:26:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aAGhImYufGcRiwAAe85BDQ (envelope-from ) for ; Mon, 06 Jan 2025 20:26:30 +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=VsbYhhV0; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=LXzUJ7a4; 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=1736191590; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=n5LB+7Aw/vLSL3H9wJ99V3DTInyuNTTGxMF60U8W7OU=; b=IEiWhJZhQXotpR2nYN1yu2Ej7mFii5JR1VQ7D8EkM/ND55D3zOkw2pIWccx/WeUuf8SG8m 1aQLnPGXuwUz6ipY2aKiuhGZGoicPrwR8d8wPebDT7+fBsON+dc/V7QYXB6qzqDMEGWzFP m2Uf8DxODP4WiUNlGroYK9mWk9jPzJOBXlFvwcr6fZECoiRgqb2p03A1PDEjXXa3Ny7QVF Jz1HEW9Da6qM4vpppHFUlMRnXuyKZlkuBJ+3cFAlNnbU+cAelh2VAafj+HDG3ZeIgGXL/q 0zmeA1hToAkhEQFy5cX5jNVLe3PNLekIc0TIcrre4aCYeUwsxigfs5/+OVLz9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=VsbYhhV0; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=LXzUJ7a4; 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=1736191590; a=rsa-sha256; cv=none; b=AFLDuKd9JT+IYvwQ99kmfAWPkXUFhiOqZj66sBKO0L9KeuFPkArpaNXWozMoAoPBmfpKRF FbE5jcQ6Ia/XoFgRyr7hrgqHJLFYpFozEExFwVhVBdXvgjmnASZ5DRNh9xMd6nMU5RcS1K ph/d9WRjikaYLmaszgyK+dA7Vmg1pbeO2urs/LxZ0jiCQsZXg876zYp5JpA8ttTSIR7BdE NmPXPMSCKrIdQjJWi6CxANzLUBieg6rtF3EAZNCLOmlRAFG9Wo1yjn3rtXge2IRAcV+e3l heZ1g8YAFmWZaJB7wn1r1GUG/hc0ycvAdUZN+lD5qKrJ5pc+GXqf5Q9i+n0PQA== 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 60A0EA7C24 for ; Mon, 06 Jan 2025 20:26:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUsjk-0006aR-Ta; Mon, 06 Jan 2025 14:26:04 -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 1tUsji-0006XL-RL for bug-guix@gnu.org; Mon, 06 Jan 2025 14:26:03 -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 1tUsji-0008Fq-J0 for bug-guix@gnu.org; Mon, 06 Jan 2025 14:26: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=n5LB+7Aw/vLSL3H9wJ99V3DTInyuNTTGxMF60U8W7OU=; b=VsbYhhV02rV0FNGYH+SDhC8UGU2iyKap4PJEQ1xngpXJmuoxoVqHRZcyIl1rA0pE1XXXsru8tlzfP9F5tGIuINdCtrM8Twb0sdeahctuDwyMPd/+4l+vd4Z/l8Sj6y/8wDNYXOx+tDLpUPVP/kBmVAiWAoVxw6GbCWL7guKFrfg6jzAYwXOYNGvnswv317oWWxs6/32ACjvHWniJhIc9adxFOJL9b8LW2ZOK/9P98H7Y+YjAR8+CpSQZu2g/NmdzR85yFi2pmFFYVtgL/S1R5j1bJQNf/Qxgs2bvhbK+l6BXlIMe6LlsKuNtjiErB/0ijmXhzocFK3cZ2Ip2b3BA4g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUsji-0006AN-4r for bug-guix@gnu.org; Mon, 06 Jan 2025 14:26:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74455: gcc-toolchain and gfortran-toolchain conflict Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 06 Jan 2025 19:26:02 +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: Laurent Gatto , 74455@debbugs.gnu.org Received: via spool by 74455-submit@debbugs.gnu.org id=B74455.173619154923683 (code B ref 74455); Mon, 06 Jan 2025 19:26:02 +0000 Received: (at 74455) by debbugs.gnu.org; 6 Jan 2025 19:25:49 +0000 Received: from localhost ([127.0.0.1]:40135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUsjV-00069v-9e for submit@debbugs.gnu.org; Mon, 06 Jan 2025 14:25:49 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:45230) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tUsjS-00069k-Gy for 74455@debbugs.gnu.org; Mon, 06 Jan 2025 14:25:47 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-435f8f29f8aso106732365e9.2 for <74455@debbugs.gnu.org>; Mon, 06 Jan 2025 11:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736191545; x=1736796345; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=n5LB+7Aw/vLSL3H9wJ99V3DTInyuNTTGxMF60U8W7OU=; b=LXzUJ7a4xq3NRpvPUm5eZj72cZ17x1p79OZfKc8B3mN8qnElDTtwFC7OCq1C2a8Tpd cAQafD6x5Hr2Xy6DUtAhxCIBnk5vJT2WFSe3VG5oGmj4g3crGmUV2ocrt7H0QbpBDDQF Q34EUZgFl7oR2ojJ2q1uisjJdvw20OwawO0w/gJwc6on7h4fUvjdXuE8uQipMrbpgp4o cZe4uegvKiM2ShPMzfOkztRtmjNnKACAF2sNj+7IL5R5HGbktacl0M1zhD0LCH0+534R DODhAFNU0JB4Q5wiMHuvJ5daiDQY/wmh6+ANtqiorRlS4gH3bBOvPy/38Z3gqa4Y3n2H rJNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736191545; x=1736796345; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=n5LB+7Aw/vLSL3H9wJ99V3DTInyuNTTGxMF60U8W7OU=; b=d3atriAWWzoc/2XpBezlQCMyWw1rOQOrE2CROnRYEas6cmKl/P98hg+7898sxn4+eq 6UEBlJw8HJ5y2F0a54adhGI84yFmjpwUXZKrX3wLSTZhSMAG6KHFHQnarrJTo4lm1tnM tIDbcY/yRVjwvdUiZW3rzcLZ+SY8bCRR3XIWWZl1CieyHuL3fZmWWL101tySFEgeiN7F GGn4GncJ1TZhCcnwnEHeGWB7ZlUt3Odddtw53TWpX4hYS456ZsHkAo/sOlpmA3eSeHZo KSXKZ7c5XQaDu/PHBosfie+Aj5HCssMZlfS997sQ4xIsvnOh6IqovUXyLYlcN+JLWwiH 1kVw== X-Forwarded-Encrypted: i=1; AJvYcCWRbjykXYpEouCCK9Ac9hV8IwGKDwE7GS1cEQ85fVmH62lPB7YNeXEKeVKuSZmgqrK2PW0xSw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxKmm6U45NxIY0+iAV0+Bvkk77VaD7VRA4hKmxF3wln1qVVDkMo gypWefTGn5YL6f9YdSn6cjbG8EqLlQNwaVWkc5a/HTpX3uj4GveC1A9k8g== X-Gm-Gg: ASbGncunVeH+XNTjAtdwV7HrIVhj303NrfQXJrB39p+1HbFXbeWDv6sikgzGhM6f1er /k+uTvGl8M96iMhd6nDk1ZcGCMA6rH2MUr2YWYLHnLTVWTGbQmvb6r5DULA1ZdIlBhpWX/ilYqf 5JGCdvO9JCslkjhJFiOtgx3IL8f2sIvbZbhpg1ioeIMW/xhuoV7VzCpDBkcd1+UFz+bV38oB2dh 6qRneAzanTjS5xCJ6/wgdj+0NZQ9NuNrU7wcy1lK5ClHTOQzFwySnDbKJrwOHQisifb9txynjjG BwusLxt/N9rK+7AV/k/vfLDdsqss9ISO9Z3lBSYBmQ== X-Google-Smtp-Source: AGHT+IErkZ9FQ25TffhlnyXJh/I9NNgzE0lJCD04ZacwSuy49DPui2EuJ1nzve7T6jPOfPLhp0YDcA== X-Received: by 2002:a5d:5f51:0:b0:385:fa2e:a33e with SMTP id ffacd0b85a97d-38a223fd369mr46930210f8f.43.1736191545015; Mon, 06 Jan 2025 11:25:45 -0800 (PST) Received: from lili (roam-nat-fw-prg-194-254-61-40.net.univ-paris-diderot.fr. [194.254.61.40]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4364b053e91sm638633555e9.1.2025.01.06.11.25.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2025 11:25:44 -0800 (PST) From: Simon Tournier In-Reply-To: References: Date: Mon, 06 Jan 2025 20:11:08 +0100 Message-ID: <871pxfycz7.fsf@gmail.com> 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: 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: 60A0EA7C24 X-Migadu-Scanner: mx10.migadu.com X-TUID: 1YgshRV9kMQx Hi, On Thu, 21 Nov 2024 at 08:57, Laurent Gatto wrote: > 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 too= lchain 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++/typ= e_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=20 #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 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ 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