Created attachment 439266 [details] emerge --info '=dev-lang/rust-1.9.0::gentoo' emerge fails with a linker error: error: linking with `cc` failed: exit code: 1 note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "x86_64-unknown-linux-gnu/stage0/lib/rustlib/x8 6_64-unknown-linux-gnu/bin/rustc.0.o" "-o" "x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin/rustc" "-Wl,--gc-sections" "-pie" "-Wl,-O1" "-nodefaultlibs" "-L" "/usr/lib64" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0 /work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unkn own-linux-gnu/lib" "-l" "rustc_driver-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_plugin-d16b8f0e" "-L" "/var/tmp/portage/dev- lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_resolve-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustl ib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_typeck-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_metadata-d16b8f0e" "-L" "/var/ tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_save_analysis-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linu x-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "syntax_ext-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_passes-d16 b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_privacy-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64- unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_trans-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rus tc_llvm-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_borrowck-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1 .9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_mir-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_lint-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_const_eval-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/ work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_incremental-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-un known-linux-gnu/lib" "-l" "rustc-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "arena-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1. 9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "getopts-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown- linux-gnu/lib" "-l" "rustc_data_structures-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "flate-d16b8f0e" "-L" "/var/tmp/portage/dev-la ng/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "graphviz-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_ 64-unknown-linux-gnu/lib" "-l" "fmt_macros-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_const_math-d16b8f0e" "-L" "/var/tmp/por tage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_back-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib /rustlib/x86_64-unknown-linux-gnu/lib" "-l" "syntax-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "term-d16b8f0e" "-L" "/var/tmp/portag e/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rbml-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/ x86_64-unknown-linux-gnu/lib" "-l" "serialize-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "log-d16b8f0e" "-L" "/var/tmp/portage/dev-l ang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_platform_intrinsics-d16b8f0e" "-L" "/var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage 0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "std-d16b8f0e" "-l" "LLVMInterpreter" "-l" "LLVMMCJIT" "-l" "LLVMExecutionEngine" "-l" "LLVMRuntimeDyld" "-l" "LLVMipo" "-l" "LLVMVectorize" "-l" "LLVMLinker" "-l" "LLVMIRReader" "-l" "LLVM AsmParser" "-l" "LLVMPowerPCDisassembler" "-l" "LLVMPowerPCCodeGen" "-l" "LLVMPowerPCAsmParser" "-l" "LLVMPowerPCDesc" "-l" "LLVMPowerPCInfo" "-l" "LLVMPowerPCAsmPrinter" "-l" "LLVMMipsDisassembler" "-l" "LLVMMipsCodeGen" "-l" "LLVMMipsAs mParser" "-l" "LLVMMipsDesc" "-l" "LLVMMipsInfo" "-l" "LLVMMipsAsmPrinter" "-l" "LLVMAArch64Disassembler" "-l" "LLVMAArch64CodeGen" "-l" "LLVMAArch64AsmParser" "-l" "LLVMAArch64Desc" "-l" "LLVMAArch64Info" "-l" "LLVMAArch64AsmPrinter" "-l " "LLVMAArch64Utils" "-l" "LLVMARMDisassembler" "-l" "LLVMARMCodeGen" "-l" "LLVMARMAsmParser" "-l" "LLVMARMDesc" "-l" "LLVMARMInfo" "-l" "LLVMARMAsmPrinter" "-l" "LLVMX86Disassembler" "-l" "LLVMX86AsmParser" "-l" "LLVMX86CodeGen" "-l" "LL VMSelectionDAG" "-l" "LLVMAsmPrinter" "-l" "LLVMCodeGen" "-l" "LLVMTarget" "-l" "LLVMScalarOpts" "-l" "LLVMInstCombine" "-l" "LLVMInstrumentation" "-l" "LLVMProfileData" "-l" "LLVMTransformUtils" "-l" "LLVMBitWriter" "-l" "LLVMAnalysis" " -l" "LLVMX86Desc" "-l" "LLVMObject" "-l" "LLVMMCParser" "-l" "LLVMBitReader" "-l" "LLVMMCDisassembler" "-l" "LLVMX86Info" "-l" "LLVMX86AsmPrinter" "-l" "LLVMMC" "-l" "LLVMX86Utils" "-l" "LLVMCore" "-l" "LLVMSupport" "-l" "c++" "-l" "dl" " -l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "util" "-l" "compiler-rt" note: /var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_llvm-d16b8f0e.so: undefined reference to `llvm::Triple::normalize(llvm::StringRef)' collect2: error: ld returned 1 exit status
Created attachment 439268 [details] emerge -pqv '=dev-lang/rust-1.9.0::gentoo'
Created attachment 439270 [details] /var/tmp/portage/dev-lang/rust-1.9.0/temp/build.log
Created attachment 439272 [details] /var/tmp/portage/dev-lang/rust-1.9.0/temp/environment
This would be a cxx11 related problem. function to be linked in /var/tmp/portage/dev-lang/rust-1.9.0/work/rustc-1.9.0/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_llvm-d16b8f0e.so is _ZN4llvm6Triple9normalizeENS_9StringRefE@plt but function implemented in /usr/lib/libLLVMSupport.so.3.8 is: _ZN4llvm6Triple9normalizeB5cxx11ENS_9StringRefE@plt
Confirmed, I had the same issue. Agreed, it's a cxx11 abi tag issue. Please see bug #571600 for patches to sys-devel/llvm for solving the issue. Please note that the patches probably need better testing.
So this is a duplicate of #571600. *** This bug has been marked as a duplicate of bug 571600 ***