Skip to content

FreeBSD: ld-elf.so.1: Shared object "libxml2.so.2" not found, required by "lldb" #85348

@etcwilde

Description

@etcwilde

Description

lldb and lld both depend on libxml2.so.2, but the package manager installs libxml2.so.16.
User-installed packages are kept pretty recent and libxml2 updates frequently. As a result, it leaves the Swift packages broken.

Reproduction

Download the tarball from swift.org and try to run lldb or lld from the toolchain:

%  ~/.toolchains/swift/ci-2025-11-03/usr/bin/lldb --version
ld-elf.so.1: Shared object "libxml2.so.2" not found, required by "lldb"

Expected behavior

lld and lldb should work.

Environment

Swift version 6.3-dev (LLVM bff1370bd79c983, Swift 57cf4ce)
Target: x86_64-unknown-freebsd14.3
Build config: +assertions

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    FreeBSDPlatform: FreeBSDbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions