gvm
gvm copied to clipboard
Go 1.5 install results in exec format error on ARM
Hi there, I'm building Go 1.5 on ARM with the following script:
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source $HOME/.gvm/scripts/gvm
gvm install go1.4.2
gvm use go1.4.2
export GOROOT_BOOTSTRAP=$GOROOT
gvm install go1.5.2 --prefer-binary
gvm use go1.5.2 --default
The installation seems to successful based on this output
Cloning from https://github.com/moovweb/gvm.git to /home/pi/.gvm
No existing Go versions detected
Installed GVM v1.0.22
Please restart your terminal session or to get started right away run
`source /home/pi/.gvm/scripts/gvm`
Downloading Go source...
Installing go1.4.2...
* Compiling...
go1.4.2 successfully installed!
Now using version go1.4.2
Installing go1.5.2 from binary source
Now using version go1.5.2
However when I try to use go I get the following
$ go --version
-bash: /home/pi/.gvm/gos/go1.5.2/bin/go: cannot execute binary file: Exec format error
Is that expected? I would have assumed it install the ARM version of Go 1.5.
P.S. I can use go1.4 without a problem.
Have the same problem here. Specifically with --binary. Haven't tried with source install just yet.
Looks like the issue is two folds.
- https://github.com/moovweb/gvm/blob/1310191774858b121adcfd755b26ece5af9ea308/scripts/install#L173-L177 doesn't assume ARM at all.
- I don't think go provides an ARM7 binary download yet (1.7.1).
Even armv6 download would be preferable, at least it would work afaik.
Yes, ARM binaries are available now: https://storage.googleapis.com/golang