From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 kAIdMi5NV2RGUwEASxT56A (envelope-from ) for ; Sun, 07 May 2023 09:03:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UNEfMi5NV2QrGAEA9RJhRA (envelope-from ) for ; Sun, 07 May 2023 09:03:10 +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 7A8F317EB2 for ; Sun, 7 May 2023 09:03:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvXmV-0000KP-RZ; Sun, 07 May 2023 02:22:03 -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 1pu1aA-0004Fb-Rp for bug-guix@gnu.org; Tue, 02 May 2023 21:47: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 1pu1aA-0008OL-JN for bug-guix@gnu.org; Tue, 02 May 2023 21:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pu1aA-0005Pz-EU for bug-guix@gnu.org; Tue, 02 May 2023 21:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63238: issue linking to librt Resent-From: "Ava Hahn" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 03 May 2023 01:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63238 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63238@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168307839920794 (code B ref -1); Wed, 03 May 2023 01:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 May 2023 01:46:39 +0000 Received: from localhost ([127.0.0.1]:45307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pu1Zm-0005PE-1r for submit@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 ) id 1ptwCA-0007az-J8 for submit@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 ) id 1ptwCA-0003oq-94 for bug-guix@gnu.org; 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 ) id 1ptwC7-0007KF-AO for bug-guix@gnu.org; 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 ; 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: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedviedgudeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtre erreertdenucfhrhhomhepfdetvhgrucfjrghhnhdfuceorghvrghvrghvrgesshhunhhn hihpuhhprdhioheqnecuggftrfgrthhtvghrnhepfedvtedvteejgeejudefffeujeduvd eufffgueekgedtgedtudffhfeggeeikedvnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheprghvrghvrghvrgesshhunhhnhihpuhhprdhioh X-ME-Proxy: 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: Date: Tue, 02 May 2023 13:01:28 -0700 From: "Ava Hahn" Content-Type: multipart/alternative; boundary=b9948dc4591647ed849b84c82184235b Received-SPF: pass client-ip=66.111.4.27; envelope-from=avavava@sunnypup.io; 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-Mailman-Approved-At: Tue, 02 May 2023 21:46:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 07 May 2023 02:21:59 -0400 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683442990; a=rsa-sha256; cv=none; b=uMBBtQhcxBLPKS2S5KrgWsHvg1MtlUsBSq1O6y042tEV3uCLXF/xWpe7RRBNs+rEgKnjzq Gwskl2JK1A/nCugwYyPS/x7p51JXgiinKPjd8LhdrAWTnfAAOgYEMqRJkbVWUat5ik/IEv MqTcJ/kzIfcg2xNm1wOCCuXQIXbm69YtzMC+9hi/Uv98Oq/4+NM9bW6ihnhRXXFyo3BvTq 59MVh6hG79Di9g0Adq2zlTOG3nnV6/Igy6PBk8XQNoKh4fhQs4mOqAkHwVpCCRfeSiEfNr qNUK/m4Az4galXiHxA2Zdnb/NCDQSYYLCScIFPFxOSg59NReMQWb6x1AkQMb+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683442990; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=dtbgYjt6yZCd3i2XEKZLkVhIxDZezXFMgj49PkQuj9A=; b=rW8vH+qfltm4bxFAcLCVffOVEl86rZepKju/2NQURRNygMztCic3nFJNCrs/5eLExzfT3Y 0ssxClv3OpklJQRC6y4cheWUuXJQJwmyX+2HFfh8T9rsjNO5guVSzX525ejUUNepd4dPtc rBjIAL657cbH+hvPaUmo22R/27rnXNU821mMXjSbxoE1+C8x6noEs4tomLZtJ2uz8ccWt5 vQec2/rtLQYZUYZstGtQrUHz1sRykpwJbHnwf+p6/SiipkGbgr6Yg43FwNF2e+XRhHdKds RDVIs1S6kQeugd0Ka/mfaiZnVoj51X330Tp8Ec/fhSoUXShqIsCXRb0CWb+4vw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; 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"; dmarc=none X-Migadu-Spam-Score: -0.48 X-Spam-Score: -0.48 X-Migadu-Queue-Id: 7A8F317EB2 X-TUID: OB8GcCu7P+sw --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
Hello All,
<= /div>

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": "l= ibrt.so.1 ... =3D> /gnu/store/...".

In o= rder to get ld to find librt I need to take the following steps:
- ma= ke a folder I can write to (not .~/guix-profile/lib)
- sy= mlink ~/.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 stum= bled on this while trying to compile a rust project with "cargo build".<= br>
Compiling any dependency that relied on libc failed = on linking to librt.

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.


--b9948dc4591647ed849b84c82184235b--