Skip to content

Build failed: unsupported GOOS/GOARCH pair darwin/386 #25

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

Closed
seafarer opened this issue Sep 17, 2020 · 5 comments
Closed

Build failed: unsupported GOOS/GOARCH pair darwin/386 #25

seafarer opened this issue Sep 17, 2020 · 5 comments

Comments

@seafarer
Copy link

1 errors occurred:
--> darwin/386 error: exit status 2
Stderr: cmd/go: unsupported GOOS/GOARCH pair darwin/386

make: *** [build] Error 1

It looks like this might be the culprit: https://go-review.googlesource.com/c/tools/+/227552/

The darwin/386 port has been removed per golang.org/issue/37610.
TestSizes needs an operating system that has both amd64 and 386 ports,
so darwin no longer qualifies. NetBSD has had its 386 port restored
recently in golang/go#31726, so it can be used instead.

I got myself up and running by deleting everything in the makefile except my own os, but dont know Go well enough to submit a PR.

@joshbetz
Copy link
Contributor

@seafarer Does this latest commit fix it?

@seafarer
Copy link
Author

seafarer commented Sep 17, 2020

@joshbetz unfortunately no. Same error. I do have gox installed.

$ which gox
$ /Users/<user>/go/bin/gox

I deleted and started fresh

@joshbetz joshbetz reopened this Sep 17, 2020
@pjhoberman
Copy link

I have the same issue as @seafarer, and the same solution (removing -os="darwin" -os="windows" from the Makefile) worked for me.

@youngjuning
Copy link

@pjhoberman just remove -os="darwin"

@jblz
Copy link
Member

jblz commented Feb 24, 2021

Fixed in #28

@jblz jblz closed this as completed Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants