[Bug 1564518] Re: Illegal instruction when cross compiling for armv5

Michael Hudson-Doyle michael.hudson+lp at canonical.com
Tue Apr 5 05:14:02 UTC 2016


Um, those binaries contain all but identical code (exactly one
instruction differs, I think because the GOROOTs are different). Both
appear to be built to use soft float (i.e. armv5 compatible). Are you
sure the one from comment #4 crashes and the one from bomment #6 does
not? Because I'm afraid I don't see how that is possible.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang-1.6 in Ubuntu.
https://bugs.launchpad.net/bugs/1564518

Title:
  Illegal instruction when cross compiling for armv5

Status in golang-1.6 package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-1.6/+bug/1564518/+subscriptions



More information about the foundations-bugs mailing list