Skip to content
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

compile failed for riscv64 #237

Open
sandy-lcq opened this issue Sep 15, 2023 · 0 comments
Open

compile failed for riscv64 #237

sandy-lcq opened this issue Sep 15, 2023 · 0 comments

Comments

@sandy-lcq
Copy link

sandy-lcq commented Sep 15, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant