-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: panic on go get golang.org/x/sys/unix with go 1.9.x #25561
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
Can reproduce this here with go 1.9.6. I assume this requires a backport of https://golang.org/cl/80759 to the 1.9 branch? |
FWIW the culprit in type Nfgenmsg = struct {
Nfgen_family uint8
Version uint8
Res_id uint16
} from https://github.com/golang/sys/blob/31355384c89b50e6faeffdb36f64a77a8210188e/unix/ztypes_linux_amd64.go#L1405-L1409, introduced by https://golang.org/cl/114518 |
got the same problem with go1.9.3 linux/amd64
|
Getting this as well with 1.9.4. The package should be reverted or modified to work with 1.8/1.9 if there is no good reason for this (until 1.9 gets a fix). Otherwise we (users) are basically forced to wait for a new 1.9 release or update to 1.10. Did I understand that correctly? I'm going to update now, cant wait for this if build bots can't build any projects with this package imported. |
@jonnenauha yes, as mentioned in #25563 the issue in |
Change https://golang.org/cl/114596 mentions this issue: |
CL 114518 introduced Nfgenmsg as a type alias which breaks the build on Go <= 1.9. Fix it by making Nfgenmsg a type like all others in x/sys/unix Updates golang/go#25561 Fixes golang/go#25563 Change-Id: I9950be857e34e7e3ca79c71fced9663a0cac9b63 Reviewed-on: https://go-review.googlesource.com/114596 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Got the same problem with 1.9.2. Upgraded to 1.10.2, now everything works fine. |
Change https://golang.org/cl/118475 mentions this issue: |
Closed by merging 1746cff to release-branch.go1.9. |
For "type T = U" we were accidentally emitting a #define for "U__size" instead of "T__size". Updates #22877. Fixes #25561. Change-Id: I5ed6757d697753ed6d944077c16150759f6e1285 Reviewed-on: https://go-review.googlesource.com/80759 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> (cherry picked from commit 2f588ff) Reviewed-on: https://go-review.googlesource.com/118475 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
What version of Go are you using (
go version
)?go version go1.9 linux/amd64
Does this issue reproduce with the latest release?
No, it works fine with go1.10.
What operating system and processor architecture are you using (
go env
)?What did you do?
I cloned github.com/cozy/cozy-stack and run
go get -t -v ./...
from here.What did you expect to see?
A success: all dependencies are installed
What did you see instead?
This issue was reproduced on our servers and on our CI (travis). For travis, the log is available: https://travis-ci.org/cozy/cozy-stack/jobs/383555937#L466
The text was updated successfully, but these errors were encountered: