GNU bug report logs - #63238
issue linking to librt

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: "Ava Hahn" <avavava@HIDDEN>; dated Wed, 3 May 2023 01:47:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 63238 <at> debbugs.gnu.org:


Received: (at 63238) by debbugs.gnu.org; 26 May 2023 15:58:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 26 11:58:50 2023
Received: from localhost ([127.0.0.1]:50625 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2Zq6-0008OJ-Nm
	for submit <at> debbugs.gnu.org; Fri, 26 May 2023 11:58:50 -0400
Received: from coleridge.kublai.com ([166.84.7.167]:52480 helo=mail.spork.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bjc@HIDDEN>) id 1q2Zq5-0008OB-Jc
 for 63238 <at> debbugs.gnu.org; Fri, 26 May 2023 11:58:50 -0400
Received: from psyduck (ool-18b8e9e7.dyn.optonline.net [24.184.233.231])
 by mail.spork.org (Postfix) with ESMTPSA id 4EB45BFAC;
 Fri, 26 May 2023 11:58:47 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim;
 t=1685116729; bh=ejdscWhEuOi3vGniTgNfs6l3bEne/RfYuK83UDncVSo=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=ccOINh/g6sk0uJPK9ZaUrGqVkyRpg5+E8iNKh76ckQMFnG5ySr+9y6dY1F+JChOoL
 NvrT6JRz0h86z2L7ZD4o3mgWRtEtMhLYG7wPhiDOezM8YmzC5U7o7dUC7r8a6xb9GG
 Asu7qFkSATTHUdyrK36Xvgxtw8J+f+5T+l/AVEo0=
From: Brian Cully <bjc@HIDDEN>
To: semilin <semilin@HIDDEN>
Subject: Re: bug#63238: issue linking to librt
In-Reply-To: <0579ac0dfb2cbf24b0375185eb0f4665@HIDDEN>
 (semilin@HIDDEN's message of "Wed, 03 May 2023 20:40:08 -0700")
References: <bde5cd5a-e029-4243-8668-f59b4a8d5237@HIDDEN>
 <0579ac0dfb2cbf24b0375185eb0f4665@HIDDEN>
Date: Fri, 26 May 2023 11:58:46 -0400
Message-ID: <87r0r3xex5.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 63238
Cc: 63238 <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: -1.0 (-)

librt and libpthread were merged into libc with glibc 2.34, however, for
compatibility, there exist empty .a files to satisfy the linker. But
because Guix has a separate output for the static libraries, they need
to be explicitly installed from =E2=80=98glibc:static=E2=80=99, which allow=
s Cargo to do
its thing.

Cargo itself should probably be fixed so that it no longer tries to link
with these libraries, but until that time, the above work-around suffices.




Information forwarded to bug-guix@HIDDEN:
bug#63238; Package guix. Full text available.

Message received at 63238 <at> debbugs.gnu.org:


Received: (at 63238) by debbugs.gnu.org; 4 May 2023 09:50:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 04 05:50:13 2023
Received: from localhost ([127.0.0.1]:48589 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1puVbJ-0003LP-5Y
	for submit <at> debbugs.gnu.org; Thu, 04 May 2023 05:50:13 -0400
Received: from knopi.disroot.org ([178.21.23.139]:47890)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <semilin@HIDDEN>) id 1puPpE-0000q7-0X
 for 63238 <at> debbugs.gnu.org; Wed, 03 May 2023 23:40:14 -0400
Received: from localhost (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id E4AF44024E
 for <63238 <at> debbugs.gnu.org>; Thu,  4 May 2023 05:40:09 +0200 (CEST)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from knopi.disroot.org ([127.0.0.1])
 by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id HmuamrUmO6Ka for <63238 <at> debbugs.gnu.org>;
 Thu,  4 May 2023 05:40:08 +0200 (CEST)
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1683171608; bh=TkLT5FFOHsbQ4mv2mjtAi+WiV9SV1mcz1JW77u7cM9k=;
 h=Date:From:To;
 b=Lq251XMJMxPwnBYdydgWMphbBLKD8I1hXCx7TR+ouSEi3XFguk0i4dTAmGRTkBn0m
 1WOmpf29jnpfITmyEDj7l287dJvVf56cCqW5YIt6kElyKVCVlQCyMreZejpgcs3J1x
 WVQsHSoN5muZGG81L5adV43iJ2NcRXnxEjEOVbPg2pTsILX3gcW73bSISYj4FK9sFc
 1yvMGqY+ZUVFbmWWTbkYBgqDxayLftRzH3HnO/agvgFvHt7wAx3rEwbRb1yE/cFrZM
 M1ahBYa5Ms7WAooxjYGv+iRhzdx7bqBTdMMkZsLaAt8haBCy2Whc7FGLCS6Yt9vIdw
 UZdqiPtjPbZLQ==
Date: Wed, 03 May 2023 20:40:08 -0700
From: semilin <semilin@HIDDEN>
To: 63238 <at> debbugs.gnu.org
Message-ID: <0579ac0dfb2cbf24b0375185eb0f4665@HIDDEN>
X-Sender: semilin@HIDDEN
Content-Type: multipart/alternative;
 boundary="=_e4f8b6ae3b042dfb45ceba750b8902aa"
X-Spam-Score: 2.0 (++)
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: I encountered the same issue recently. I used to be able to
 compile with `cargo build` just fine just a few days ago. I recently upgraded
 my system from glibc 2.33 to 2.35, and I'd guess it's related [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 HTML_MESSAGE           BODY: HTML included in message
 1.8 MISSING_SUBJECT        Missing Subject: header
 0.2 NO_SUBJECT             Extra score for no subject
X-Debbugs-Envelope-To: 63238
X-Mailman-Approved-At: Thu, 04 May 2023 05:50:12 -0400
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: 1.0 (+)

--=_e4f8b6ae3b042dfb45ceba750b8902aa
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII;
 format=flowed



I encountered the same issue recently. I used to be able to compile with 
`cargo build` just fine just a few days ago. I recently upgraded my 
system from glibc 2.33 to 2.35, and I'd guess it's related to that. 
However, running it in `guix shell glibc@HIDDEN` results in the same 
problem, so I'm not sure.
--=_e4f8b6ae3b042dfb45ceba750b8902aa
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>
<p>I encountered the same issue recently. I used to be able to compile with=
 `cargo build` just fine just a few days ago. I recently upgraded my system=
 from glibc 2.33 to 2.35, and I'd guess it's related to that. However, runn=
ing it in `guix shell <a href=3D"mailto:glibc@HIDDEN&#96;">glibc@HIDDEN`</a> re=
sults in the same problem, so I'm not sure.</p>

</body></html>

--=_e4f8b6ae3b042dfb45ceba750b8902aa--




Information forwarded to bug-guix@HIDDEN:
bug#63238; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 May 2023 01:46:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 02 21:46:39 2023
Received: from localhost ([127.0.0.1]:45307 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pu1Zm-0005PE-1r
	for submit <at> debbugs.gnu.org; Tue, 02 May 2023 21:46:39 -0400
Received: from lists.gnu.org ([209.51.188.17]:33240)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <avavava@HIDDEN>) id 1ptwCA-0007az-J8
 for submit <at> debbugs.gnu.org; Tue, 02 May 2023 16:01:57 -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 <avavava@HIDDEN>)
 id 1ptwCA-0003oq-94
 for bug-guix@HIDDEN; Tue, 02 May 2023 16:01:54 -0400
Received: from out3-smtp.messagingengine.com ([66.111.4.27])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <avavava@HIDDEN>)
 id 1ptwC7-0007KF-AO
 for bug-guix@HIDDEN; Tue, 02 May 2023 16:01:54 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47])
 by mailout.nyi.internal (Postfix) with ESMTP id 877E25C00F8
 for <bug-guix@HIDDEN>; Tue,  2 May 2023 16:01:48 -0400 (EDT)
