-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/cgo: Linux arm support #1880
Labels
Comments
Comment 2 by stephenm@golang.org: Owner changed to stephenm@golang.org. |
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. |
Owner changed to @rsc. |
Started by minux.ma: http://golang.org/cl/5601044/ Status changed to Started. |
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 |
This issue was closed by revision 2bed8a7. Status changed to Fixed. |
@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. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: