GNU logs - #74455, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#74455: gcc-toolchain and gfortran-toolchain conflict
Resent-From: Laurent Gatto <laurent.gatto@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 21 Nov 2024 07:59:01 +0000
Resent-Message-ID: <handler.74455.B.173217590816462 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 74455
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 74455 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.173217590816462
          (code B ref -1); Thu, 21 Nov 2024 07:59:01 +0000
Received: (at submit) by debbugs.gnu.org; 21 Nov 2024 07:58:28 +0000
Received: from localhost ([127.0.0.1]:48988 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tE255-0004HR-Ts
	for submit <at> debbugs.gnu.org; Thu, 21 Nov 2024 02:58:28 -0500
Received: from lists.gnu.org ([209.51.188.17]:56134)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <laurent.gatto@HIDDEN>) id 1tE254-0004HK-Bq
 for submit <at> debbugs.gnu.org; Thu, 21 Nov 2024 02:58:26 -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 <laurent.gatto@HIDDEN>)
 id 1tE254-0001vq-2W
 for bug-guix@HIDDEN; Thu, 21 Nov 2024 02:58:26 -0500
Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <laurent.gatto@HIDDEN>)
 id 1tE252-000430-2h
 for bug-guix@HIDDEN; Thu, 21 Nov 2024 02:58:25 -0500
Received: by mail-oi1-x22e.google.com with SMTP id
 5614622812f47-3e60966297fso337599b6e.1
 for <bug-guix@HIDDEN>; Wed, 20 Nov 2024 23:58:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1732175902; x=1732780702; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=x8SSyRkJXmg8YmVzLumLpE4gOrmu5IY/MYVSkC59kFA=;
 b=Jnz/aL0+BHiFp8bmHuEW5NEAn/u3tk9R/7Pui7OU+2LWphI7kdAj9gKbeCR4HbG6WK
 eLZlhrA8hBXkcYZ9yh7BsuTJUCQMrm8D0ffREVvvxAxWGT1HU0WsQ8Q7YNKXHpYa7HGR
 9n6yY2F7rkIEWgAPUNB9iFhIHc5imx5yxdyL1TEvmUycLM3WDc6RIXGUgVtOhdb3LJDN
 apCuIcHTUJrjYmkLxNgWDoVdfiRnMeCkOJf/HKYsdhO03JmOCmkDtGDPuKQhtCsRsVVJ
 kc1cxVQeCU1NnUtLrGXhDCQARfRRDbz9LUFi6Wl/r9+QEaevYbdYL5Kxygon33NMx48X
 KkZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1732175902; x=1732780702;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=x8SSyRkJXmg8YmVzLumLpE4gOrmu5IY/MYVSkC59kFA=;
 b=tTJYI1chd4vrs1V5Rise0bhRw3+rDJJtvQ+oby2IW7TYDmMrVHhJQCFr1+BgYudZVI
 W7JGasa1RifCwsYOuVSQTWlTtErqWngjY+OFI5SELdWp96dBPXoJW6Rmic+0Kg4J4nm5
 UEgX50OB/rDKpUS3MhX2Y4ndiIvkJ3imCy8K5t9gF44uZOhI5IWRagFzCLklaIGxMpir
 ENRhfTq3lyMNgZNPJHLGos8825bchgFkqEogTLG7mgCum6CrhN/i2NtL1FQ/khCSxnlM
 ceG+J9Lyx3QJuE9EceQnq85esDGl8RvfKkSIJWDqUevZ7l5NrSLGluWJwdhyZpm6StXy
 znuA==
X-Gm-Message-State: AOJu0YzKBb+cErCadJ7qTet5CG90IqWEnmdAX8sZLpsEwSSwBqBwpCDs
 f1aTWE6mZ+/hhBKWBvPXy9sDrg8cQt33KIPJw1T8oA+jY9Nd6PiqPIO4R4u/d+vtnLhSEbLFEet
 H9fm2NQM23ucPKStJXYVox4kqz8/cXzg7M18=
X-Google-Smtp-Source: AGHT+IFy/R55+COypHlHrd3F1SASb0pGlTnUU1rqdK3OAXe3m54RHdcqK7NRmS0uoGy445YsBtOX9X+tQsE4/kkQgNE=
X-Received: by 2002:a05:6808:1914:b0:3e6:3878:35c9 with SMTP id
 5614622812f47-3e7eb69bc8fmr6211909b6e.8.1732175901680; Wed, 20 Nov 2024
 23:58:21 -0800 (PST)
MIME-Version: 1.0
From: Laurent Gatto <laurent.gatto@HIDDEN>
Date: Thu, 21 Nov 2024 08:57:55 +0100
Message-ID: <CA+uNOzhaZbkznRn581=t7JCW1JYoiXftri1RkyybpR=-5u5OYQ@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::22e;
 envelope-from=laurent.gatto@HIDDEN; helo=mail-oi1-x22e.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Here's a simple C++ chunk

```
$ cat main.cpp
#include <iostream>

int main(void) {
    std::cout << __cplusplus;

    return 0;
}
```

that compiles as expected, with the latest gcc version

```
$ guix shell --container gcc-toolchain
The following derivation will be built:
  /gnu/store/bvgndd1r6171zly7ir7fzlpygb1ka7b3-profile.drv

listing Emacs sub-directories...
building profile with 1 package...
[env]$ g++ main.cpp
[env]$ gcc --version
gcc (GCC) 14.2.0
Copyright (C) 2024 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.
```

I'm using the following generation

```
$ guix describe
Generation 70    Nov 20 2024 00:02:35    (current)
[...]
  guix 1e6d1c3
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 1e6d1c32117e9f731e50dcd286927a5fa0d17afc
```

