moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
10.32k stars 538 forks source link

Go doesn't compile on stock Ubuntu 16.04 #210

Open ghost opened 8 years ago

ghost commented 8 years ago

cmd/pprof

/home/redacted/.gvm/gos/go1.4/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic? /home/redacted/.gvm/gos/go1.4/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic? runtime/cgo(.text): unexpected relocation type 298 runtime/cgo(.text): unexpected relocation type 298

cmd/go

/home/redacted/.gvm/gos/go1.4/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic? /home/redacted/.gvm/gos/go1.4/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic? runtime/cgo(.text): unexpected relocation type 298 runtime/cgo(.text): unexpected relocation type 298

mm-z commented 8 years ago

@mdu4rt3 I managed to install go1.4 successfully by setting env CGO_ENABLED=0.

fgblomqvist commented 8 years ago

Setting CGO_ENABLED didn't work for me, I had to install 1.4 from binaries instead to be able to compile a later version, like 1.7: gvm install go1.4 --binary

askdaddy commented 7 years ago

+1
I got the same issue

$ uname -a
Linux hkg-ubuntu-01 4.4.0-51-generic #72-Ubuntu SMP Thu Nov 24 18:29:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Ezward commented 6 years ago

Same issue attempting to install go1.4 and go1.9.2 using gvm 1.0.22 inUbuntu 16.04.3 within Windows 10 Subsystem for Linux (Windows10 Home 1709)

mdoudou commented 6 years ago

me too

adautev commented 6 years ago

+1

suyanlong commented 6 years ago

me to