Skip to content

DICompileUnit not listed in llvm.dbg.cu #90045

Closed
@glandium

Description

@glandium

STR:

  • Create a dummy crate: cargo new hello ; cd hello
  • Build with profiling and LTO enabled: CARGO_INCREMENTAL=0 cargo +nightly rustc -- -Zprofile -Cdebuginfo=2 -Clto -Cembed-bitcode=yes

This fails with the following error message:

DICompileUnit not listed in llvm.dbg.cu
!34 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !13, producer: "clang LLVM (rustc version 1.58.0-nightly (bd41e09da 2021-10-18))", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !35)
LLVM ERROR: Broken module found, compilation aborted!

Bisect says it is a regression from #89041.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.requires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions