Page MenuHomeFreeBSD

devel/llvm20: Link LLDB with libxml2 to allow an interop with openocd
ClosedPublic

Authored by arrowd on Jun 6 2025, 12:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 18, 3:31 AM
Unknown Object (File)
Sun, Jul 13, 11:31 AM
Unknown Object (File)
Fri, Jul 4, 4:24 PM
Unknown Object (File)
Wed, Jul 2, 8:54 PM
Unknown Object (File)
Mon, Jun 30, 10:11 PM
Unknown Object (File)
Fri, Jun 27, 2:27 AM
Unknown Object (File)
Fri, Jun 27, 12:24 AM
Unknown Object (File)
Thu, Jun 26, 9:16 PM
Subscribers
None

Details

Summary

I got a report that LLDB may silently grap the libxml2 dependency if
it is installed on the building machine. Linking to libxml2 allows it to
interoperate with openocd and parse XML register descriptions.

This patch makes libxml2 a dependency if the LLDB is enabled

Test Plan

poud testport and ldd /usr/local/llvm20/bin/lldb | grep libxml

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 65124
Build 62007: arc lint + arc unit

Event Timeline

arrowd created this revision.

Thanks for the report. This works by accident as a later LLDB_USES squashes gnome, but clang adds it and then doesn't actually use it... I'm working on an alternate fix along with a bump of the lua version.

The issue is still there, so I'm updating the diff, just in case

Sorry for the delay, I've been traveling too much over the last couple weeks and am finally tuning back in. I've got a tested patch, but want to push an update to 20.1.7 along with this change to reduce the number of rebuilds globally. The build is in progress and I'll hopefully push in the next 24 hours.

This revision was not accepted when it landed; it landed in state Needs Review.Mon, Jun 30, 10:07 PM
This revision was automatically updated to reflect the committed changes.