-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/sys: Commit bc7efcf introduced a compilation error #36032
Comments
I was literally writing the exact same report.
|
bc7efcf is the commit modifying |
I can't think of any approach we can use here other than generating yet another zptrace file. |
I had the same problem, when i execute gomobile build -target=android |
Also running into this error. Getting this lately:
https://travis-ci.com/probonopd/go-appimage/jobs/264315306#L297-L300 It the bug related to this change? |
Also just ran into this issue What version of Go are you using (
|
No need to keep reporting the problem. https://golang.org/wiki/NoPlusOne. Thanks. We know there is a problem and we will either roll back the change or add a fix. |
Sorry for the trouble. I'll fix it as soon as possible. |
A band-aid for beginners like me, pick an older version in the go.mod like this:
|
I have sent out a fix (https://go-review.googlesource.com/c/sys/+/210322) but the page did not refresh. |
You have to write |
Change https://golang.org/cl/210322 mentions this issue: |
@zikaeroh Thanks. |
@ianlancetaylor What about redefining Iovec{} struct as IovecArm64{] struct in unix/zptrace_armnn_linux.go file? |
Also breaking P4wnP1_aloa too... |
What if one doesn't use modules? |
Not sure how many of package managers out there but for Go Dep at least:
|
**What** - Pin the version of golang/x/sys It introduced a bug in arm builds, see golang/go#36032. This is needed by docker. Per this ory/dockertest#208 (comment) we can pin golang/x/sys to f9321e4c35a6 for a proper build Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
**What** - Pin the version of golang/x/sys It introduced a bug in arm builds, see golang/go#36032. This is needed by docker. Per this ory/dockertest#208 (comment) we can pin golang/x/sys to f9321e4c35a6 for a proper build Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Not sure
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go build on any binary
What did you expect to see?
Compilation
What did you see instead?
golang.org/x/sys/unix
/home/simon/code/src/golang.org/x/sys/unix/zptrace_armnn_linux.go:45:57: cannot use uint64(unsafe.Sizeof(*regsout)) (type uint64) as type uint32 in field value
/home/simon/code/src/golang.org/x/sys/unix/zptrace_armnn_linux.go:51:54: cannot use uint64(unsafe.Sizeof(*regs)) (type uint64) as type uint32 in field value
The text was updated successfully, but these errors were encountered: