Illegal instruction when cross compiling for armv5
Bug #1564518 reported by
David Lechner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
golang-1.6 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I installed the golang-1.6 package for trusty and tried to cross-compile a trivial hello world program for armv5
GOOS=linux GOARCH=arm GOARM=5 go build hello.go
When running the program on an actual arm machine though, the resulting hello executable crashes with "Illegal Instruction".
This same command with the official golang 1.6 Linux binary from the go website creates a working executable, so I am guessing that there is some compile option that is different in Ubuntu and that it probably has to to with floating points. armv5 should be using soft float instead of VFP.
To post a comment you must log in.
Can you provide some more details?
* Source of hello.go (although I can probably guess this one :-)
* Output of "GOOS=linux GOARCH=arm GOARM=5 go build -x hello.go" for the packaged go and the official go
* Binaries produced by the two above commands
I don't have access to any armv5 hw but I'll see what I can do.