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: go1.4 tool breaks compatibility with gcc 4.9 #9062

Closed
natefinch opened this issue Nov 5, 2014 · 3 comments
Closed

cmd/go: go1.4 tool breaks compatibility with gcc 4.9 #9062

natefinch opened this issue Nov 5, 2014 · 3 comments

Comments

@natefinch
Copy link
Contributor

With go 1.4 beta installed, and gccgo 4.9.1, if I run go test -compiler gccgo in any
package, I get output like this:

~/src/github.com/juju/juju/agent$ go test -compiler gccgo
# testmain
/tmp/go-build989918663/github.com/juju/juju/agent/_test/_testmain.go:52:15: error:
reference to undefined identifier ‘testing.MainStart’
  m := testing.MainStart(matchString, tests, benchmarks, examples)
               ^
FAIL    github.com/juju/juju/agent [build failed]
@minux
Copy link
Member

minux commented Nov 5, 2014

Comment 1:

go tool in 1.4 is supposed to work with Go 1.4, gcc 4.9.x is not 1.4 compatible. Use go
tool from 1.3 to work with gccgo 4.9.

Status changed to WorkingAsIntended.

@natefinch
Copy link
Contributor Author

Comment 2:

This should be prominently declared on the website somewhere. Right now it's not
mentioned at all, and is a big departure from the way the previous go tool/gccgo
interactions worked (where the go tool was basically backwards compatible).  Plus, when
you try this combination (which, btw, is the only possible combination right now w/
1.4), the errors that you get are really really obscure (missing a function signature
during tests).  If go 1.4 does not support gccgo 4.9, there should be a better error
message about the incompatibility when you try it.

@gopherbot
Copy link

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

@mikioh mikioh changed the title 1.4 go tool breaks compatibility with gcc 4.9 cmd/go: go1.4 tool breaks compatibility with gcc 4.9 May 8, 2015
gopherbot pushed a commit to golang/blog that referenced this issue Jun 30, 2015
This change complements change golang/go#9062 (because godoc and
the blog share a style sheet) and makes the blog responsive for
mobile.

Change-Id: Ibcd415034c067a6ebc4489dc8b5f32ec9c1a38d6
Reviewed-on: https://go-review.googlesource.com/9063
Reviewed-by: Chris Broadfoot <cbro@golang.org>
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
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