Skip to content

Current LLD 20 fails to link dependency in liblldMachO.a correctly #122655

Closed
@lerno

Description

@lerno

linking liblldMachO.a fails on a vanilla Linux build, with the following code:

/usr/bin/ld: /usr/lib/llvm-20/lib/liblldMachO.a(BPSectionOrderer.cpp.o): in function `lld::macho::runBalancedPartitioning(llvm::StringRef, bool, bool, bool, bool)':
(.text._ZN3lld5macho23runBalancedPartitioningEN4llvm9StringRefEbbbb+0x2fc): undefined reference to `lld::BPSectionBase::reorderSectionsByBalancedPartitioning(llvm::StringRef, bool, bool, bool, bool, llvm::SmallVector<std::unique_ptr<lld::BPSectionBase, std::default_delete<lld::BPSectionBase> >, 6u>&)'

This first started happening around Dec 19 2024, so is related some change during that time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions