You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
x/sys: Commit bc7efcf introduced a compilation error #36032
/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
root@go-armhf:~# go get golang.org/x/sys/unix
# golang.org/x/sys/unix
go/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
go/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
root@go-armhf:~# go version
go version go1.13.5 linux/arm
I had the same problem, when i execute gomobile build -target=android
go version go1.13.5 darwin/amd64
gomobile is latest
gomobile log:
commit 5c0e7e404af8b014d8b7de89f9522bc92463f3cb (HEAD -> master, origin/master, origin/HEAD)
Author: Hajime Hoshi hajimehoshi@gmail.com
Date: Wed Nov 27 22:57:30 2019 +0900
Also running into this error. Getting this lately:
env CC=arm-linux-gnueabi-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=5 go build -trimpath -ldflags="-s -w -X main.commit=$COMMIT" github.com/probonopd/go-appimage/src/appimaged
# golang.org/x/sys/unix
../../../go/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
../../../go/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
$ GOOS=linux GOARCH=arm GOARM=6 go build -o build/enmon_arm
# golang.org/x/sys/unix
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191206220618-eeba5f6aabab/unix/zptrace_armnn_linux.go:45:57: cannot use uint64(unsafe.Sizeof(*regsout)) (type uint64) as type uint32 in field value
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191206220618-eeba5f6aabab/unix/zptrace_armnn_linux.go:51:54: cannot use uint64(unsafe.Sizeof(*regs)) (type uint64) as type uint32 in field value
You have to write Fixes golang/go#36032, not Fixes #36032 to get gopherbot to recognize the issue when working from a repo other than the main Go repo.
Activity
stgraber commentedon Dec 7, 2019
I was literally writing the exact same report.
stgraber commentedon Dec 7, 2019
bc7efcf is the commit modifying
zptrace_armnn_linux.goand introducing the issue.stgraber commentedon Dec 7, 2019
golang/sys@bc7efcf
ianlancetaylor commentedon Dec 7, 2019
I can't think of any approach we can use here other than generating yet another zptrace file.
happyEgg commentedon Dec 7, 2019
I had the same problem, when i execute gomobile build -target=android
go version go1.13.5 darwin/amd64
gomobile is latest
gomobile log:
commit 5c0e7e404af8b014d8b7de89f9522bc92463f3cb (HEAD -> master, origin/master, origin/HEAD)
Author: Hajime Hoshi hajimehoshi@gmail.com
Date: Wed Nov 27 22:57:30 2019 +0900
probonopd commentedon Dec 7, 2019
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?
https://go-review.googlesource.com/c/sys/+/204418
[-]x/sys: Commit eeba5f6 introduced a compilation error[/-][+]x/sys: Commit bc7efcf introduced a compilation error[/+]MarcelEeken commentedon Dec 7, 2019
Also just ran into this issue
What version of Go are you using (
go version)?What operating system and processor architecture are you using (
go env)?go envOutputWhat did you do?
Trying to cross compile for ARM target
ianlancetaylor commentedon Dec 7, 2019
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.
erifan commentedon Dec 9, 2019
Sorry for the trouble. I'll fix it as soon as possible.
bus710 commentedon Dec 9, 2019
A band-aid for beginners like me, pick an older version in the go.mod like this:
erifan commentedon Dec 9, 2019
I have sent out a fix (https://go-review.googlesource.com/c/sys/+/210322) but the page did not refresh.
zikaeroh commentedon Dec 9, 2019
You have to write
Fixes golang/go#36032, notFixes #36032to get gopherbot to recognize the issue when working from a repo other than the main Go repo.gopherbot commentedon Dec 9, 2019
Change https://golang.org/cl/210322 mentions this issue:
unix: move functions Ptrace{Get|Set}RegSetArm64 to a separate fileerifan commentedon Dec 9, 2019
@zikaeroh Thanks.
fangzhang-dev commentedon Dec 9, 2019
@ianlancetaylor What about redefining Iovec{} struct as IovecArm64{] struct in unix/zptrace_armnn_linux.go file?
sigkill commentedon Dec 9, 2019
Also breaking P4wnP1_aloa too...
probonopd commentedon Dec 9, 2019
What if one doesn't use modules?
bus710 commentedon Dec 9, 2019
Not sure how many of package managers out there but for Go Dep at least:
Pin the version of golang/x/sys
Pin the version of golang/x/sys
unix: move functions Ptrace{Get|Set}RegSetArm64 to a separate file