Displaying 1 result from an estimated 1 matches for "codegen_unit_nam".
Did you mean:
codegen_unit_name
2018 Nov 11
3
A stage2 build causes changes to libllvm impacting program using it (exemple: rustc)
...ilderCreateFile (Builder=0x5555555d4180, Filename=0x7ffffffeedd8 "src/main.rs", Directory=0x555555b3dd10 "$HOME/hello_world")
at /usr/lib/llvm-7/include/llvm/ADT/StringRef.h:85
#6 0x00007ffff501d39e in rustc_codegen_llvm::debuginfo::metadata::compile_unit_metadata (tcx=..., codegen_unit_name=..., debug_context=0x7ffffffeeeb0) at librustc_codegen_llvm/debuginfo/metadata.rs:859
Disabling the debug generation for rustc fixes the issue (thanks to Ximin Luo for the investigation).
Why idea how to workaround this issue ?
Unfortunately, because rustc needs rustc to build itself, I cannot...