Skip to content

Compilation fails in release mode with debug = true and lto = true. #28557

Closed
@dpc

Description

@dpc

I've pushed the failing code: https://github.com/dpc/mioco/tree/fails-to-compile . Last commit caused:

[futex:rust/mioco] (fails-to-compile!)% rustc --version
rustc 1.5.0-nightly (47d125d0f 2015-09-16)
[futex:rust/mioco] (fails-to-compile!)% cargo build --release --example echo
   Compiling mioco v0.2.0-pre1 (file:///home/dpc/lab/rust/mioco)
rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp:713: llv
m::DIE* llvm::DwarfUnit::getOrCreateTypeDIE(const llvm::MDNode*): Assertion `Ty == resolve(Ty->getRef()) && "type was not uniqued, p
ossible ODR violation."' failed.
Could not compile `mioco`.

To learn more, run the command again with --verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions