Open soant opened 3 weeks ago
We have some instructions you can follow at https://iree.dev/building-from-source/riscv/ and https://iree.dev/guides/deployment-configurations/bare-metal/.
For your step 3, I see a few areas to debug:
clang
, but gcc
flags are being passed. The "The C compiler is not able to compile a simple test program." is a generic setup error message from the build system, before getting to anything IREE-specific
What happened?
Step 1:
I compiled the RISCV-GNU-TOOLCHAIN for riscv64-unknown-linux-gnu-gcc:
Step 2:
Build the LLVM for RISCV target using command:
and compiled clang shows:
test test.c file using above compiled compiler with no problem:
Step 3:
Trying to compile the IREE using above compiler for RISCV host tools:
generate error:
crt0.o only generated for riscv64-unknown-elf type, I build for riscv64-unknown-linux-gnu, how does this happen?