Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587640 - dev-lang/rust-1.9.0 fails to emerge with undefined reference to `llvm::Triple::normalize(llvm::StringRef)'
Summary: dev-lang/rust-1.9.0 fails to emerge with undefined reference to `llvm::Triple...
Status: RESOLVED DUPLICATE of bug 571600
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-01 02:58 UTC by Dale Lukas Peterson
Modified: 2016-07-18 14:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=dev-lang/rust-1.9.0::gentoo' (emerge_info.txt,5.66 KB, text/plain)
2016-07-01 02:58 UTC, Dale Lukas Peterson
Details
emerge -pqv '=dev-lang/rust-1.9.0::gentoo' (emerge_pqv.txt,90 bytes, text/plain)
2016-07-01 02:59 UTC, Dale Lukas Peterson
Details
/var/tmp/portage/dev-lang/rust-1.9.0/temp/build.log (build.log,279.11 KB, text/x-log)
2016-07-01 03:01 UTC, Dale Lukas Peterson
Details
/var/tmp/portage/dev-lang/rust-1.9.0/temp/environment (environment,121.32 KB, text/plain)
2016-07-01 03:01 UTC, Dale Lukas Peterson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dale Lukas Peterson 2016-07-01 02:58:37 UTC
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
Comment 1 Dale Lukas Peterson 2016-07-01 02:59:06 UTC
Created attachment 439268 [details]
emerge -pqv '=dev-lang/rust-1.9.0::gentoo'
Comment 2 Dale Lukas Peterson 2016-07-01 03:01:22 UTC
Created attachment 439270 [details]
/var/tmp/portage/dev-lang/rust-1.9.0/temp/build.log
Comment 3 Dale Lukas Peterson 2016-07-01 03:01:55 UTC
Created attachment 439272 [details]
/var/tmp/portage/dev-lang/rust-1.9.0/temp/environment
Comment 4 cuichboo@gmail.com 2016-07-06 14:33:48 UTC
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
Comment 5 Fabio Scaccabarozzi 2016-07-11 09:44:38 UTC
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.
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2016-07-18 14:20:47 UTC
So this is a duplicate of #571600.

*** This bug has been marked as a duplicate of bug 571600 ***