unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: raingloom <raingloom@riseup.net>
To: vapnik spaknik <vapniks@yahoo.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: problem building go package: /usr/bin/ld: cannot find crt1.o: No such file or directory
Date: Fri, 21 May 2021 02:03:33 +0200	[thread overview]
Message-ID: <20210521020333.05a71356@riseup.net> (raw)
In-Reply-To: <749706961.2393567.1621506455551@mail.yahoo.com>

On Thu, 20 May 2021 10:27:35 +0000 (UTC)
vapnik spaknik <vapniks@yahoo.com> wrote:

> 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?
> 

This worked for me:
guix environment --ad-hoc go gcc-toolchain -- \
go get -u github.com/chzyer/readline


      reply	other threads:[~2021-05-21  0:04 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 ` problem building go package: /usr/bin/ld: cannot find crt1.o: No such file or directory vapnik spaknik
2021-05-21  0:03   ` raingloom [this message]

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=20210521020333.05a71356@riseup.net \
    --to=raingloom@riseup.net \
    --cc=help-guix@gnu.org \
    --cc=vapniks@yahoo.com \
    /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).