lldb11 - invalid architecture --arch RISCV

Rich Dunkle rdunkle at smallcatbrain.com
Sun Jan 31 10:44:34 UTC 2021


I compiled llvm11 on Poudriere using Qemu static.
llvm11 options
BE_NATIVE Backend(s) for this architecture (RISCV)
OPTIONS_FILE_SET+=BE_NATIVE

I am running:
13.0-CURRENT FreeBSD 13.0-CURRENT #0 main-c255641-gf2b794e1e90: Thu Jan  
7 04:25:53 UTC 2021
root at releng1.nyi.freebsd.org:/usr/obj/usr/src/riscv.riscv64/sys/GENERIC 
riscv

$ pkg info | grep llvm
llvm11-11.0.1                  LLVM and Clang

$ clang -g -S test.c
$ clang -o test test.s

$ lldb11 test
(lldb) target create "test"
error: '/home/richd/chap2/test' doesn't contain any 'host' platform 
architectures:

$ lldb11 test --arch RISCV
error: invalid architecture in the -a or --arch option: 'RISCV'

It appears lldb11 does not recognize it's own architecture.




More information about the freebsd-riscv mailing list