Skip to content

cmd/cgo: Linux arm support #1880

Closed
Closed

Description

@bradfitz
Linux/arm lacks cgo.

Activity

  1. davecheney commented on May 27, 2011

    @davecheney
    Contributor

    Comment 1:

    I would be delighted to help with this issue.
  2. gopherbot commented on Jun 2, 2011

    @gopherbot
    Contributor

    Comment 2 by stephenm@golang.org:

    Owner changed to stephenm@golang.org.

  3. mattetti commented on Jun 5, 2011

    @mattetti
    Contributor

    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
  4. adg commented on Jun 6, 2011

    @adg
    Contributor

    Comment 4:

    Status changed to Accepted.

  5. davecheney commented on Jun 7, 2011

    @davecheney
    Contributor

    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.
  6. rsc commented on Jul 25, 2011

    @rsc
    Contributor

    Comment 6:

    Status changed to HelpWanted.

  7. rsc commented on Oct 6, 2011

    @rsc
    Contributor

    Comment 7:

    Owner changed to @rsc.

  8. rsc commented on Dec 9, 2011

    @rsc
    Contributor

    Comment 9:

    Labels changed: added priority-later.

  9. minux commented on Jan 23, 2012

    @minux
    Member

    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.
  10. davecheney commented on Jan 23, 2012

    @davecheney
    Contributor

    Comment 11:

    Please let me know when you have a CL available. I'd be overjoyed to test this.
  11. rsc commented on Jan 30, 2012

    @rsc
    Contributor

    Comment 13:

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

    Status changed to Started.

  12. gopherbot commented on Apr 8, 2012

    @gopherbot
    Contributor

    Comment 14 by duzy.chan:

    expecting it to be solved
  13. minux commented on Apr 8, 2012

    @minux
    Member

    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
  14. minux commented on May 4, 2012

    @minux
    Member

    Comment 16:

    This issue was closed by revision 2bed8a7.

    Status changed to Fixed.

  15. gopherbot commented on Oct 23, 2012

    @gopherbot
    Contributor

    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.
  16. davecheney commented on Oct 23, 2012

    @davecheney
    Contributor

    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.
  17. locked and limited conversation to collaborators on Jun 24, 2016
  18. removed their assignment
    on Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions