From: "Ava Hahn" <avavava@sunnypup.io>
To: 63238@debbugs.gnu.org
Subject: bug#63238: issue linking to librt
Date: Tue, 02 May 2023 13:01:28 -0700 [thread overview]
Message-ID: <bde5cd5a-e029-4243-8668-f59b4a8d5237@app.fastmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 1279 bytes --]
next reply other threads:[~2023-05-07 7:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-02 20:01 Ava Hahn [this message]
2023-05-04 3:40 ` bug#63238: (no subject) semilin
2023-05-26 15:58 ` bug#63238: issue linking to librt Brian Cully via Bug reports for GNU Guix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bde5cd5a-e029-4243-8668-f59b4a8d5237@app.fastmail.com \
--to=avavava@sunnypup.io \
--cc=63238@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.