gvm icon indicating copy to clipboard operation
gvm copied to clipboard

Go 1.5 install results in exec format error on ARM

Open vsaw opened this issue 8 years ago • 4 comments

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.

vsaw avatar Dec 31 '15 16:12 vsaw

Have the same problem here. Specifically with --binary. Haven't tried with source install just yet.

shuhaowu avatar Sep 25 '16 19:09 shuhaowu

Looks like the issue is two folds.

  1. https://github.com/moovweb/gvm/blob/1310191774858b121adcfd755b26ece5af9ea308/scripts/install#L173-L177 doesn't assume ARM at all.
  2. I don't think go provides an ARM7 binary download yet (1.7.1).

shuhaowu avatar Sep 25 '16 19:09 shuhaowu

Even armv6 download would be preferable, at least it would work afaik.

step21 avatar Apr 29 '20 12:04 step21

Yes, ARM binaries are available now: https://storage.googleapis.com/golang

logoff avatar Feb 06 '21 17:02 logoff