From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id mGHdI9IGM2dcPgEA62LTzQ:P1 (envelope-from ) for ; Tue, 12 Nov 2024 07:42:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id mGHdI9IGM2dcPgEA62LTzQ (envelope-from ) for ; Tue, 12 Nov 2024 08:42:10 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GJLf2DMA; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731397330; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=OylfOV3MAAF5gvlDysfFFyy+LoDAR5Y4nY4/3WMqiUE=; b=UiNIj1/GFUKQX5vq/it3w7G/1WzpWVoecOvuOviDNhb09gk7qCe6U0gIZCukp68w0yjcys k+gPKzB1Qhfh0xLbIiSqBTjSpOwPSVJaQH0N/HehoHW9pqHeibGRCqdnkBaNSagLVuStm5 AH9vxZp/VLqlUiFB47vtNxCQ+1wk+s4GCs8WQDBpZBcQAA0iPYZ+y42W7xsMq1wLWN/Bvs i2+2JvG6qRSZ+zysmN4kZZsStYqMgJhNop/4jQEJviJ/pcfi41GUAHlZtlLo6YVBIzoAHn moOVpd+CEKUrZi9zOMvHmNBNDig8cot4ip4cw6Gmm67fMLA/yfOqwBxI+4TC+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731397330; a=rsa-sha256; cv=none; b=DphmNrZT/gx/+OUSTncFiGo9EYerB3gGbpxFTePvNCorPWiilIMHYU89EJcf6h5DVWcmSy G35fEehYnx2H4B0zNPcVfutsC+lQUnXnbkXaqGqNhitBDKUsDOCjPdC0P2r2f9X8pC/SWP hjGHy+2KYaZtWcrB9WXADEljN0pxR90dGbjclzXV/0i5NP9XntSGlxe0+DNp19uBfqBEyP aXZqnBvTNGbG0fr7cD8R6YT09TLgqmuMqROzmhUdfOXZxD57gzlu9NUvU2DJkx32ruQH19 ORz4c1gqm7zMr+D+EVZi/tEZ4bmcUblQNtsexHyL7xz98Yizq9MobftW8NU8vQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GJLf2DMA; 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"; dmarc=pass (policy=none) header.from=gmail.com 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 4A4E378283 for ; Tue, 12 Nov 2024 08:42:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAlWn-0006vw-7W; Tue, 12 Nov 2024 02:41:33 -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 1tAlWk-0006vG-Rf for help-guix@gnu.org; Tue, 12 Nov 2024 02:41:31 -0500 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAlWj-0003Rd-9t for help-guix@gnu.org; Tue, 12 Nov 2024 02:41:30 -0500 Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2e9e377aeadso530024a91.1 for ; Mon, 11 Nov 2024 23:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731397287; x=1732002087; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OylfOV3MAAF5gvlDysfFFyy+LoDAR5Y4nY4/3WMqiUE=; b=GJLf2DMAgRzrW/bkSvfexUXDlJbVEAN9r6LzqHnLc4V8ZMMxkL+k4BZDfSeWsKpln+ bqIXJRLi+yebQ/1cZbDy/FbkJ+RbG/4i4t85BioxILCJPiiJmPPCybQej55pH0uoJZCI 5+FQtON6UNAQCw4iNq6w7KqdLmrYKYZNh1CzGKJxrNTgI+2suD/sWo0yxIioQAPK+6OA zmH86P7Qlh40Lh5IrbMqAQC+NFmH2gbRsgMi6xRTuEL0rq/bP3QkDMQl/pID4IwqxYJM pYF8ukqCL87gM1nxMxVncXbnv/V62FyNgA0Ipj4CoWF8LJbhmX2TUcpKaqHP+tYj9kah /u+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731397287; x=1732002087; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OylfOV3MAAF5gvlDysfFFyy+LoDAR5Y4nY4/3WMqiUE=; b=xT4l5uhC12AT16ITFP2oXs9IkVJ8DUCRN/lA6YXW3SP5QuraqvwoZmZn07Yu5T53DF XZuKrPDWnTS6ADlBUu1GyfpEcMuzLw9E6GBysB1eIvL/9PJve/qcgYaQxIO4qDVOYdmp /2dxMJ3bVp8tPi5s6tgqcEDZbFDF8dL+myA/xE+vpcmRZ/9/+1ozPmvZj7pATeZevWWT r197OaZz+dscscmxkqg6e4u5dX3EOws8qSs+ZRqSxKqbnD54KVhVpzyIZsKyF0xBH5zh 3QgHoFbkOf7ngdTUPssRkd9kGa9k/vD9NsCQIeB62KjvJFTQyC9Qf+zCijBBinUUaA6A LhDA== X-Gm-Message-State: AOJu0YzkKoOLQDJf2GSqmznWYvmH+51v94Z3enkPx7pRQuabl4JTEi1z QJi6zuWNtXHck1ygDdorQNnLpcnWvKRRUbH+sz3xjjRDdBmp3q+gIlu8sXSjXyEf7dFlmZHgSn1 Yhp+yFNg1swLURe4ICeEVjehEh9/UfZJn X-Google-Smtp-Source: AGHT+IEUB6fDx7HHzFMUMQuaNHsKMCY9pZz6BtB/rtIsPLAWtx2avGflcWjG5bRzhytctRe84xUtUBwWqgf+JYS0Llo= X-Received: by 2002:a17:90b:1a87:b0:2e2:c6c2:b3d5 with SMTP id 98e67ed59e1d1-2e9b168141dmr19657747a91.9.1731397286684; Mon, 11 Nov 2024 23:41:26 -0800 (PST) MIME-Version: 1.0 From: Laurent Gatto Date: Tue, 12 Nov 2024 08:41:00 +0100 Message-ID: Subject: C++ error To: 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::1035; envelope-from=laurent.gatto@gmail.com; helo=mail-pj1-x1035.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.66 X-Spam-Score: -4.66 X-Migadu-Queue-Id: 4A4E378283 X-Migadu-Scanner: mx13.migadu.com X-TUID: KvHLGTyb1lqh Dear all, I have this very simple code chunk $ cat main.cpp #include int main(void) { std::cout << __cplusplus; return 0; } That I can compile in a minimal shell $ guix shell --container gcc-toolchain [env]$ g++ main.cpp && ./a.out 201703 However, on my main system, I get $ g++ main.cpp In file included from /home/lgatto/.guix-profile/include/c++/bits/move.h:57= , from /home/lgatto/.guix-profile/include/c++/bits/exception_ptr.h:43, from /home/lgatto/.guix-profile/include/c++/exception:153, from /home/lgatto/.guix-profile/include/c++/ios:39, from /home/lgatto/.guix-profile/include/c++/ostream:38, from /home/lgatto/.guix-profile/include/c++/iostream:39, from main.cpp:1: /home/lgatto/.guix-profile/include/c++/type_traits:732:26: error: expected identifier before =E2=80=98(=E2=80=99 token 732 | _GLIBCXX20_DEPRECATED("use is_standard_layout && is_trivial instead") | ^ /home/lgatto/.guix-profile/include/c++/type_traits:732:27: error: expected unqualified-id before string constant 732 | _GLIBCXX20_DEPRECATED("use is_standard_layout && is_trivial instead") | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ /home/lgatto/.guix-profile/include/c++/type_traits:732:27: error: expected =E2=80=98)=E2=80=99 before string constant 732 | _GLIBCXX20_DEPRECATED("use is_standard_layout && is_trivial instead") | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ | ) /home/lgatto/.guix-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") | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/lgatto/.guix-profile/include/c++/type_traits:3154:25: error: expected =E2=80=98)=E2=80=99 before string constant 3154 | _GLIBCXX20_DEPRECATED("use is_standard_layout_v && is_trivial_v instead") | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ) Other issues lead me to suspect that I lost support for C++17 and beyond. Any idea what/how I messed up and how to fix this? Thanks in advance. Laurent