When building llvm for riscv64-unknown-linux-gnu target, I get this error:
Building ASM object projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-riscv64.dir/riscv/save.S.o FAILED: projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-riscv64.dir/riscv/save.S.o
/share/pkg.7/gcc/9.3.0/install/bin/gcc -DVISIBILITY_HIDDEN -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/compiler-rt/lib/builtins -I/riscv/riscv-llvm/compiler-rt/lib/builtins -Iinclude -I/riscv/riscv-llvm/llvm/include -fPIC -O3 -DNDEBUG -fno-lto -std=c11 -MD -MT projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-riscv64.dir/riscv/save.S.o -MF projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-riscv64.dir/riscv/save.S.o.d -o projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-riscv64.dir/riscv/save.S.o -c /riscv/riscv-llvm/compiler-rt/lib/builtins/riscv/save.S
…riscv-llvm/compiler-rt/lib/builtins/riscv/save.S:183:3: error: #error "xlen must be 32 or 64 for save-restore implementation
183 | # error "xlen must be 32 or 64 for save-restore implementation
| ^~~~~
Here is the config I'm using:
Any idea what other config options I need to use to fix the issue?
Thank you!--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/ed01605a-77d7-4170-a5e4-870f169eb376n%40groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/4128ea30-74d6-4a6b-9230-a3e42b1525ddn%40groups.riscv.org.