Linking LLDB fails with: ld: error: undefined symbol: lldb_private::process_freebsd::NativeRegisterContextFreeBSD::CreateHostNativeRegisterContextFreeBSD(lldb_private::ArchSpec const&, lldb_private::NativeThreadProtocol&) The same error affects llvm-devel. Workaround would be to disable LLDB.
It is possible that Moritz will contribute to RISC-V LLDB support in a few months. Right now, the top LLDB priorities are 1. usability improvements (which may or may not involve more GDB comparability fixes/additions) and 2. multi-process support.
I'm going to exclude the LLDB option on riscv64. For llvm13 I plan to do it along with the update to 13.0.1 which should be soon (rc2 is out and was supposed to be the final version but at least on fix has been merged to the release branch so I suspect we'll see a short rc3).
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=dba1bdc3d9dba812f2c012fe08ce59f87f8d99b4 commit dba1bdc3d9dba812f2c012fe08ce59f87f8d99b4 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2022-01-15 01:02:39 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2022-01-21 19:56:24 +0000 devel/llvm-devel: update to new snapshot Disable LLDB on riscv64, there is no support. [0] PR: 261374 [0] devel/llvm-devel/Makefile | 6 +++- devel/llvm-devel/Makefile.snapshot | 4 +-- devel/llvm-devel/distinfo | 6 ++-- devel/llvm-devel/pkg-plist | 61 +++++++++++++++++++++++++++----------- 4 files changed, 53 insertions(+), 24 deletions(-)
Ports/Packages llvm13 is failing to link on riscv64, can this change be backported to all relevent/affected llvm* versions. [02:03:56] ld: error: undefined symbol: lldb_private::process_freebsd::NativeRegisterContextFreeBSD::CreateHostNativeRegisterContextFreeBSD(lldb_private::ArchSpec const&, lldb_private::NativeThreadProtocol&) [02:03:56] >>> referenced by NativeThreadFreeBSD.cpp [02:03:56] >>> NativeThreadFreeBSD.cpp.o:(lldb_private::process_freebsd::NativeThreadFreeBSD::NativeThreadFreeBSD(lldb_private::process_freebsd::NativeProcessFreeBSD&, unsigned long)) in archive lib/liblldbPluginProcessFreeBSD.a [02:03:56] c++: error: linker command failed with exit code 1 (use -v to see invocation) ^Triage: This is an unconditional build (link) failure affecting all users of an architecture, Affects Some -> Many
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b00578b9b208edb0f805a1b48e2d217435666f53 commit b00578b9b208edb0f805a1b48e2d217435666f53 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2022-02-08 00:32:27 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2022-02-08 00:32:52 +0000 devel/llvm13: update to 13.0.1 Disable FLANG on armv6 and armv7. It's not 32-bit clean and many systems lack the RAM to build it natively. Disable LLDB on riscv64, there is no riscv64 support. [0] PR: 261374 [0] MFH: 2022Q1 devel/llvm13/Makefile | 9 ++++++--- devel/llvm13/distinfo | 6 +++--- .../files/patch-llvm_lib_Target_X86_X86InstrSystem.td (gone) | 11 ----------- 3 files changed, 9 insertions(+), 17 deletions(-)
I plan to MFH tomorrow (the 8th) if I don't get build breakage reports over night.
A commit in branch 2022Q1 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=fa7265045779fd8912630904113dcaad7f95a852 commit fa7265045779fd8912630904113dcaad7f95a852 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2022-02-08 21:37:24 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2022-02-08 21:37:24 +0000 devel/llvm13: update to 13.0.1 Disable FLANG on armv6 and armv7. It's not 32-bit clean and many systems lack the RAM to build it natively. Disable LLDB on riscv64, there is no riscv64 support. [0] PR: 261374 [0] MFH: 2022Q1 (cherry picked from commit b00578b9b208edb0f805a1b48e2d217435666f53) devel/llvm13/Makefile | 9 ++++++--- devel/llvm13/distinfo | 6 +++--- .../files/patch-llvm_lib_Target_X86_X86InstrSystem.td (gone) | 11 ----------- 3 files changed, 9 insertions(+), 17 deletions(-)
Is llvm-devel a problem on 2022Q1? If so I can backport the LLDB disabling.
Unfortunately, build fails during staging: /bin/rmdir /wrkdirs/usr/ports/devel/llvm13/work/stage/usr/local/llvm13/share/man/man1/ rmdir: /wrkdirs/usr/ports/devel/llvm13/work/stage/usr/local/llvm13/share/man/man1/: Directory not empty root@riscv64-default:~ # ls /wrkdirs/usr/ports/devel/llvm13/work/stage/usr/local/llvm13/share/man/man1/ lldb-tblgen.1
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f0a48f0f28c23add582223feb72a8b7d35c548af commit f0a48f0f28c23add582223feb72a8b7d35c548af Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2022-02-10 18:13:02 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2022-02-10 18:13:02 +0000 devel/lvm13: fix build without LLDB While here, correctly identify several scanbuild-related files as being part of clang. PR: 261374 Reported by: pkubaj devel/llvm13/Makefile | 5 ++++- devel/llvm13/pkg-plist | 38 +++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 20 deletions(-)
A commit in branch 2022Q1 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1014f85dc2ad6c31c60fff10f39468f5c48a26c0 commit 1014f85dc2ad6c31c60fff10f39468f5c48a26c0 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2022-02-10 18:13:02 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2022-02-10 18:20:04 +0000 devel/lvm13: fix build without LLDB While here, correctly identify several scanbuild-related files as being part of clang. PR: 261374 Reported by: pkubaj (cherry picked from commit f0a48f0f28c23add582223feb72a8b7d35c548af) devel/llvm13/Makefile | 5 ++++- devel/llvm13/pkg-plist | 38 +++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 20 deletions(-)