opencontainers / image-tools

OCI Image Tooling
https://opencontainers.org
Apache License 2.0
266 stars 83 forks source link

compile failed for riscv64 #237

Open sandy-lcq opened 11 months ago

sandy-lcq commented 11 months ago

Hi,

I compiled image-tools in yocto project. It is cross-compiling, and it always failed for riscv64 arch, other arch works well. Here is the whole log: compile_failed.log

Maybe the failure is caused by following errors in the log:

# github.com/opencontainers/image-tools/vendor/golang.org/x/sys/unix
vendor/golang.org/x/sys/unix/sockcmsg_unix.go:43:9: undefined: Cmsghdr
vendor/golang.org/x/sys/unix/syscall_linux.go:423:11: undefined: RawSockaddrLinklayer
vendor/golang.org/x/sys/unix/syscall_linux.go:447:9: undefined: RawSockaddrNetlink
vendor/golang.org/x/sys/unix/syscall_linux.go:461:10: undefined: RawSockaddrHCI
vendor/golang.org/x/sys/unix/syscall_linux.go:492:10: undefined: RawSockaddrCAN
vendor/golang.org/x/sys/unix/syscall_linux.go:580:10: undefined: RawSockaddrALG
vendor/golang.org/x/sys/unix/syscall_linux.go:622:7: undefined: RawSockaddrVM
vendor/golang.org/x/sys/unix/syscall_unix.go:142:38: undefined: _Socklen
vendor/golang.org/x/sys/unix/syscall_unix.go:148:7: undefined: RawSockaddrInet4
vendor/golang.org/x/sys/unix/syscall_unix.go:155:9: undefined: RawSockaddrInet6
vendor/golang.org/x/sys/unix/syscall_unix.go:155:9: too many errors

Is riscv64 supported now? I see there are files named like ztypes_linux_arm64.go, but no riscv64 ones for these files. Maybe it is not supported? Any plan to support it in the future?