Skip to content
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

Closed
bradfitz opened this issue May 25, 2011 · 16 comments
Closed

cmd/cgo: Linux arm support #1880

bradfitz opened this issue May 25, 2011 · 16 comments
Assignees

Comments

@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented May 25, 2011

Linux/arm lacks cgo.
@davecheney
Copy link
Contributor

@davecheney davecheney commented May 27, 2011

Comment 1:

I would be delighted to help with this issue.
@gopherbot
Copy link

@gopherbot gopherbot commented Jun 2, 2011

Comment 2 by stephenm@golang.org:

Owner changed to stephenm@golang.org.

@mattetti
Copy link
Contributor

@mattetti mattetti commented Jun 5, 2011

Comment 3:

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
@adg
Copy link
Contributor

@adg adg commented Jun 6, 2011

Comment 4:

Status changed to Accepted.

@davecheney
Copy link
Contributor

@davecheney davecheney commented Jun 7, 2011

Comment 5:

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.
@rsc
Copy link
Contributor

@rsc rsc commented Jul 25, 2011

Comment 6:

Status changed to HelpWanted.

@rsc
Copy link
Contributor

@rsc rsc commented Oct 6, 2011

Comment 7:

Owner changed to @rsc.

@rsc
Copy link
Contributor

@rsc rsc commented Dec 9, 2011

Comment 9:

Labels changed: added priority-later.

@minux
Copy link
Member

@minux minux commented Jan 23, 2012

Comment 10:

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.
@davecheney
Copy link
Contributor

@davecheney davecheney commented Jan 23, 2012

Comment 11:

Please let me know when you have a CL available. I'd be overjoyed to test this.
@rsc
Copy link
Contributor

@rsc rsc commented Jan 30, 2012

Comment 13:

Started by minux.ma:  http://golang.org/cl/5601044/

Status changed to Started.

@gopherbot
Copy link

@gopherbot gopherbot commented Apr 8, 2012

Comment 14 by duzy.chan:

expecting it to be solved
@minux
Copy link
Member

@minux minux commented Apr 8, 2012

Comment 15:

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
@minux
Copy link
Member

@minux minux commented May 4, 2012

Comment 16:

This issue was closed by revision 2bed8a7.

Status changed to Fixed.

@gopherbot
Copy link

@gopherbot gopherbot commented Oct 23, 2012

Comment 17 by hunterling5151:

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.
@davecheney
Copy link
Contributor

@davecheney davecheney commented Oct 23, 2012

Comment 18:

@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.
@bradfitz bradfitz added fixed labels Oct 23, 2012
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.