-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Zig 0.9.1 - build error on riscv64 #12432
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
Comments
please include contents of |
No longer have access to the temporary files after crashing the board. /home/sipeed/.cache/zig/o/3a99b9ec4fd42048e073efa3a1e2d4d2/main: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
$> file /lib/libc.so.6
/lib/libc.so.6: ELF 64-bit LSB shared object, UCB RISC-V, RVC, double-float ABI, version 1 (GNU/Linux), dynamically linked, interpreter /usr/lib/ld-linux-riscv64-lp64d.so.1, BuildID[sha1]=205dbd70ceebe8d2813f19dfa3560423184189b8, for GNU/Linux 4.15.0, stripped
$> ldd --version
ldd (GNU libc) 2.36
Copyright (C) 2022 Free Software Foundation, Inc. but works with musl! And without linking the glibc it worked. Note: Building any application on this board is a fairly exhaustive. Eternal loading... --- edit When it comes to build time the improvement a little faster with |
I will close this topic! Because regardless of the toolchain there must have been some instability of the device that caused some problem during compilation. |
I'm testing on the single board D1 Nezha.
OS: Archlinux
Arch: rv64imacdfvx
Zig version: 0.9.1 (Unfortunately there is no master for riscv)
Code
Output
The text was updated successfully, but these errors were encountered: