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 QN5yAJX0PmcbMgAAe85BDQ:P1 (envelope-from ) for ; Thu, 21 Nov 2024 08:51:33 +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 QN5yAJX0PmcbMgAAe85BDQ (envelope-from ) for ; Thu, 21 Nov 2024 09:51:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CAv3oKlK; dmarc=pass (policy=none) header.from=gmail.com; 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=1732179092; a=rsa-sha256; cv=none; b=EbDlgKLaxEZmwo/oC9qbDEoVKloIEJ7SKJMRo5J1u+YcaO4UobQtNx6TWzvN+ci4OnVzs4 z3i6LG/2VQL533ReoDuFCqs0KtSKJxG1M1AH16lwwIagPv372My+tKnaNyMbvpeCYcNK3a LSJvxBWucEtFxmSckSwvKo+vMeAFQom2gbnS8x4BobBExTPiNNSZkMbLV1nbtCt4BAwYzU iguys2wIU8eo4tOTdaEtTA1S0llEI49tTVQfDYhsm++lN0ftnNDblLr0YTqb390Y2biiss b2Zz31BPKDvqXt59cXMY/VsWeCHcPDB+GPYcLMDrgZMVEs8NWwS9XaDym0QCKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CAv3oKlK; dmarc=pass (policy=none) header.from=gmail.com; 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=1732179092; 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=MFZLuAQvVtv3W1Qo1sFxiCn4Cj6xLloiLXXiJSgOgdI=; b=CbZZG2sH0BXzKcNJ+vBMUnALnhv2ruVK6xZ9je0s41lnTQ+kokkhMEJL5vPIUE9as+RRVk wdFdBRyFFFNjamzJDdUybvqLHhz5Dm1G9VjqknIDF7t0k8Nn5DOKtHiyiq7QPCFmMlxUJ3 IzH9PBNEhjquUIVfeEKMlcTvrTu1BhskxvKCLGfX5H+l+p60TUnAeipOoeLk8z37ToQC12 ZmVvk2hbOFwd/j40fe62jEs6+eZrQCFNErRknHeY7YxX3rRNvASXvTsNdGlt/qZLsCd8jL Nj7tHrAumvmsAKUH9IFYAYRxhAxCc3cAkswyEKNNiYYMU9DAW1hDrwmS6HMflw== 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 748387999E for ; Thu, 21 Nov 2024 09:51:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tE2tv-0001Hz-Dn; Thu, 21 Nov 2024 03:50:59 -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 1tE2ts-0001HS-Uv for help-guix@gnu.org; Thu, 21 Nov 2024 03:50:57 -0500 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tE2tq-0006kE-UM for help-guix@gnu.org; Thu, 21 Nov 2024 03:50:56 -0500 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-21288402a26so4546725ad.0 for ; Thu, 21 Nov 2024 00:50:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732179053; x=1732783853; darn=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=MFZLuAQvVtv3W1Qo1sFxiCn4Cj6xLloiLXXiJSgOgdI=; b=CAv3oKlKqt1IPu3PLbzhA/j+apjJ6sD5JGHriXKLhPyKraDFoMRqSxUrgP51DjC8I2 lDTQ7zRKoD2y88t8hF1L4ij/WYKK09YUgQA1E+649d0mpdq53BbL72exrceHiF52/jj8 0Fb/TIpKyBAbnty6O/2209Vf5PphBSTjw77K7O4a9aBroNKwCrJu8lnXCA4xQvVetGxf sc/B4j1RskvLlovDDdwwwXSNhHQ1YTuFuvzCSoN+kEEx1lmLCrUJcVTGS4R4qD2iprUU sAGgKvl2yDd9noHE51JNQnJCfvqwwyvCzB+M8yY72+vX0OS2CkMp1u+Uoikd3GbHJvNL uZGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732179053; x=1732783853; 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=MFZLuAQvVtv3W1Qo1sFxiCn4Cj6xLloiLXXiJSgOgdI=; b=QNTKesLjWiX7+goUzEx1Gca7dhVjnFMqpqQtI5zTypO400w/y3+ZlHBBK0CN/QKf6O 0QFzYndmZTL2mn6JE5stqqSPieiWJJXJoXceJXIQRFCjCarkX9gu1IrHVKdjkFy3S744 8rt4861BaPNXgGlM6pAbuBO5hk57qWA+r6XGWSJx8vHD1S2vt/ZCT5xDoHbCkJmNIzQf l1xmUvtZLioxOmIZBd5glEJHOEb1kGaLbK1eQnyIRl6N7uWeIG+V12cE9lX5GxzL8awt 5aJyGJzZoEBcQTPzKyDFgX4JMpsvS6h5ia65FSAXZaV0awoNTESUyLRMGkOwlzllp1z1 Wc0g== X-Gm-Message-State: AOJu0YxM4Dzlo1r5EZCh5XPpFw2veKa258eq4I/dbAH+A7FQP7ZqNZfq O4WhSPLUD4sJu46j/BvrkRSB7KDGm5GB3ksPXnzNIwEZIFIFWNwTu/8UqubrFLvbqjkaIyJ+07U VvH6IJUHeL4ViCQxyO9l/zfKEaXi7pe7Qmko= X-Gm-Gg: ASbGncsQkpIkryc3PClGMNocDeuXc+AeLL3y82VyJ8MJAAy8zqL8BJiUcSKbLNAOo6+ 0AowTBAS/KuWGDMNJsFsc4nkcpazail3d X-Google-Smtp-Source: AGHT+IFO9WFra04VyL8mNDQPTw+o8u0lumBHIBR+LuBPxcZTqJP5YMKlxnQKgsAGLSnWAamD/Bqw7Z6wgP8nosxh3Xk= X-Received: by 2002:a05:6a20:12d3:b0:1d9:2b12:4165 with SMTP id adf61e73a8af0-1ddae9ba72cmr8558536637.13.1732179053339; Thu, 21 Nov 2024 00:50:53 -0800 (PST) MIME-Version: 1.0 References: <87a5e42v95.fsf@posteo.net> <877c982bz9.fsf@posteo.net> <87msi3ne27.fsf@posteo.net> <87r07d8x9n.fsf@posteo.net> <87jzd0nzrs.fsf@posteo.net> In-Reply-To: <87jzd0nzrs.fsf@posteo.net> From: Laurent Gatto Date: Thu, 21 Nov 2024 09:50:25 +0100 Message-ID: Subject: Re: C++ error To: Fredrik Salomonsson Cc: help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=laurent.gatto@gmail.com; helo=mail-pl1-x630.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-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: -6.28 X-Spam-Score: -6.28 X-Migadu-Queue-Id: 748387999E X-Migadu-Scanner: mx10.migadu.com X-TUID: g+YLu3UszOQZ Thank you for your help, Fredrik. Bug filed here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74455 Laurent On Mon, 18 Nov 2024 at 19:49, Fredrik Salomonsson wro= te: > > Hi, > > Laurent Gatto writes: > > > On Sat, 16 Nov 2024 at 11:56, Laurent Gatto w= rote: > >> > >> 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/m= ove.h:57, > >> from > >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/bits/e= xception_ptr.h:43, > >> from > >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/except= ion:153, > >> from > >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/ios:39= , > >> from > >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/ostrea= m:38, > >> from > >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/iostre= am:39, > >> from main.cpp:1: > >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/type_t= raits:732:26: > >> error: expected identifier before '(' token > >> 732 | _GLIBCXX20_DEPRECATED("use is_standard_layout && > >> is_trivial instead") > >> | ^ > >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/type_t= raits: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_t= raits:732:27: > >> error: expected ')' before string constant > >> 732 | _GLIBCXX20_DEPRECATED("use is_standard_layout && > >> is_trivial instead") > >> | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~ > >> | ) > >> /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/type_t= raits: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_t= raits: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 fo= r 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. > > -- > s/Fred[re]+i[ck]+/Fredrik/g