You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It Iooks like currently when building on arm the -m32 flag is passed to gcc and it is
not supported.
Googling for this issue I found this blog post covering the gco/arm issue:
http://river.styx.org/ww/2011/03/godroid
I've started to address this in http://golang.org/cl/4528124/. CGO doesn't work
at this point, but at least it doesn't blow up passing the wrong -m flags.
I'm currently working on this issue.
Progress:
* I've got 5l to link the first non-trivial dynamic linking Linux/ARM ELF.
* All cgo related runtime function implemented but not tested.
I hope it will be resolved soon.
FYI, I've prepared these 5 CLs to address this issue.
CL 5991065: cmd/5l, cmd/ld: dynamic linking library support
CL 5989057: runtime: cgo support for Linux/ARM
CL 5991066: cmd/cgo: support Linux/ARM
CL 5989058: cmd/go: cgo for Linux/ARM
CL 5988057: go/build: cgo is supported on Linux/ARM
I meet this problem too,when compile go for arm,there are some problem
eg:# runtime/cgo
cc1: error: unrecognized command line option '-marm'
when compiling finished,cgo.a for arm not creat.
@hunterling5151. This issue is closed, please raise a new issue.
Having said that, I believe you are cross compiling from non arm to arm, and your gcc is
complaining because it only known hows to compile for x86/x64. The short answer to this
is, when cross compiling for arm, pass CGO_ENABLED=0 to disable cgo. If you need cgo on
arm, you will have to compile on arm directly.
Activity
davecheney commentedon May 27, 2011
Comment 1:
gopherbot commentedon Jun 2, 2011
Comment 2 by stephenm@golang.org:
Owner changed to stephenm@golang.org.
mattetti commentedon Jun 5, 2011
Comment 3:
adg commentedon Jun 6, 2011
Comment 4:
Status changed to Accepted.
davecheney commentedon Jun 7, 2011
Comment 5:
rsc commentedon Jul 25, 2011
Comment 6:
Status changed to HelpWanted.
rsc commentedon Oct 6, 2011
Comment 7:
Owner changed to @rsc.
rsc commentedon Dec 9, 2011
Comment 9:
Labels changed: added priority-later.
minux commentedon Jan 23, 2012
Comment 10:
davecheney commentedon Jan 23, 2012
Comment 11:
rsc commentedon Jan 30, 2012
Comment 13:
Status changed to Started.
gopherbot commentedon Apr 8, 2012
Comment 14 by duzy.chan:
minux commentedon Apr 8, 2012
Comment 15:
minux commentedon May 4, 2012
Comment 16:
This issue was closed by revision 2bed8a7.
Status changed to Fixed.
gopherbot commentedon Oct 23, 2012
Comment 17 by hunterling5151:
davecheney commentedon Oct 23, 2012
Comment 18: