Date: Tue, 2 Feb 2021 10:21:38 -0400 From: Mitchell Horne <mhorne@freebsd.org> To: Rich Dunkle <rdunkle@smallcatbrain.com> Cc: freebsd-riscv <freebsd-riscv@freebsd.org> Subject: Re: lldb11 - invalid architecture --arch RISCV Message-ID: <CADeAsy2834SWUkn%2BpsPDwD_P3TWWdirSQ_OWyahW6-qRpF1WoA@mail.gmail.com> In-Reply-To: <77fa1aba-36ce-fe85-d274-b86076262783@smallcatbrain.com> References: <77fa1aba-36ce-fe85-d274-b86076262783@smallcatbrain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 31, 2021 at 5:53 PM Rich Dunkle <rdunkle@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@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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-riscv > To unsubscribe, send any mail to "freebsd-riscv-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADeAsy2834SWUkn%2BpsPDwD_P3TWWdirSQ_OWyahW6-qRpF1WoA>