Skip to content

linux split-dwarf fails with -Clinker-plugin-lto #103932

Closed
@vlovich

Description

@vlovich

When I add split-debuginfo = "unpacked" to my profile.release in Cargo.toml (on Linux), my build fails with:

error: failed to build archive: No such file or directory

error: could not compile `cfg-if` due to previous error
warning: build failed, waiting for other jobs to finish...

In debug I initially had the same problem but a cargo clean fixed it without requiring me to turn off split-debuginfo. However, release continues to be failing even after cargo clean.

Meta

rustc --version
rustc 1.65.0 (897e375 2022-11-02)
cargo --version
cargo 1.65.0 (4bc8f24d3 2022-10-20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions