From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 KCl6KjD6NGcUbgEAe85BDQ:P1 (envelope-from ) for ; Wed, 13 Nov 2024 19:12:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id KCl6KjD6NGcUbgEAe85BDQ (envelope-from ) for ; Wed, 13 Nov 2024 20:12:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=e9IWlvVz; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731525168; 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=YbH4HzzfnsimutNjJqAbGK+vKdmKdd/wCB2y7q8ayiY=; b=huhuNirBa1cjRA0ixfSHraL1vL1syfr/dFFbjkK1m90pqBO2YEnkWOqU6uIeu8zy3S0Rpt +f+8iW3IkbvPPEDUKy3IGh5BxWqNhi8H2ORX8HlXSlD5eqrfm2g28YifTa0xNvQ2Bhz+TI smMDPxybHeC+1M1g5brIVwYlhmaZn3x7Hc7LgKTG1ljvY/mRbHk7mE5Bt+UVOD3hQZOmHQ ejzytY+k8uDqukb6tIMKivoRPxY4gChw1/CBEVFrm5AWWtXZqas2mX0WL/Epz6Oe2vOeIf VrMartN0AxZjWUeUlmn8B7QzUxFLXabQmTZ1nfNbHJV1o4UMDuA+0eqFrDnBHQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731525168; a=rsa-sha256; cv=none; b=bMTgGUAcRvTnjkNc4TseKT0n9RP8aRZ/GmfUWCfG9r2RwghJTAOReSglDX8LwiOmhviXwo JsZyWJhzZHKklkRJpt+D7nVwL6YPxqUTOAEwABtq0JI/y4xxh5SX2SB6vlBCPWM2VMTsJx jroZ1dM+0apPuN1FJONZHGPo9HDrAzCYGMziKUGoliqF8tMBhDqL4VmOlhS8jaG+bq3jsh 6Q+J5tBTLzg7qp6Z9DZhp73E6zLFWV/OxKDThb+R/yo1XKc5zJdU2asdTz+tRWMKpf9T9z qDWr1iVCvFNOD6R/Lx5w234sAtXOpavspFLliXJ9ysQSLBHa7xIpmAlUJaEhSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=e9IWlvVz; 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=posteo.net 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 277D0778A for ; Wed, 13 Nov 2024 20:12:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBImy-0000yv-2Z; Wed, 13 Nov 2024 14:12:28 -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 1tBImw-0000yn-Sl for help-guix@gnu.org; Wed, 13 Nov 2024 14:12:26 -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 1tBImt-0007sy-Nk for help-guix@gnu.org; Wed, 13 Nov 2024 14:12:26 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 07445240101 for ; Wed, 13 Nov 2024 20:12:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1731525139; bh=lSjr6HBQ/Z4q9NGX8GaYjQxSklHjjZuCIYMbG0wroHE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=e9IWlvVzRM9JyG4Mao+8X4eADEPQ0fMmS+mFYaqWHUTRhdO4+3cX/aSVFUSXllwtl AHxZ07jRkXZcjf2O+y+h0bNkaFO8z8ZwGg3pP5+b8VloEEDnXFe4eI4TaLMzSc2eZ0 QQaYiT+3Ema/m+6FevOUPN3wNmeokbwKtFjSpIP0lSyBTrpqnM236CtMOl3Ji78jl0 piFWDewKz+vqu3Sw2wFufZnsc7VufZnxbpCEZlGU95913wF5LQH//IAbbB2A4K7VUn uFMRZMG79gOc38oRoGvb31DyBVN2JcuLk2tnr+HwYVTjAHp8fy/CQWwu2u3X52RkvO UGySssVIBB9fg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XpXwL0rzcz9rxR; Wed, 13 Nov 2024 20:12:18 +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> Date: Wed, 13 Nov 2024 19:12:16 +0000 Message-ID: <87msi3ne27.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_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.57 X-Spam-Score: -4.57 X-Migadu-Queue-Id: 277D0778A X-Migadu-Scanner: mx13.migadu.com X-TUID: PzCuQHWmLzTJ Hello, Laurent Gatto writes: > Hi, > > ``` > $ guix package -I gcc > gcc-toolchain 14.2.0 out > /gnu/store/x2kv3zw2k7ql211m5kvb6yw401gab0x9-gcc-toolchain-14.2.0 > ``` > > but nothing matches stdc++ > > ``` > $ guix package -I stdc\+\+ > ``` > > If I `guix search for stdc\+\+`, I get, libstdc++-doc 9.5.0 and 5.5.0, > texlive-stdclsdv, ocaml-stdcompat and rust-link-cplusplus. Is this > normal? Yeah, all that looks normal. I was thinking that maybe you had an old package of gcc or libstdc++ lying around. As things where split up awhile back before they added gcc-toolchain =E2=80=94 I don't remember if libstdc++ was ever a separate package though. > > ``` > $ guix describe > Generation 63 Nov 13 2024 00:02:27 (current) > guix-science 7304e37 > repository URL: https://codeberg.org/guix-science/guix-science.git > branch: master > commit: 7304e37d4d664f27a18577e388c91413878d62fc > nonguix 99574ff > repository URL: https://gitlab.com/nonguix/nonguix > branch: master > commit: 99574ff94b6fb97794ba720b6fdadf470963dbdc > lguix-channel 4aa4417 > repository URL: https://codeberg.org/lgatto/lguix-channel.git > branch: main > commit: 4aa4417eec58db3d5a9f1c90250ef57641489717 > guix 4e028ec > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: 4e028ecc823bcdbb69c391ad7079085cd7749b15 > ``` > > The only non-standard channel is my own, that only provides a couple > of packages. I doubt this is the culprit, as there is no gcc related > package and I was already experiencing issues before setting it up. > I don't think there's any issue with gcc. I installed it to the normal profile and it worked fine for me: ``` $ guix package -i gcc-toolchain The following package will be installed: gcc-toolchain 14.2.0 The following derivation will be built: /gnu/store/msdr271hjls9icnhj20p4za06hpsbrqr-profile.drv building CA certificate bundle... listing Emacs sub-directories... building fonts directory... building directory of Info manuals... building profile with 3 packages... hint: Consider setting the necessary environment variables by running: GUIX_PROFILE=3D"/home/plattfot/.guix-profile" . "$GUIX_PROFILE/etc/profile" Alternately, see `guix package --search-paths -p "/home/plattfot/.guix-profile"'. $ GUIX_PROFILE=3D"/home/plattfot/.guix-profile" $ . "$GUIX_PROFILE/etc/profile" $ which g++ /home/plattfot/.guix-profile/bin/g++ ``` Checking the hash for the one it installed: ``` $ guix package -I gcc gcc-toolchain 14.2.0 out /gnu/store/x2kv3zw2k7ql211m5kvb6yw401gab0x9-gcc-to= olchain-14.2.0 ``` And it is an exact match with yours: > ``` > $ guix package -I gcc > gcc-toolchain 14.2.0 out > /gnu/store/x2kv3zw2k7ql211m5kvb6yw401gab0x9-gcc-toolchain-14.2.0 > ``` So we should be using the exact same compiler and with mine, your tiny test works: ``` $ g++ /tmp/main.cpp -o /tmp/a.out && /tmp/a.out=20 201703 ``` So something else must be affecting yours. No idea about what that is though. Did you install guix as a package manager on top of an foreign distro or is this a Guix System machine? Also has this ever worked for you? If so you might trying doing a kind of git bisect on your packages using `guix package --switch-generation`. First find a working generation with `guix package --list-generations`, pick the generation that is in the middle of the latest broken generation and the older working one. Switch to that, do the test. If it works then the problem is most likely between that generation and the latest broken generation. If not, then the issue is between the current generation and the older working one. Pick the middle generation between the working and broken generation and repeat. Just keep iterating until you find the generation that introduced the issue. Then you can compare with the previous working generation to see if there are any differences in packages. --=20 s/Fred[re]+i[ck]+/Fredrik/g