Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dpc opened this issue Sep 21, 2015 · 2 comments
Closed

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

dpc opened this issue Sep 21, 2015 · 2 comments
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@dpc
Copy link
Contributor

dpc commented Sep 21, 2015

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.
@dpc dpc changed the title Compilation fails in release mode with debug = true. Compilation fails in release mode with debug = true and lto = true. Sep 21, 2015
@jdm jdm added A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ labels Sep 21, 2015
@sanxiyn
Copy link
Member

sanxiyn commented Sep 22, 2015

I cannot reproduce this. Can you reproduce from the clean build?

This used to be a problem(#26447). I think it is possible that deps compiled by an old compiler before the fix is causing the problem.

@steveklabnik
Copy link
Member

This now fails to compile with a regular error for me.

@dpc let us know if you're still seeing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants