I need to compile docker which depends on golang/sys, but there is an argument s.Rdev that comes from golang/sys I must force converse it to uint64 otherwise the compilation can’t go on.
error information: “cannot use s.Rdev (type uint32) as type uint64 in field value”
I have read the part source code of golang/sys, found that argument defined as type uint32 in mips arch but uint64 in others. my machine is based on mips64 arch, so I want to know why it implemented as uint32 in mips.
Thanks for your reply, this is the output on mips64:
[root@node001 git]# gcc --version
gcc (GCC) 7.3.1 20180303 (Loongson 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@node001 git]# gcc dev.c -o dev && ./dev
8
8
8