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/go: support all valid GOOS/GOARCH combinations on all host platforms #24624

Closed
mcandre opened this issue Apr 1, 2018 · 2 comments
Closed
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@mcandre
Copy link

mcandre commented Apr 1, 2018

Why are DragonflyBSD, NaCl, Android, Arm, and plan9 Go targets unavailable from macOS hosts?

What version of Go are you using (go version)?

go version go1.10 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/andrew/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/andrew/.gvm/pkgsets/go1.10/global"
GORACE=""
GOROOT="/Users/andrew/.gvm/gos/go1.10"
GOTMPDIR=""
GOTOOLDIR="/Users/andrew/.gvm/gos/go1.10/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/53/300vy1ys7tv8h8fr_z3tm8gr0000gn/T/go-build205108332=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Built my app with gox defaults, expecting all target tuples known to Go to build.

What did you expect to see?

Binaries produced for plan9, ARM, NaCl, and DragonflyBSD, in addition to the usual targets.

What did you see instead?

$ gox -osarch-list
Supported OS/Arch combinations for go1.10 are shown below. The "default"
boolean means that if you don't specify an OS/Arch, it will be
included by default. If it isn't a default OS/Arch, you must explicitly
specify that OS/Arch combo for Gox to use it.

darwin/386	(default: true)
darwin/amd64	(default: true)
linux/386	(default: true)
linux/amd64	(default: true)
linux/arm	(default: true)
freebsd/386	(default: true)
freebsd/amd64	(default: true)
openbsd/386	(default: true)
openbsd/amd64	(default: true)
windows/386	(default: true)
windows/amd64	(default: true)
freebsd/arm	(default: true)
netbsd/386	(default: true)
netbsd/amd64	(default: true)
netbsd/arm	(default: true)
plan9/386	(default: false)
dragonfly/386	(default: false)
dragonfly/amd64	(default: false)
nacl/amd64	(default: false)
nacl/amd64p32	(default: false)
nacl/arm	(default: false)
solaris/amd64	(default: false)
android/arm	(default: false)
plan9/amd64	(default: false)
darwin/arm	(default: false)
darwin/arm64	(default: false)
linux/arm64	(default: false)
linux/ppc64	(default: false)
linux/ppc64le	(default: false)
linux/s390x	(default: true)
plan9/arm	(default: false)
android/386	(default: false)
linux/mips64	(default: true)
linux/mips64le	(default: true)
linux/mips	(default: true)
linux/mipsle	(default: true)
@mvdan
Copy link
Member

mvdan commented Apr 1, 2018

The targets being available and them being enabled in gox by default are different things. Are you positive this is a bug in Go? Have you tried manually building with any of those targets?

@mvdan mvdan added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Apr 1, 2018
@bcmills bcmills changed the title Make full GOOS/GOARCH list available to all Go platforms cmd/go: support all valid GOOS/GOARCH combinations on all host platforms Apr 2, 2018
@ianlancetaylor
Copy link
Contributor

Timed out.

@golang golang locked and limited conversation to collaborators Apr 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants