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 8NWXBlOMO2ehAQAAe85BDQ:P1 (envelope-from ) for ; Mon, 18 Nov 2024 18:49:55 +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 8NWXBlOMO2ehAQAAe85BDQ (envelope-from ) for ; Mon, 18 Nov 2024 19:49:55 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="NN/6O0lP"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731955795; a=rsa-sha256; cv=none; b=XBz6jywBMNVK2sesBBlPIK2/6l9aEKqK1MrRkNN6fve7GgAQNW5sS2o+Lq7TwsEs7NtftV ZyNCfAcUUfHBCut2baV/ZcsBEFB+AsZp2TYsbsl5oBHMruFw6nWznW1pP0Gd0Si+wPGomq YTuHRUfI8JC5bVGt3/YA7I4OGBXDTb8fj5dkg87qYAVn81ZJ98qUt4RUNlkNqDMvtrPKGR TJGWhnaIpsznVerCG0Tr0chtILowZtzB1JU098neAhLlHqKg8fg0uM2NmRTPkUlQUaybXg 1QRQjL1VyVOtxTGMyq+A3KgPEfqVOP/OmLcnZm6GVs7SCVz6h9aLTazGRiqg0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="NN/6O0lP"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731955795; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2RETwQe31N6iXCgeA5xN/z9d7JJH015r1WQok2OVNCQ=; b=mEaLRM+4zznOrZgcCnyqlvcMBBKV6yeWlJ4du/pWvomeqt3Ythe+44EgbFJTEWV73JSULJ RcF8uezfQz84orS2fgrfnkzLtZ2U73CAcMFRB7h73AaHjOPIz3sYsCd54mPxk414bO9nST gF2Z8ZRAUpDGsVgppqBCCBjbnfpav0bRgglDF/cWIZilD2FZ73LIUiaSeZJWSiwdRYyHCq HQShaDrtB3XAuI0o5RLoYrmyiuYpCeUBtpAIjXjlJoAEBr+NlGFSv9gNkaLD5Ws+cZ4Uip ULkyjRYiwggZ7T07Br+AWV2sK2JaiBEgtxol9RAIpk+EX8Kvxwj7mIIqyEJ/tQ== 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 F1F6A8BD79 for ; Mon, 18 Nov 2024 19:49:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tD6oR-0001E0-6F; Mon, 18 Nov 2024 13:49:27 -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 1tD6oN-0001Dc-VI for help-guix@gnu.org; Mon, 18 Nov 2024 13:49:24 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tD6oL-0005W7-QR for help-guix@gnu.org; Mon, 18 Nov 2024 13:49:23 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3C40E240101 for ; Mon, 18 Nov 2024 19:49:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1731955754; bh=k0IS+lCVTlIx5PJL+VtqP6mlnO3FTXGe9R28en/dwio=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=NN/6O0lP9Mc/grXvc1p+S/s75YwwCUZdFp0KuJgZXvbRFqL8GPlAnnYa2AlnwyrMN QYUK0eM1q3DIyJvmGjdhj3HEqUEQFed+aAt4HXwyqthpDeMo/0Qx+cK0g71gYMKlp5 wKGjTTRnNuIfXUGcZWOH2iyTiIC53nFT9N84Uc2SKv1YS6AhIcXi7HO3ruxL20Nh7N H2QLjvRU3BHf9cKffD3ZT4qoY42yxpguL9Yid2Uqec7JpGSe8Lx9/Q6eWgpprx6yIj MXyNUZAdzarM/hWp2hJu7JW5ZnzyooqfQpGtbM/GMdtdZpw69sJTQkAKLnhYzaozKJ z/G7TsqtcXyTg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Xsc9P0vLdz6tyK; Mon, 18 Nov 2024 19:49:12 +0100 (CET) From: Fredrik Salomonsson To: Laurent Gatto Cc: help-guix@gnu.org Subject: Re: C++ error In-Reply-To: References: <87a5e42v95.fsf@posteo.net> <877c982bz9.fsf@posteo.net> <87msi3ne27.fsf@posteo.net> <87r07d8x9n.fsf@posteo.net> Date: Mon, 18 Nov 2024 18:49:11 +0000 Message-ID: <87jzd0nzrs.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=plattfot@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -9.19 X-Spam-Score: -9.19 X-Migadu-Queue-Id: F1F6A8BD79 X-Migadu-Scanner: mx10.migadu.com X-TUID: vsuuYWZTtnIH Hi, Laurent Gatto writes: > On Sat, 16 Nov 2024 at 11:56, Laurent Gatto wro= te: >> >> Hi Fredrik, >> >> Excellent advice, and I was able to identify the culprit. Awesome! >> Here's a simple reproducible example >> >> $ guix shell --container gcc-toolchain >> [env]$ g++ main.cpp >> [env]$ exit >> >> $ guix shell --container gcc-toolchain gfortran-toolchain >> [env]$ g++ main.cpp >> In file included from >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/bits/mov= e.h:57, >> from >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/bits/exc= eption_ptr.h:43, >> from >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/exceptio= n:153, >> from >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/ios:39, >> from >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/ostream:= 38, >> from >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/iostream= :39, >> from main.cpp:1: >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/type_tra= its:732:26: >> error: expected identifier before '(' token >> 732 | _GLIBCXX20_DEPRECATED("use is_standard_layout && >> is_trivial instead") >> | ^ >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/type_tra= its:732:27: >> error: expected unqualified-id before string constant >> 732 | _GLIBCXX20_DEPRECATED("use is_standard_layout && >> is_trivial instead") >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~ >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/type_tra= its:732:27: >> error: expected ')' before string constant >> 732 | _GLIBCXX20_DEPRECATED("use is_standard_layout && >> is_trivial instead") >> | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~ >> | ) >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/type_tra= its:3154:25: >> error: expected unqualified-id before string constant >> 3154 | _GLIBCXX20_DEPRECATED("use is_standard_layout_v && >> is_trivial_v instead") >> | >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/type_tra= its:3154:25: >> error: expected ')' before string constant >> 3154 | _GLIBCXX20_DEPRECATED("use is_standard_layout_v && >> is_trivial_v instead") >> | >> ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> | ) > > The order of the packages does matter. The above fails, but if I pass > gfortran-toolchain before gcc-toolchain, it works: > > $ guix shell --container gfortran-toolchain gcc-toolchain > [env]$ g++ main.cpp > [env]$ ./a.out > 201703 > > Is this really expected? This sounds like a bug. Especially if it is order dependent if it works or not. And I can confirm that I can reproduce it on my end as well. >> I also confirmed that I was able to compile that source code by simply >> commenting gfortran-toolchain in my system manifest. >> >> Isn't this weird though? What if I need both? It should work to have both in the same context. Probably some issue with how they are package up =E2=80=94 I haven't checked the packaging for = them. But I have built gcc from source with both g++ and gfortran without any issues. That was gcc-9 and gcc-11 so maybe something broke in upstream with gcc-14? Although I find that unlikely. Anyway, best is to send in a bug report to guix now that you have a small reproducible test that show case the issue. --=20 s/Fred[re]+i[ck]+/Fredrik/g