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

Comments

@bradfitz
Copy link
Member

commented May 25, 2011

Linux/arm lacks cgo.
@davecheney

This comment has been minimized.

Copy link
Contributor

commented May 27, 2011

Comment 1:

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

This comment has been minimized.

Copy link

commented Jun 2, 2011

Comment 2 by stephenm@golang.org:

Owner changed to stephenm@golang.org.

@mattetti

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

commented Jun 6, 2011

Comment 4:

Status changed to Accepted.

@davecheney

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

commented Jul 25, 2011

Comment 6:

Status changed to HelpWanted.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Oct 6, 2011

Comment 7:

Owner changed to @rsc.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Dec 9, 2011

Comment 9:

Labels changed: added priority-later.

@minux

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Contributor

commented Jan 23, 2012

Comment 11:

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

This comment has been minimized.

Copy link
Contributor

commented Jan 30, 2012

Comment 13:

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

Status changed to Started.

@gopherbot

This comment has been minimized.

Copy link

commented Apr 8, 2012

Comment 14 by duzy.chan:

expecting it to be solved
@minux

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Member

commented May 4, 2012

Comment 16:

This issue was closed by revision 2bed8a7.

Status changed to Fixed.

@gopherbot

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Contributor

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
7 participants
You can’t perform that action at this time.