Received: from imap44 ([10.202.2.94])
 by compute6.internal (MEProxy); Tue, 02 May 2023 16:01:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sunnypup.io; h=
 cc:content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:sender:subject:subject:to:to;
 s=fm1; t=1683057708; x=1683144108; bh=dtbgYjt6yZCd3i2XEKZLkVhIx
 DZezXFMgj49PkQuj9A=; b=cRV73WQc7LmxtgiSqLaTep0+WyzZwVVnk8X4G5grq
 D6TFC9tbcjz/ylIAJ4bFIyq/wAf6YUBjzGeZT3OItNiHpqCBtwvMhpFne2lpVgkK
 bjuKh4+UFQ5Joa3Nd9FgLXcl82D1C72wwyAD8cnt2M5Xv9/ZDPVvZxSgqXnLPrzs
 gpH3w6w1RwhscPVuwJmZ/KVn2wqT4bJ8bYudhY+FnejIwJhGywxOAexF/QGNgCOO
 qgCJkNEKF0DiFGh1KVtYG1izeWmFiScU2uE9EY/DIWbC7FkrhrfZBHNvRdHLsn/7
 f7DNlrgHSims0eAapHUo3j3iJp3pVeprceaSpHSRipSJQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1683057708; x=1683144108; bh=dtbgYjt6yZCd3i2XEKZLkVhIxDZezXFMgj4
 9PkQuj9A=; b=Xce4ZHo5L6WtIGCUyekvjjPz7VELCzwQagmqX6ua1QSdvif6ONW
 9cf6SMVK47M247Er9cSu9EqaWTnIF99fnTJcb8gGAEL+r3Nwxp73zHpQ/aKsqytP
 BPYypn6LW0tTVEsmnxVeama+2YrPAdDWlGCbVYmjnIGRvqV4f2jCJIoCDh/4/QEK
 chWFV725FcFdbCnsTpOzidBzCtxmKx1cUrUC4j5yPEnsSKzsoJkwq3I/fmSNPD9N
 E3W91gLVkyFegUTnoQ09e4auDbKGSWJEPXaYcARFspPmxxJy5s/a8YWMisIeM95n
 5ZrpgFLY2q1uoOyUjHOdtI2Sbn0KWdq2ukg==
