From: vapnik spaknik <vapniks@yahoo.com>
To: help-guix <help-guix@gnu.org>
Subject: problem building go package: /usr/bin/ld: cannot find crt1.o: No such file or directory
Date: Thu, 20 May 2021 10:27:35 +0000 (UTC) [thread overview]
Message-ID: <749706961.2393567.1621506455551@mail.yahoo.com> (raw)
In-Reply-To: 749706961.2393567.1621506455551.ref@mail.yahoo.com
Hi,
I'm running guix on Ubuntu, and have installed go via guix.
I tried installing a github go package using the following command:
> go get -u github.com/chzyer/readline
but got this error: "fatal error: linux/errno.h: No such file or directory"
I fixed that problem by doing:
> export CGO_CPPFLAGS="-I/usr/include"
However, now I get the following error: "/usr/bin/ld: cannot find crt1.o: No such file or directory"
crt1.o can be found on my system in /usr/lib/x86_64-linux-gnu
so I tried doing this:
> export CGO_LDFLAGS="-rpath /usr/lib/x86_64-linux-gnu -L /usr/lib/x86_64-linux-gnu"
but that didn't fix the problem, I still got the same error.
I also tried this:
> export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu"
but again, same error.
Can anyone help?
next parent reply other threads:[~2021-05-20 10:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <749706961.2393567.1621506455551.ref@mail.yahoo.com>
2021-05-20 10:27 ` vapnik spaknik [this message]
2021-05-21 0:03 ` problem building go package: /usr/bin/ld: cannot find crt1.o: No such file or directory raingloom
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=749706961.2393567.1621506455551@mail.yahoo.com \
--to=vapniks@yahoo.com \
--cc=help-guix@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).