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 AJDJGZ56OGeAdQEAe85BDQ:P1 (envelope-from ) for ; Sat, 16 Nov 2024 10:57:34 +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 AJDJGZ56OGeAdQEAe85BDQ (envelope-from ) for ; Sat, 16 Nov 2024 11:57:34 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CpFlriH8; 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=1731754654; a=rsa-sha256; cv=none; b=AMC8KczYnIh0BaSp6tL/d9SJdee8GxJtGLGzv3AONoby5nHjzcTN9rRyGrN94ZrHyCvAqk 3uCJ3RNsDDKj1w26ez7jwF3qSLnh0IvlnsLxm0xWIgB1xN9vR3g6MfauJC4hE67eebw8pa 9fhhd+mep2d54zGLh0MJaMc0AMXqJJ4styuLvBtvsW2cBnCxMZFvno8rd/LVtypPODZm1S uvs5GvtE12toR2E13gZWxfuBGLXPAA+YoVV0sVQlKIpzoNdD5i/xjEhL03BwJ7ro7l0H2q 0rOOJFEB7yaoWGnLxVfMAPTd1/ObU3WTtSRFy2qx2VpM4yx4flA87t7eg9riCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CpFlriH8; 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=1731754654; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jv0JZpZ4GG0YxxWsqaWMInwgeeBNXoQbfsR8uE2h5xw=; b=rVV+U/eM6mN4CTmdK6cek5rWsJNSHMv6QcMz34yel0Vjlof83aFOoIXvKcf7wdNDjHiM7S ZIjltrASNrutm80EZBFdKRmDDn3xl9U3/tKp03oqmVnHUkjrQAGKAuTMWUKXHpnFLWXawg uo8cV2pW6r6K8PRldVCNXuGUZ7lsqtagjnBeNmrvMCrfQaOib6xUGdRc0PCr0kl7AlOj14 7VDd9NaodblAShl+GQ5ipeRncdxT5WhaueoWSpTL41djkbXFQjLJgpvgheXcUDR0p6joTV N6i9siDpeNEi8I3o0QGj9AuOINkvR1w3q0fEvutRZ9h+btLawlgAhKimF4wBXQ== 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 E9E937AF5C for ; Sat, 16 Nov 2024 11:57:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCGU8-00019X-Vq; Sat, 16 Nov 2024 05:57:01 -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 1tCGU6-00019F-5r for help-guix@gnu.org; Sat, 16 Nov 2024 05:56:58 -0500 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tCGU4-00028C-O3 for help-guix@gnu.org; Sat, 16 Nov 2024 05:56:57 -0500 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-7e6d04f74faso1765582a12.1 for ; Sat, 16 Nov 2024 02:56:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731754615; x=1732359415; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jv0JZpZ4GG0YxxWsqaWMInwgeeBNXoQbfsR8uE2h5xw=; b=CpFlriH8fOLcrH5/Pm7AmT4Wdvi5AoBNbRUMMLbD96UaSXSOAtER/ceVLVgbOq+fh7 zGh42l+mIEraDYoOuYZFTYCggcYfApmhitc968Ogbm/ID/5cBB7SoDBaJCrMiNoKmgGa BGtCAbLe8BqRc/D4GfhZYXJEaHY2AX8gylhuOV3BV8qb8HUcx8aD7x6MtJZQeWHxZftd adk677TnbpWGVyJD8vlnkJuPdsmxyAetimv+zvwpsLCbBdgn9yAzXCRV4qaG/p8mFgq6 9uUdsh9mOlPbU1CSNGp5v6p1ImJSfHhM4j3UOib1TKnxrwdG6kjz2VbeagAH8DcqoeJA QJeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731754615; x=1732359415; h=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=jv0JZpZ4GG0YxxWsqaWMInwgeeBNXoQbfsR8uE2h5xw=; b=eB0mn2pbrkW4ZNSDiDUN9GDRNoYZXiEdrNTH+g2I+BNbZyDYyfhjWEivHiYOmtq0eq vwPwtOwJhZDKho751KpdWkaNNiIvO0AMVq61e2T1HqX6D7y7rKU4kIiHm9XvMilwatCh YKrFsb5KF0swzvpoiXIF9bxc+P4lPPdZtxhe5zNuYDvCdSRS5Ma7rdd/3UCWq2CXuDFZ IoMzeQqYUL3XO/F9ustajNvJe9Dms7hQa8LqfFBImnBJzBz/HMAFACPt17Y/w/kRsPdp VjYDzcTqGO9mvKEl29D55G7glnt0DEJSKp6eUL6vnEREniPxJf60m8nAQev/rsa32eAU ASrg== X-Gm-Message-State: AOJu0YzuVDGZ3f1Hwmt3uyI61B/KZi09pqTGOSABHMfIzhsreJ462tqJ Fxjfac8sD98Hi/L5BNvhCjajqaIRxb6ce+ie3Um9B/Tv+ocliNEnEfIGiI7IUqBh6aaJ5MwO908 asf0PUiMc/1qySZONBciVdyAhsZvADgPB X-Google-Smtp-Source: AGHT+IGzhxOm/G/mXWjjDGiA198di69RxW/gW/PfGNcCwnOw2eKhGcHev5Zf0KcZtxxqfbrkfMaIbcjIV/RP/nuDoCU= X-Received: by 2002:a17:90a:e7ca:b0:2e0:7b03:1908 with SMTP id 98e67ed59e1d1-2e9fe63fca3mr15524629a91.10.1731754614770; Sat, 16 Nov 2024 02:56:54 -0800 (PST) MIME-Version: 1.0 References: <87a5e42v95.fsf@posteo.net> <877c982bz9.fsf@posteo.net> <87msi3ne27.fsf@posteo.net> <87r07d8x9n.fsf@posteo.net> In-Reply-To: <87r07d8x9n.fsf@posteo.net> From: Laurent Gatto Date: Sat, 16 Nov 2024 11:56:28 +0100 Message-ID: Subject: Re: C++ error To: Fredrik Salomonsson Cc: help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=laurent.gatto@gmail.com; helo=mail-pg1-x52c.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.25 X-Spam-Score: -6.25 X-Migadu-Queue-Id: E9E937AF5C X-Migadu-Scanner: mx10.migadu.com X-TUID: QWHV5nEwYjoH Hi Fredrik, Excellent advice, and I was able to identify the culprit. 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/move.h:57, from /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/bits/exception_ptr.h:43, from /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/exception: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_traits:732:26: error: expected identifier before '(' token 732 | _GLIBCXX20_DEPRECATED("use is_standard_layout && is_trivial instead") | ^ /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-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/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/type_traits:732:27: error: expected ')' before string constant 732 | _GLIBCXX20_DEPRECATED("use is_standard_layout && is_trivial instead") | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ) /gnu/store/68l504nyvms77jzfg9yf4njiyfbi8gm2-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/68l504nyvms77jzfg9yf4njiyfbi8gm2-profile/include/c++/type_traits:3154:25: error: expected ')' before string constant 3154 | _GLIBCXX20_DEPRECATED("use is_standard_layout_v && is_trivial_v instead") | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ) 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? Laurent