X-ME-Sender: <xms:LGxRZH2VmCGPwSoImQE4RnbQswGUc03jftmRI2LLK39OxHmFnvxFrw>
 <xme:LGxRZGEQeOF0rZMXzsWCutjz6jjS31NshapK5Id9CHUqoFh_4aYi87D7oY2rbP-v8
 uAFg63k39_bdVpFwkk>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedviedgudeggecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtre
 erreertdenucfhrhhomhepfdetvhgrucfjrghhnhdfuceorghvrghvrghvrgesshhunhhn
 hihpuhhprdhioheqnecuggftrfgrthhtvghrnhepfedvtedvteejgeejudefffeujeduvd
 eufffgueekgedtgedtudffhfeggeeikedvnecuvehluhhsthgvrhfuihiivgeptdenucfr
 rghrrghmpehmrghilhhfrhhomheprghvrghvrghvrgesshhunhhnhihpuhhprdhioh
X-ME-Proxy: <xmx:LGxRZH53og3Lr-WOvf4oWGha3nMv36o2uvdGxpLGLfskwNqzBbGqWA>
 <xmx:LGxRZM2Ak3amE62DpqM72Lp37Q2geumuyTeKtwDqsJgpHpulQagLJw>
 <xmx:LGxRZKHJxcGZ3qhxxoFr471gO0zhn_gDXt-2dXJuyH8O0SnYjc5oIQ>
 <xmx:LGxRZORS5eO4Wb4YYieVt-lIR8oQZvBGEizciinx-aNmuj9i3QE4aQ>
Feedback-ID: id6014673:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id 3D00236A0073; Tue,  2 May 2023 16:01:48 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.9.0-alpha0-386-g2404815117-fm-20230425.001-g24048151
Mime-Version: 1.0
Message-Id: <bde5cd5a-e029-4243-8668-f59b4a8d5237@HIDDEN>
Date: Tue, 02 May 2023 13:01:28 -0700
From: "Ava Hahn" <avavava@HIDDEN>
To: bug-guix@HIDDEN
Subject: issue linking to librt
Content-Type: multipart/alternative; boundary=b9948dc4591647ed849b84c82184235b
Received-SPF: pass client-ip=66.111.4.27; envelope-from=avavava@HIDDEN;
 helo=out3-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.6 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 02 May 2023 21:46:34 -0400
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.6 (--)

--b9948dc4591647ed849b84c82184235b
Content-Type: text/plain

Hello All,

I believe I have stumbled on an issue with how the libraries in glibc are stored.
If I run "ld -lrt" it reports "ld: cannot find -lrt: No such file or directory"
Meanwhile, I can find librt with "ldconfig -p | grep librt": "librt.so.1 ... => /gnu/store/...".

In order to get ld to find librt I need to take the following steps:
- make a folder I can write to (not .~/guix-profile/lib)
- symlink ~/.guix-profile/lib/librt.so.1 to /my-folder/librt.so
- add the corresponding option to ld: "ld -lrt -L ~/lib"
Then ld is able to find librt.

I stumbled on this while trying to compile a rust project with "cargo build".
Compiling any dependency that relied on libc failed on linking to librt.

Feel free to let me know if there is some Guix facility I should be using instead. I am pretty new to this. I tried using cargo in a Guix shell but the same problem persisted.


--b9948dc4591647ed849b84c82184235b
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso=
Normal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hello All,<br><=
/div><div><br></div><div><div>I believe I have stumbled on an issue with=
 how the libraries in glibc are stored.<br></div><div><div>If I run "ld =
-lrt" it reports "ld: cannot find -lrt: No such file or directory"<br></=
div><div>Meanwhile, I can find librt with "ldconfig -p | grep librt": "l=
ibrt.so.1 ... =3D&gt; /gnu/store/...".<br></div><div><br></div><div>In o=
rder to get ld to find librt I need to take the following steps:<br>- ma=
ke a folder I can write to (not .~/guix-profile/lib)</div><div><div>- sy=
mlink ~/.guix-profile/lib/librt.so.1 to /my-folder/librt.so<br></div><di=
v>- add the corresponding option to ld: "ld -lrt -L ~/lib"<br></div><div=
>Then ld is able to find librt.<br></div><div><br></div><div><div>I stum=
bled on this while trying to compile a rust project with "cargo build".<=
br></div></div><div>Compiling any dependency that relied on libc failed =
on linking to librt.<br><br>Feel free to let me know if there is some Gu=
ix facility I should be using instead. I am pretty new to this. I tried =
using cargo in a Guix shell but the same problem persisted.<br></div></d=
iv><div><br></div></div></div><div><br></div></body></html>
--b9948dc4591647ed849b84c82184235b--




Acknowledgement sent to "Ava Hahn" <avavava@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#63238; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 26 May 2023 16:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.