This still works if I add gfortran-toolchain *before* gcc-toolchaine

```
$ guix shell --container gfortran-toolchain  gcc-toolchain
The following derivation will be built:
  /gnu/store/48ryz9p3sc2qmv9xv2s4s032g1bdkxgr-profile.drv

listing Emacs sub-directories...
building profile with 2 packages...
[env]$ g++ main.cpp
```

But fails I add gfortran-toolchain *after* gcc-toolchaine


```
$ guix shell --container gcc-toolchain gfortran-toolchain
The following derivation will be built:
  /gnu/store/4ff7am6zjplhi1p9lin09nbqzk30rijn-profile.drv

listing Emacs sub-directories...
building profile with 2 packages...
$ $ g++ main.cpp
In file included from
/gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include/c++/bits/move.h:57,
                 from
/gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include/c++/bits/exception_ptr.h:43,
                 from
/gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include/c++/exception:153,
                 from
/gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include/c++/ios:39,
                 from
/gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include/c++/ostream:38,
                 from
/gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include/c++/iostream:39,
                 from main.cpp:1:
/gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include/c++/type_traits:732:26:
error: expected identifier before '(' token
  732 |     _GLIBCXX20_DEPRECATED("use is_standard_layout &&
is_trivial instead")
      |                          ^
/gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include/c++/type_traits:732:27:
error: expected unqualified-id before string constant
  732 |     _GLIBCXX20_DEPRECATED("use is_standard_layout &&
is_trivial instead")
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include/c++/type_traits:732:27:
error: expected ')' before string constant
  732 |     _GLIBCXX20_DEPRECATED("use is_standard_layout &&
is_trivial instead")
      |                          ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                           )
/gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include/c++/type_traits:3154:25:
error: expected unqualified-id before string constant
 3154 |   _GLIBCXX20_DEPRECATED("use is_standard_layout_v &&
is_trivial_v instead")
      |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/gnu/store/hhzpa2yx8cz92cgm7xjpd2pp6pk74g96-profile/include/c++/type_traits:3154:25:
error: expected ')' before string constant
 3154 |   _GLIBCXX20_DEPRECATED("use is_standard_layout_v &&
is_trivial_v instead")
      |
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         )
```

The discussion on help-guix that led to this is available here
[1]. Don't hesitate to get back to me for more details.

Laurent

[1] https://lists.gnu.org/archive/html/help-guix/2024-11/msg00066.html




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Laurent Gatto <laurent.gatto@HIDDEN>
Subject: bug#74455: Acknowledgement (gcc-toolchain and gfortran-toolchain
 conflict)
Message-ID: <handler.74455.B.173217590816462.ack <at> debbugs.gnu.org>
References: <CA+uNOzhaZbkznRn581=t7JCW1JYoiXftri1RkyybpR=-5u5OYQ@HIDDEN>
X-Gnu-PR-Message: ack 74455
X-Gnu-PR-Package: guix
Reply-To: 74455 <at> debbugs.gnu.org
Date: Thu, 21 Nov 2024 07:59:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 74455 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
74455: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74455
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#74455: gcc-toolchain and gfortran-toolchain conflict
Resent-From: Simon Tournier <zimon.toutoune@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 06 Jan 2025 19:26:02 +0000
Resent-Message-ID: <handler.74455.B74455.173619154923683 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 74455
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Laurent Gatto <laurent.gatto@HIDDEN>, 74455 <at> debbugs.gnu.org
Received: via spool by 74455-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUsjV-00069v-9e
	for submit <at> 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 <zimon.toutoune@HIDDEN>)
 id 1tUsjS-00069k-Gy
 for 74455 <at> 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 <at> 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 <zimon.toutoune@HIDDEN>
In-Reply-To: <CA+uNOzhaZbkznRn581=t7JCW1JYoiXftri1RkyybpR=-5u5OYQ@HIDDEN>
References: <CA+uNOzhaZbkznRn581=t7JCW1JYoiXftri1RkyybpR=-5u5OYQ@HIDDEN>
Date: Mon, 06 Jan 2025 20:11:08 +0100
Message-ID: <871pxfycz7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

On Thu, 21 Nov 2024 at 08:57, Laurent Gatto <laurent.gatto@HIDDEN> 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 <iostream>

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




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#74455: gcc-toolchain and gfortran-toolchain conflict
Resent-From: Laurent Gatto <laurent.gatto@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 07 Jan 2025 09:23:01 +0000
Resent-Message-ID: <handler.74455.B74455.173624176813869 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 74455
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Simon Tournier <zimon.toutoune@HIDDEN>
Cc: 74455 <at> debbugs.gnu.org
Received: via spool by 74455-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tV5nT-0003bd-QS
	for submit <at> 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 <laurent.gatto@HIDDEN>)
 id 1tV5nQ-0003bS-RG
 for 74455 <at> 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 <at> 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: <CA+uNOzhaZbkznRn581=t7JCW1JYoiXftri1RkyybpR=-5u5OYQ@HIDDEN>
 <871pxfycz7.fsf@HIDDEN>
In-Reply-To: <871pxfycz7.fsf@HIDDEN>
From: Laurent Gatto <laurent.gatto@HIDDEN>
Date: Tue, 7 Jan 2025 10:22:17 +0100
Message-ID: <CA+uNOzin9KSXVfmCAAGgDR_p+46nFD7LJMPxCwtuzY=4R7y_Ew@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

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 <zimon.toutoune@HIDDEN> wrot=
e:
>
> Hi,
>
> On Thu, 21 Nov 2024 at 08:57, Laurent Gatto <laurent.gatto@HIDDEN> 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 <iostream>
>
> 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





Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.