Skip to content

Undefined Symbol Linking ThinLTO on Fuchsia #53794

Closed
@cramertj

Description

@cramertj

After #53356, all Rust binaries fail to link when using ThinLTO on Fuchsia (at least, all the admittedly non-minimal examples I have tried do). The full error is here. TL;DR: ld.lld: error: undefined symbol: _$LT$$u5b$A$u5d$$u20$as$u20$core..slice..SlicePartialEq$LT$A$GT$$GT$::equal::hcbd9a5cdc751fed8.

Most binaries mentioned PartialEq-related things as the symbol that was failing to link, which is maybe coincidental (due to the order in which function references occur or something) but I figured it was worth mentioning.

The error does not occur before #53356, and does not occur even post-#53356 when disabling LTO or using fat LTO.

cc @michaelwoerister

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binaries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions