Skip to content

cmd/go: return an error for unsupported GOOS/GOARCH pair #12272

Closed
@bradfitz

Description

@bradfitz

This bug is about cmd/go returning a useful error message when an invalid GOOS/GOARCH pair is used.

See confusion in #11908.

Related request in #12270 (if we fix this bug, we should probably fix both, using the same source of truth)

Activity

minux

minux commented on Aug 23, 2015

@minux
Member
rakyll

rakyll commented on Oct 13, 2015

@rakyll
Contributor

How about we make cmd/go print "perhaps unsupported platform?"

It won't help the users if the error message is uncertain, they will end up in the issue tracker or the mailing list to ask about the case.

Maintaining a single source of truth for the supported combinations are rather easy and explicit.

minux

minux commented on Oct 13, 2015

@minux
Member
added this to the Go1.6 milestone on Oct 23, 2015
rsc

rsc commented on Jan 14, 2016

@rsc
Contributor

Not critical for Go 1.6.

modified the milestones: Go1.7Early, Go1.6 on Jan 14, 2016
self-assigned this
on May 6, 2016
modified the milestones: Go1.7, Go1.7Early on May 6, 2016
gopherbot

gopherbot commented on May 6, 2016

@gopherbot
Contributor

CL https://golang.org/cl/22838 mentions this issue.

a13xb

a13xb commented on Jul 12, 2016

@a13xb

Funny enough, we relied on the old behaviour.

We use go tool to build for Linux/MIPS target using gccgo (which does support MIPS), and works fine with 1.6, but now it's blocked by this check.

quentinmit

quentinmit commented on Jul 12, 2016

@quentinmit
Contributor

Okay. I'll reopen the issue to take another look. @bradfitz Is this WAI or do we need to change or revert the check?

ianlancetaylor

ianlancetaylor commented on Jul 12, 2016

@ianlancetaylor
Contributor

Yes, I think we do need to fix this. We should not issue the error for -compiler=gccgo.

bradfitz

bradfitz commented on Jul 12, 2016

@bradfitz
ContributorAuthor

On it.

gopherbot

gopherbot commented on Jul 12, 2016

@gopherbot
Contributor

CL https://golang.org/cl/24864 mentions this issue.

a13xb

a13xb commented on Jul 13, 2016

@a13xb

Incredible turnaround time on this one, thanks!

locked and limited conversation to collaborators on Jul 13, 2017
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

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bradfitz@rsc@rakyll@quentinmit@minux

        Issue actions

          cmd/go: return an error for unsupported GOOS/GOARCH pair · Issue #12272 · golang/go