X-Loop: help-debbugs@HIDDEN Subject: bug#63258: GCC package lacks librt.so (and instead only provides versioned librt.so.1) Resent-From: Mekeor Melire <mekeor@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Thu, 04 May 2023 09:29:02 +0000 Resent-Message-ID: <handler.63258.B.168319252110196 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 63258 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63258 <at> debbugs.gnu.org Cc: Josselin Poiret <dev@HIDDEN>, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1puVGS-0002eO-Ub for submit <at> 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 <mekeor@HIDDEN>) id 1puVGQ-0002eE-9P for submit <at> 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 <mekeor@HIDDEN>) id 1puVGP-0000Tp-SL for bug-guix@HIDDEN; 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 <mekeor@HIDDEN>) id 1puVGN-0001Tv-Te for bug-guix@HIDDEN; 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 <bug-guix@HIDDEN>; 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 <mekeor@HIDDEN> Date: Thu, 04 May 2023 09:16:17 +0000 Message-ID: <87ttwscuow.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@HIDDEN; 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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) 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---
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Mekeor Melire <mekeor@HIDDEN> Subject: bug#63258: Acknowledgement (GCC package lacks librt.so (and instead only provides versioned librt.so.1)) Message-ID: <handler.63258.B.168319252110196.ack <at> debbugs.gnu.org> References: <87ttwscuow.fsf@HIDDEN> X-Gnu-PR-Message: ack 63258 X-Gnu-PR-Package: guix Reply-To: 63258 <at> debbugs.gnu.org Date: Thu, 04 May 2023 09:29:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 63258 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 63258: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D63258 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#63258: [PATCH] gnu: gcc-toolchain: Add empty librt.a. Resent-From: Josselin Poiret <dev@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Thu, 04 May 2023 19:51:02 +0000 Resent-Message-ID: <handler.63258.B.168322985528545 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 63258 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: mekeor@HIDDEN, 63258 <at> debbugs.gnu.org Cc: Josselin Poiret <dev@HIDDEN>, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> X-Debbugs-Original-To: Mekeor Melire <mekeor@HIDDEN>, bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.168322985528545 (code B ref -1); Thu, 04 May 2023 19:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 May 2023 19:50:55 +0000 Received: from localhost ([127.0.0.1]:52117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pueyc-0007QI-OD for submit <at> debbugs.gnu.org; Thu, 04 May 2023 15:50:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:59326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <dev@HIDDEN>) id 1pueyb-0007Pw-Gp for submit <at> debbugs.gnu.org; Thu, 04 May 2023 15:50:53 -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 <dev@HIDDEN>) id 1pueyR-0005Me-LH for bug-guix@HIDDEN; Thu, 04 May 2023 15:50:45 -0400 Received: from jpoiret.xyz ([206.189.101.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <dev@HIDDEN>) id 1pueyP-00051a-Nk; Thu, 04 May 2023 15:50:43 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 3AFE1184F2A; Thu, 4 May 2023 19:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1683229838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RewN7oxaBDWTlt1ICOcwieBuxwi0a1ltxAjFd6uoQgo=; b=J5il2brJ5BrOkx+Q+dVNKNxYkQazyFHiOdrJ/sA9f8aBlFMDkxViAeVMKimCpkepRhmLnA yeoVPmzwMwoWg+E1Kl+6nYVdSlhNLJHUZ+HChyW1Bkt0VDiutJ8Q0PpfQvy5mlO/FclifW qVD9apUV1EyKvoDJTgOyu7Da3C1i9VgIYfupuGHAXwVqkMReRKmqN5QDbrcbje2ii6v6Qe SEne6igFzCd/nsRDLKa1aSwgr2H/EdreaC+wQ6EZdbpIKoBV/jHpONfNZ5MMT33pa9tFu+ 0dOnD6gJDkqJv8oUQmjjP9KHOcLbvoFOpjRvVJvp/+YkTWRdvqLHAAzruvaLdQ== From: Josselin Poiret <dev@HIDDEN> Date: Thu, 4 May 2023 21:50:37 +0200 Message-Id: <a7e33ea2f29b930d4782932ea733ccf9ca7f76da.1683229790.git.dev@HIDDEN> In-Reply-To: <87ttwscuow.fsf@HIDDEN> References: <87ttwscuow.fsf@HIDDEN> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++++ Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@HIDDEN smtp.mailfrom=dev@HIDDEN X-Spam-Level: **** Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@HIDDEN; helo=jpoiret.xyz 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) From: Josselin Poiret <dev@HIDDEN> * gnu/packages/commencememnt.scm (make-gcc-toolchain): Add empty librt.a. * gnu/packages/base.scm (gcc): Add a warning regarding the missing librt.a. --- Hi, This patch should be enough for -lrt to work with gcc-toolchain. This doesn't fix the underlying issue for the gcc package though, as it would incur a world rebuild. Best, Josselin gnu/packages/base.scm | 4 ++++ gnu/packages/commencement.scm | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 6911ea78be..4350fd4041 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -945,6 +945,10 @@ (define-public glibc ;; library is empty by some criterion (such as their file ;; size equaling eight bytes) rather than hardcoding them ;; by name. + + ;; XXX: We forgot librt.a for the current version! In + ;; the meantime, gcc-toolchain provides it, but remove + ;; that fix once librt.a is added here. (define empty-static-libraries '("libpthread.a" "libdl.a" "libutil.a" "libanl.a")) (define (empty-static-library? file) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 25e96b1aa6..26d5eb3819 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -3452,6 +3452,13 @@ (define* (make-gcc-toolchain gcc (union-build (assoc-ref %outputs "static") (list (assoc-ref %build-inputs "libc-static"))) + ;; XXX Remove once an empty librt.a is added to + ;; libc:out. + (copy-file + (string-append (assoc-ref %outputs "out") + "/lib/libpthread.a") + (string-append (assoc-ref %outputs "out") + "/lib/librt.a")) #t)))) (native-search-paths base-commit: f14d3944cc699d1426c31b304fb49b72a579666a -- 2.39.2
Received: (at control) by debbugs.gnu.org; 26 May 2023 15:16:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 26 11:16:33 2023 Received: from localhost ([127.0.0.1]:50570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1q2ZBB-0004Y0-30 for submit <at> debbugs.gnu.org; Fri, 26 May 2023 11:16:33 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:60370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <antero@HIDDEN>) id 1q2ZB8-0004Xc-Qo; Fri, 26 May 2023 11:16:31 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4QST5t75J0z9scc; Fri, 26 May 2023 17:16:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1685114179; h=from:from:reply-to:subject:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type; bh=9ac1OzpsdKAn0/maR7mtRablPBrFAFLldIlKqTynZd0=; b=mnfu00Sa5aHOCoD5EMHdStM4empSoSg1u3mMjjv2P89rCjq160BjTIDPIld1VeuPUawOUP d8el7wfTxcrjcJ/XlDvtFfzpBLDYmFDYr5KkrbVeiTM4lMJk1EEeU1T5R1DLFe+v+jm8P6 Qp/FRHNHlFQVY/O3pTPXZXReKgBChzD+6kKMmikWW/fIIhqbiCIecyxtoB2iaw7YiL05vB cehOpxXEdECCv8nY8AQ0xHCdmZdL13J63rVwMBbQann7/77Nd1TUhuUJpyG1D99EX+GR+0 WLmHN3aL+/V+NgMVqVIObqoZqmBeJU3r4K5s4P3U/cLdhJgm4u0TUuoR8rvgMA== From: Antero Mejr <antero@HIDDEN> To: control <at> debbugs.gnu.org Date: Fri, 26 May 2023 15:16:16 +0000 Message-ID: <87lehbw2bj.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-MBO-RS-META: jkbciz88iqrtjt6s6y577uaiezwcomx7 X-MBO-RS-ID: 4ae1992c1f218f116e6 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: merge 63258 63728 Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [80.241.56.161 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control Cc: 63728 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.3 (/) merge 63258 63728
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.