Re: [go-nuts] loadinternal: cannot find runtime/cgo

2023-02-08 Thread Ian Lance Taylor
On Wed, Feb 8, 2023 at 11:50 AM Paolo Losi wrote: > > I am using the following command to build command to build statically linked > executables > > go install -tags netgo,osusergo -v -ldflags="-extldflags '-static' -linkmode > 'external'" ./... > > Everything works fine (binaries are build and

Re: [go-nuts] loadinternal: cannot find runtime/cgo

2020-09-25 Thread saurav deshpande
I will try to install it again. Thank you [saurav deshpande - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=p6sjx) [p6sjx] On September 25, 2020 at 8:41 GMT, saurav deshpande wrote: Okay [saurav deshpande - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-or

Re: [go-nuts] loadinternal: cannot find runtime/cgo

2020-09-25 Thread saurav deshpande
Okay [saurav deshpande - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=p6si4) [p6si4] On September 25, 2020 at 8:40 GMT, Joop Kiefte wrote: So I suspect then that some environment variables are not configured correctly -- the problem from the errors is the file

Re: [go-nuts] loadinternal: cannot find runtime/cgo

2020-09-25 Thread Joop Kiefte
So I suspect then that some environment variables are not configured correctly -- the problem from the errors is the files not being found, this doesn't necessarily mean that they are not there... [Joop Kiefte - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=p6sgx) [

Re: [go-nuts] loadinternal: cannot find runtime/cgo

2020-09-25 Thread saurav deshpande
Tried with that but got same results On Friday, September 25, 2020 at 1:21:00 PM UTC+5:30 b.ca...@pobox.com wrote: > I think he meant "really old", like go 1.8 (which was the version that the > author of that project used). > -- You received this message because you are subscribed to the Goo

Re: [go-nuts] loadinternal: cannot find runtime/cgo

2020-09-25 Thread Joop Kiefte
Yep, that's basically what it comes down to: using the same Go version as the original author. I think making it work with the latest version would be possible, but might need adaptations. [Joop Kiefte - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=p6sdb) [p6sdb]

Re: [go-nuts] loadinternal: cannot find runtime/cgo

2020-09-25 Thread Brian Candler
I think he meant "really old", like go 1.8 (which was the version that the author of that project used). -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-n

Re: [go-nuts] loadinternal: cannot find runtime/cgo

2020-09-24 Thread saurav deshpande
Thank you for the reply, I downloaded : *go1.14.9 linux/amd64* and tried to make again but this time it gives me: *[go] compiling go sources into a standalone .o file* * | ./fma.go:7:8: can't open import: "math/bits": open $WORK/b003/_pkg_.a: no such file or directory* *make: *** [Makefile:36: g

Re: [go-nuts] loadinternal: cannot find runtime/cgo

2020-09-24 Thread Joop Kiefte
As far as I know, this is a demo that relies on internals that are not part of the official API, so there are probably mismatches because of that. Maybe try with an older Go version first? Also, how did you install Go itself? Maybe the GOROOT is not set up correctly for example? [Joop Kiefte -