Skip to content

LTO triggers type debuginfo unification error in LLVM #15045

Closed
@luqmana

Description

@luqmana

This is with a recent rustc that includes #14819 and a new snapshot. Exact line used to build rustc:

../configure --disable-docs --disable-valgrind --prefix=/scratch/laden/local --target=i686-unknown-linux-gnu,arm-unknown-linux-gnueabi,arm-unknown-linux-gnueabihf,arm-linux-androideabi --android-cross-path=/scratch/laden/android-dev/standalone --enable-debug
RUSTFLAGS="-g" VERBOSE=1 make -j32
-> % rustc -v
rustc 0.11.0-pre (bb06790 2014-06-19 09:26:24 +0000)
host: x86_64-unknown-linux-gnu
fn main() {
    println!("Hello World!");
}
-> % rustc foo.rs -Z lto
rustc: /scratch/laden/rust/src/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp:938: llvm::DIE* llvm::DwarfUnit::getOrCreateTypeDIE(const llvm::MDNode*): Assertion `Ty == resolve(Ty.getRef()) && "type was not uniqued, possible ODR violation."' failed.
[1]    18332 abort      rustc foo.rs -Z lto

cc @michaelwoerister

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions