lldb11 - invalid architecture --arch RISCV

Mitchell Horne mhorne at freebsd.org
Tue Feb 2 14:21:50 UTC 2021


On Sun, Jan 31, 2021 at 5:53 PM Rich Dunkle <rdunkle at smallcatbrain.com> wrote:
>
> 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.
>

Do you happen to know if this works on riscv64 linux? I loosely follow
RISC-V development in LLVM, and it is my impression that LLDB is still
quite immature on the architecture. If it is a FreeBSD-specific issue,
then we can get it fixed.

Cheers,
Mitchell

>
> _______________________________________________
> freebsd-riscv at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-riscv
> To unsubscribe, send any mail to "freebsd-riscv-unsubscribe at freebsd.org"


More information about the freebsd-riscv mailing list