(original) (raw)
Upstream LLVM does not yet have support for rv64.
There is support for rv64 in the patches at https://github.com/lowRISC/riscv-llvm but if you follow the instructions there you'll be missing six months of other important and useful improvements to RISC-V LLVM.
On Thu, Sep 20, 2018 at 6:06 PM, David Jones via llvm-dev <llvm-dev@lists.llvm.org> wrote:
I am trying to retarget my application to a Risc-V 64-bit core.I downloaded LLVM 7.0.0 release today, and built LLVM+Clang for both x86\_64 and Risc-V.Alas, I have hit a snag: given a simple test program:extern int foo;
int \*getfoo() { return &foo; }I try to compile:/tools/llvm/7.0.0dbg/bin/clang test.c -c -o test.o --target=riscv64-unknown-elfand I get:fatal error: error in backend: Unable to lowerGlobalAddress
clang-7: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 7.0.0 (tags/RELEASE\_700/final)
Target: riscv64-unknown--elf
Thread model: posixIs the 64-bit Risc-V target stable? Or do I require a specific set of flags (e.g. relocation model)?
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
LLVM Developers mailing list
llvm-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev