From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IOfiH/J6U2TFGgAASxT56A (envelope-from ) for ; Thu, 04 May 2023 11:29:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EN7jHvJ6U2QTnwAAG6o9tA (envelope-from ) for ; Thu, 04 May 2023 11:29:22 +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 F115F2B54C for ; Thu, 4 May 2023 11:29:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puVGq-0000YV-Tb; Thu, 04 May 2023 05:29:04 -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 1puVGp-0000Y2-35 for bug-guix@gnu.org; Thu, 04 May 2023 05:29:03 -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 1puVGo-0001YT-Qd for bug-guix@gnu.org; Thu, 04 May 2023 05:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puVGo-0002f3-IQ for bug-guix@gnu.org; Thu, 04 May 2023 05:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63258: GCC package lacks librt.so (and instead only provides versioned librt.so.1) Resent-From: Mekeor Melire Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 May 2023 09:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63258 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63258@debbugs.gnu.org Cc: Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168319252110196 (code B ref -1); Thu, 04 May 2023 09:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 May 2023 09:28:41 +0000 Received: from localhost ([127.0.0.1]:48572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puVGS-0002eO-Ub for submit@debbugs.gnu.org; Thu, 04 May 2023 05:28:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:43226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puVGQ-0002eE-9P for submit@debbugs.gnu.org; Thu, 04 May 2023 05:28:39 -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 1puVGP-0000Tp-SL for bug-guix@gnu.org; Thu, 04 May 2023 05:28:38 -0400 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 1puVGN-0001Tv-Te for bug-guix@gnu.org; Thu, 04 May 2023 05:28:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 59ED7240213 for ; Thu, 4 May 2023 11:28:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1683192512; bh=lXcWdZIae03B0/WBp9wvGu520hvXGVzr801tlu0COJo=; h=From:To:Cc:Subject:Date:From; b=LJcz6aIUrDYJ8m6bLfEek+T4MFfv1vDgTSrf2yuLU/fWl9+uzufEaydlaVHIWzc+2 rBd+ucS0ehlGxOmKlVNRNpBBfEfXtwRhVDc2B8+qq9isxHoBZe3CgIriKOZMmTwWWo 1usRdNUrA1kilqv2RsU2SjJBlq1wXw1P1/X9THyJQg55hDDruFiUhZYHmksQgff7nA 6DbKHzCNTr0Mc4bNQHP1h9yefTwypLAHGBHCeUr6SM/ImDTUhUg9LpMH9sRoKHHUdu Kvg3VUBqDYtRTSjhlBF/Ivfy7cM2SzLGCRO4pZNMj89MbaTx41xPr8RRrg2YYmS+kV bFY11l4ikfs8Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QBpQl3cWmz6txG; Thu, 4 May 2023 11:28:31 +0200 (CEST) From: Mekeor Melire Date: Thu, 04 May 2023 09:16:17 +0000 Message-ID: <87ttwscuow.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@posteo.de; 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_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683192562; a=rsa-sha256; cv=none; b=pl3KtTNez20uYvguS2Bg1lEtqkTHmc72+7INWBd0vtbaPXrqDy/o0KAAJvMcYELinz++UA LMRNygX/36h+42dxxGQEwHDbLvHGYVpW/gpUuZ1AjZKqgNj5tWoPGiR5QjqXAFm7MGh2Nb gaVPJHhRciuXgr3LQg2jM4AFzLQG5dREN4TS1d+jYloSwVRq2Z6E2H82e0tS6pmhFESLel 8+4a5awxO69UCulrfwsOkad8l0RtWaHaXYCsby0KDym2sTdMtANJF7E4kCEBuAvxZdqY44 84LU9o83nEr5f+DIlXfdZBxe4FZz6l0TjA1Tya1nuPY5aVZ5Onj9wV11DYRL1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.de header.s=2017 header.b=LJcz6aIU; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); 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=1683192562; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=wpv4BI3NQy5qa/fe7IucBnEzkr45IrnZ8lLOF+v6RDM=; b=oYWEy156d/6VrPX2HZGBsegfwhfXmXRr957K6WLIJ/wsf/RMSW34DC//P+sTUx4KSPFEsP UZtGa9M81OWGRdOGEWGeuI7n3SYkx8eVrLzuRXOoumGU3W38xp8CH8WDJYlYazb46iMaW/ zJGUwEc/LhLvKwK5MpQufUFK2sXK7x/mzk2drV4LIFpBYqSN4BEPv5iboO5+yAp66hipHL +oMtCSJr8iuKPXg1KtJd3OpxK/9CUJN/lT6D2T6qDydgeBlgwvU8VOUD3y+FWhlVVNMK2l h4xYgpK3E7Ctu66kaHB+zErHoDbeKrVs53z8cnFxhAAyxBCVfUXDA9zBwHVoGQ== X-Migadu-Spam-Score: -1.91 X-Spam-Score: -1.91 X-Migadu-Queue-Id: F115F2B54C X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.de header.s=2017 header.b=LJcz6aIU; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); 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-TUID: dOMvZ6bMYwTA The "gcc" package (as well as the "gcc-toolchain" package) (since version 12?) lacks the librt.so file which some stuff links to. As a consequence, in bug#63012, Josselin Poiret (CC) had to patch Zig to not link to that file. Another consequence is that I had to install gcc-toolchain:static in order to make GHC compile XMonad. On #guix IRC channel, Josselin Poiret stated that we should include an empty librt.a in the output of the "gcc" package. And Ludo (CC) suggested to temporarily include that file only in gcc-toolchain, in order to avoid world rebuild. Here's the full relevant IRC log: --8<---------------cut here---------------start------------->8--- 2023-05-04 09:49:54 mekeor: bjc: for me, gcc-toolchain@12 is shipped with librt.so.1 which is present in my ~/.guix-profile/lib folder which is listed in my $LIBRARY_PATH variable. still, ghc can't find it :/ 2023-05-04 09:56:15 jpoiret: mekeor: that's because ghc and others look for librt.so, not librt.so.1 2023-05-04 09:56:31 jpoiret: we forgot to include an empty librt.a in the out output of gcc unfortunately 2023-05-04 09:56:59 jpoiret: you can add gcc-toolchain:static for now 2023-05-04 09:57:04 mekeor: jpoiret: is there a workaround? :) also, is there a patch already 2023-05-04 09:57:08 mekeor: oh cool 2023-05-04 09:57:12 jpoiret: I don't think so 2023-05-04 09:57:50 jpoiret: basically librt.so.1 is empty now, since everything is provided by libc 2023-05-04 09:59:43 mekeor: the "static" output fixes my problem. thank you very much, jpoiret! 2023-05-04 09:59:47 jpoiret: the problem is that it'll require a world rebuild so it's not an easy change to make now. But we'll probably have to do it anyway 2023-05-04 10:00:01 jpoiret: might as well batch some other important changes like updating the glibc again 2023-05-04 10:00:08 jpoiret: just to break everything again :) 2023-05-04 10:00:41 civodul: jpoiret: we could add an empty librt.a in gcc-toolchain, rather than gcc? 2023-05-04 10:01:00 civodul: that would address most practical issues, no? 2023-05-04 10:01:26 jpoiret: ah, that's right :) 2023-05-04 10:01:55 jpoiret: but still, it's probably a good idea to have it in gcc, zig wanted it and I had to patch out -librt 2023-05-04 10:01:59 jpoiret: -lrt * 2023-05-04 10:02:54 civodul: yes, that'd be the right fix, but in the meantime we could have the easy fix :-) --8<---------------cut here---------------end--------------->8---