-
Notifications
You must be signed in to change notification settings - Fork 18k
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
syscall: cannot use s.Rdev (type uint32) as type uint64 in field value on mips #16500
Comments
Weird. @cherrymui, how did you generate that file? |
The kernel's layout is (e.g. https://github.com/torvalds/linux/blob/master/arch/mips/include/uapi/asm/stat.h#L92)
So I believe uint32 is correct. Go invokes syscalls directly to the kernel, so we should use kernel's layout instead of libc's. |
@cherrymui , thx, I see. |
@ka1em How did you fix the problem at last? Now I am building kubernetes os mips64el/Fedora 21 and getting the same error shown as follows. Any suggestions for me? Many thanks.
Platform info:
|
What version of Go are you using (
go version
)?go1.7.rc2
What operating system and processor architecture are you using (
go env
)?[root@localhost ~]# go env
GOARCH="mips64le"
GOBIN=""
GOEXE=""
GOHOSTARCH="mips64le"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/lib/golang"
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_mips64le"
CC="gcc"
GOGCCFLAGS="-fPIC -mabi=64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build685506292=/tmp/go-build"
CXX="g++"
CGO_ENABLED="1"
What did you do?
My PC is a mips64le pc. When I compile the docker, I encountered a problem:
this is the error message:
docker/pkg/system/stat_linux.go:13: cannot use s.Rdev (type uint32) as type uint64 in field value
3.1 In go/src/syscall/syscall_linux_mips64x.go, I see that
3.2 On my pc RUN: man 2 stat, I see that
3.3 Then I wrote a test program.
The text was updated successfully, but these errors were encountered: