Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Unable to specify $GOARM #48

Open
honza opened this issue Nov 4, 2015 · 2 comments
Open

Unable to specify $GOARM #48

honza opened this issue Nov 4, 2015 · 2 comments

Comments

@honza
Copy link

honza commented Nov 4, 2015

This means that gox can't compile binaries for raspberry pi. The pi needs

GOOS=linux GOARCH=arm GOARM=6

It would be awesome if you could say gox -osarch="linux/arm/6" or something similar.

@danesparza
Copy link

I can confirm that I get automatic cross compiles for linux arm. This list of releases was automatically built by gox. The command I used is visible here -- I'm just setting a custom output path, that's it.

I have even verified this works just fine on a raspberry pi running raspbian.

Let me know if I'm verifying the wrong thing. 😄

@mattfarina
Copy link
Collaborator

@danesparza The ARMv5 architecture is different from the ARMv6 architecture. If you use

$ GOOS=linux GOARCH=arm GOARM=6 go build

You'll get a different binary from

$ GOOS=linux GOARCH=arm GOARM=5 go build

In your list I can't tell which architecture it's for. Have you tried running your builds on different arm systems? Looking at your list of builds I can't tell which architecture your arm build is for.

If you're not sure what I mean see the docs at https://github.com/golang/go/wiki/GoArm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants