Hi, I’m having a bit of an issue with ABI target emulation. When I try to build my project, I ended up getting this error message below.
riscv64-unknown-elf-gcc: error: elf32lriscv: No such file or directory
riscv64-unknown-elf-gcc: error: elf32-littleriscv: No such file or directory
riscv64-unknown-elf-gcc: error: unrecognized command line option ‘-m’
riscv64-unknown-elf-gcc: error: unrecognized command line option ‘-EL’; did you mean ‘-E’?
riscv64-unknown-elf-gcc: error: unrecognized command line option ‘-b’
riscv64-unknown-elf-gcc: error: unrecognized command line option ‘–check-sections’; did you mean ‘–data-sections’?
riscv64-unknown-elf-gcc: error: unrecognized command line option ‘–wrap=printf’; did you mean ‘–cray-pointer’?
make: *** [makefile:44: demo.elf] Error 1
the code in “Other linker flags” part of wsFreedomStudio:
-t -nostdinc --entry _start -m elf32lriscv -EL -b elf32-littleriscv --check-sections --wrap=printf -t
Please let me know if you need to know anything else.
Thank you so much for your help in advance.