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

Unsupported GOOS/GOARCH pair linux/arm on windows #24501

Closed
lunny opened this issue Mar 23, 2018 · 3 comments
Closed

Unsupported GOOS/GOARCH pair linux/arm on windows #24501

lunny opened this issue Mar 23, 2018 · 3 comments

Comments

@lunny
Copy link

lunny commented Mar 23, 2018

Please answer these questions before submitting your issue. Thanks!

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

go1.10

Does this issue reproduce with the latest release?

yes

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

windows amd64

What did you do?

cross compile raspberry pi on windows 10 / amd64

set GOOS=linux
set GOARCH=arm
set GOARM=7
set CGO_ENABLED=0
go build

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

What did you expect to see?

compile successfully

What did you see instead?

show Unsupported GOOS/GOARCH pair linux/arm on windows

@ianlancetaylor
Copy link
Contributor

I don't see that message anywhere in the Go sources. Are you certain that that is the exact output of go build? What is the output of go build -x? Thanks.

@lunny
Copy link
Author

lunny commented Mar 23, 2018

@ianlancetaylor I think it should be at

fmt.Fprintf(os.Stderr, "cmd/go: unsupported GOOS/GOARCH pair %s/%s\n", cfg.Goos, cfg.Goarch)

@lunny
Copy link
Author

lunny commented Mar 23, 2018

@ianlancetaylor found the reason. maybe I set GOOS=linux it should be set GOOS=linux not with blank charactor. But maybe the compile should trim the space automatically? Thanks anyway.

@lunny lunny closed this as completed Mar 23, 2018
@golang golang locked and limited conversation to collaborators Mar 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants