From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qGNHApPtU2SAaAEASxT56A (envelope-from ) for ; Thu, 04 May 2023 19:38:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SFA+AZPtU2TmyAAAG6o9tA (envelope-from ) for ; Thu, 04 May 2023 19:38:27 +0200 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 8DE4120703 for ; Thu, 4 May 2023 19:38:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pucsJ-0000v7-8g; Thu, 04 May 2023 13:36:15 -0400 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 1pucs6-0000g2-Jv for bug-guix@gnu.org; Thu, 04 May 2023 13:36:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pucs6-0004VN-AV for bug-guix@gnu.org; Thu, 04 May 2023 13:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pucs6-00039t-60 for bug-guix@gnu.org; Thu, 04 May 2023 13:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63267: gcc-toolchain is missing libstdc++.so References: In-Reply-To: Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 May 2023 17:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63267 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Christopher Rodriguez Cc: guix-devel@gnu.org, 63267@debbugs.gnu.org Received: via spool by 63267-submit@debbugs.gnu.org id=B63267.168322172012080 (code B ref 63267); Thu, 04 May 2023 17:36:02 +0000 Received: (at 63267) by debbugs.gnu.org; 4 May 2023 17:35:20 +0000 Received: from localhost ([127.0.0.1]:51998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pucrQ-00038m-AO for submit@debbugs.gnu.org; Thu, 04 May 2023 13:35:20 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:24115) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pucrN-00038T-HP for 63267@debbugs.gnu.org; Thu, 04 May 2023 13:35:18 -0400 Date: Thu, 04 May 2023 17:34:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1683221703; x=1683480903; bh=aLZWCEqYd4C/mi68pkRQADhGnMgkzO3lt/LIXXZYwRE=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=vSPaJRPttTRrypEhF/LvhKt0owwF63nsQpy1ytdUE1U4dc+XMnvDTuGbVYxkDG9FL q8/0kHZvJvRRkkOqLN/LG0OWJY5wb9sOUjwr/HcuNPlGvlPrtFvcc+dJzAGNuvtjn9 P6iWvdBtMlDeua08ZqLZ4gw7nrufNR9UH808dri9itFMvcKuox8qriN0GNNEDKSCFX 7/tgYONgOfceJPKSbOXEm2ipmpEdnoq9Fy5GVeGQ4SZpJjPfEeilESGy+bzqlYoY5c 1Kq6xXj3U1IvrzqleaLgDhf+/MrkU1DErX+a/+whRfph7nmfoFOao1cLIrRFqYYVqy qFPFzycTn1xMw== Message-ID: <87354c11n6.fsf@protonmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: John Kehayias From: John Kehayias via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683221906; a=rsa-sha256; cv=none; b=Yj6TNsT4xuacPxX3EHvnjuDB9+nLtPEdrlYeH0rEOnhIYMT62lIKspXfWWCozWDkWkQMv3 uPvjm3KDck0bW1S7S1zyofI1r4bD3HKb1usPbK6iW47y/JQzE7Tv/tlp2ZRNlz4d8z16vv 0W4kPB1oNGLIAxeZUBVSnqkYiuhviqA2jXnlhQDquraP4AwdMKW/v7m8fzUr2wOU0OJqQi ek2wODkKU9EC+opGJIHOz3IWZlIW0tHZmvPgkA9kesxFvrPwgnx/RrLq5QvnPipM5kViBc OgvlCz/Kc0G7g6pDIt2PQI1/3Q7+vsHNWej5TRI+D5AU8SdurEt/I21EopBqng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=vSPaJRPt; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683221906; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aLZWCEqYd4C/mi68pkRQADhGnMgkzO3lt/LIXXZYwRE=; b=uAcOHg1MsCMWorHRztw0BM05eF8szcRT9DW1uBxTO2JoRWK2oKpY8LztxJraAazg3PAVYO YLiT8jfkHrWQSZuZn8CbdwaxYi4ZhLasRoQlM4p33B2NV80K6/ahItbQTyXL6fg+Wl16Z5 W1fyR3DVEee/jRE9fQZfZQDv0KbPuS1YUop3x+0cJuZalv1uFTi376uKIjnKaF7TtQflRF ZF4cfJrIrFk3lVCtTGprXEHYCIniCif2BEZkIiM6BLL8zPSbAKtSc6PxWRzznvp+s1UpYH ag605SWON1RM1/QrcvxrX4ovp31NKlgMrMZ49IiO0epFGrmXt5ZfePXo5a6s6Q== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=vSPaJRPt; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.21 X-Spam-Score: -2.21 X-Migadu-Queue-Id: 8DE4120703 X-TUID: r2nxzRkchQYg Hi again, On Thu, May 04, 2023 at 11:19 AM, John Kehayias wrote: > Thanks for opening this and cc'ing; this has come up with some > frequency on IRC, especially recently. In discussing there today, the > current reasoning is that usually one will just call g++ which knows > how to find libstdc++. So, gcc-toolchain does not include gcc:lib as > part of what it makes available. > I tried locally just adding gcc:lib as an input for gcc-toolchain and that does the trick. And since it is just a union-build, very quick to try out :) guix size reports an increase in gcc-toolchain as 0.1 MiB with gcc:lib included. > I think what we (and when this comes up, others) are getting at are > some edge cases or different use cases where one wants to directly get > at libstdc++. Previously it was more direct to use gcc:lib; of course > one still can in code and/or cli with the proper call. For example, > guix build -e "(@@ (gnu packages gcc) gcc)" will download/build/show > the lib output of the (hidden) gcc package. Though I'm not sure how to > select just the lib output here. > > My use case currently is in the FHS container where a binary wants to > find some libraries directly. Previously one would include the gcc:lib > package output in the guix shell call. Now some of those libraries can > be found elsewhere, like libgccjit, but libstdc++ seems to be the > trickier one. Open to other suggestions/workarounds, or thoughts on if > it is worthwhile to include gcc:lib in the gcc-toolchain package (or > make a gcc-toolchain:lib output?). > I tried with my local gcc-toolchain modification and this gets me what I wanted. On that note, I forgot to bring up the problem I had with using make-libstdc++: it does not seem to build the same libstdc++ as included in the gcc package. The doc string for that procedure notes that this is meant to be used when using non-gcc toolchains, but we also have the libstdc++ variable which seems to suggest that (make-libstdc++ gcc) should be the same library as in gcc. I'm not sure the difference in looking at the package definitions, but I don't really know this stuff. Here's an example of the difference I was finding: I was running something and it complained that --8<---------------cut here---------------start------------->8--- symbol lookup error: : undefined symbol: _ZNSt18= condition_variableD1Ev, version GLIBCXX_3.4.11 --8<---------------cut here---------------end--------------->8--- Indeed, looking at the libstdc++ I used via (or could have used libstdc++ here directly since I used the default gcc): --8<---------------cut here---------------start------------->8--- guix shell -e "(begin (use-modules (gnu packages gcc)) (make-libstdc++ gcc)= )" --8<---------------cut here---------------end--------------->8--- I see --8<---------------cut here---------------start------------->8--- $strings /gnu/store/6897bpw5858bdng744ddqw8rrqjb4frr-libstdc++-11.3.0/lib/l= ibstdc++.so | grep "_ZNSt18condition_variableD1Ev" --8<---------------cut here---------------end--------------->8--- while for gcc:lib it is defined --8<---------------cut here---------------start------------->8--- $ strings /gnu/store/l684qgqlrqkbsh8jffp9d8ag6vrpcwgs-gcc-11.3.0-lib/lib/li= bstdc++.so | grep "_ZNSt18condition_variableD1Ev" _ZNSt18condition_variableD1Ev --8<---------------cut here---------------end--------------->8--- and using that libstdc++ does not result in that error. Is make-libstdc++ not meant to be used/mixed with e.g. gcc-toolchain? Is this expected that it is a different library produced or is this a bug? Thanks! John