-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/vet/all: build failures affecting misc-vet-vetall #30971
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
Comments
The problem seems to be related with https://go-review.googlesource.com/c/go/+/168458 |
Sorry, I cannot reproduce this issue. On a newly built
Are you positive you're on a clean clone? Also, |
Sorry for late reply. After running go version devel +4906a00cdd Fri Mar 22 09:07:09 2019 +0000 linux/arm64 cmd/vet/allgo run main.go -p linux/arm64 go version devel +4906a00cdd Fri Mar 22 09:07:09 2019 +0000 linux/amd64 cmd/vet/allgo: finding golang.org/x/tools/go/analysis/cmd/vet latest Do you export GO_BUILDER_NAME=*-vetall ? |
Can you try that exact command? Also /cc @bcmills, since he rewrote |
Yeah, @bcmills
linux/arm64 |
Hmm, this trybot run ran into the same |
All trybot runs are failing now because of this, so I'm pinning the issue to ensure others find it. |
The error itself doesn't make much sense to me; these methods have existed for many Go releases.
Even if the build was somehow happening with the Go 1.4 bootstrap version, we wouldn't be seeing the gzip error. |
The cause is a bug in https://golang.org/cl/168404. I added a comment to the CL. CC @matloob |
Nice find! Seeing as the fix is trivial, we should probably push it to master as soon as possible, to get the trybots green again. We can always add a test later. |
I'm going to give myself 10 minutes to write a test. |
Change https://golang.org/cl/168803 mentions this issue: |
Change https://golang.org/cl/168804 mentions this issue: |
Updates golang/go#30971 Change-Id: I7c9250c46fede553689cdc5007b6f330a006b867 Reviewed-on: https://go-review.googlesource.com/c/tools/+/168804 Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
I'm still seeing this failure on CL 168404, which I rebased a few minutes ago. The log is here.
|
That's the original failure, though. It should be fixed if vet/all is really using the latest x/tools. |
I'm seeing this failure, or a failure similar to this one, on latest tip commit on https://build.golang.org/ from CL 168697 that was submitted 15 minutes ago: https://build.golang.org/log/62231cd4bf3fcb3d2c5a2e425240a31ad258b79c Also in a CL to release-branch.go1.12 that I rebased today (CL 168958). It looks identical to what @jayconrod posted above in #30971 (comment). |
I can't reproduce this locally so far; |
Plan:
/cc @josharian |
Change https://golang.org/cl/169197 mentions this issue: |
Change https://golang.org/cl/169198 mentions this issue: |
Note that I think part of the problem is that |
Change https://golang.org/cl/169217 mentions this issue: |
Change https://golang.org/cl/169239 mentions this issue: |
Updates #30971 Updates #31040 Change-Id: I305fbddb6f79cbe3d7e29225841309ab00b1e7dd Reviewed-on: https://go-review.googlesource.com/c/go/+/169239 Run-TryBot: Brad Fitzpatrick <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
See plan at golang/go#30971 (comment) Updates golang/go#31040 Change-Id: I160d671670094c3ab4f9d7ba825235a865ad3376 Reviewed-on: https://go-review.googlesource.com/c/build/+/169198 Reviewed-by: Dmitri Shuralyov <[email protected]>
What version of Go are you using (
go version
)?go version devel +0fe1986a72 Thu Mar 21 01:35:21 2019 +0000 linux/arm64
Does this issue reproduce with the latest release?
no
What operating system and processor architecture are you using (
go env
)?GOARCH="arm64"
GOBIN=""
GOCACHE="/home//.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home//go"
GOPROXY=""
GORACE=""
GOROOT="/home//go-master"
GOTMPDIR=""
GOTOOLDIR="/home//go-master/pkg/tool/linux_arm64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home//go-master/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build580593418=/tmp/go-build -gno-record-gcc-switches"
The problem also occurs on amd64.
What did you do?
GO_BUILDER_NAME=*-vetall ../bin/go tool dist test -run arm64$
What did you expect to see?
Testing packages.
ok cmd/internal/obj/arm64 0.056s
ALL TESTS PASSED (some were excluded)
What did you see instead?
cmd/vet/all
go run main.go -p darwin/arm64
encoding/xml/marshal.go:104: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error
encoding/xml/read.go:175: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
encoding/xml/marshal_test.go:317: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error
encoding/xml/read_test.go:630: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
encoding/xml/xml_test.go:887: method UnmarshalXML(*xml.Decoder, xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
exit status 1
2019/03/21 06:14:58 Failed: exit status 1
go run main.go -p android/arm64
encoding/xml/marshal.go:104: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error
encoding/xml/read.go:175: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
encoding/xml/marshal_test.go:317: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error
encoding/xml/read_test.go:630: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
encoding/xml/xml_test.go:887: method UnmarshalXML(*xml.Decoder, xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
exit status 1
2019/03/21 06:14:59 Failed: exit status 1
go run main.go -p linux/arm64
encoding/xml/marshal.go:104: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error
encoding/xml/read.go:175: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
encoding/xml/marshal_test.go:317: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error
encoding/xml/read_test.go:630: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
encoding/xml/xml_test.go:887: method UnmarshalXML(*xml.Decoder, xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
exit status 1
2019/03/21 06:14:59 Failed: exit status 1
2019/03/21 06:15:00 FAILED
The text was updated successfully, but these errors were encountered: