Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490942 - =sys-devel/llvm-3.3-r1's /bin/clang has an error while loading shared libraries: "libLLVM-3.3.so: cannot open shared object file: No such file or directory"
Summary: =sys-devel/llvm-3.3-r1's /bin/clang has an error while loading shared librari...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 491018
  Show dependency tree
 
Reported: 2013-11-10 16:59 UTC by Anton Kochkov
Modified: 2014-01-19 10:14 UTC (History)
1 user (show)

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


Attachments
Full build log (llvm_build.log.gz,135.62 KB, application/gzip)
2013-11-10 17:01 UTC, Anton Kochkov
Details
emerge --info output (emerge_info.log,4.84 KB, text/plain)
2013-11-10 17:01 UTC, Anton Kochkov
Details
floatuntixf-1XWBV6.c (floatuntixf-1XWBV6.c,48.24 KB, text/x-csrc)
2013-11-10 17:02 UTC, Anton Kochkov
Details
floatuntixf-1XWBV6.sh (floatuntixf-1XWBV6.sh,561 bytes, application/x-shellscript)
2013-11-10 17:02 UTC, Anton Kochkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2013-11-10 16:59:23 UTC
/var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src-amd64/Release/bin/clang: error while loading shared libraries: libLLVM-3.3.so: cannot open shared object file: No such file or directory
clang: error: unable to execute command: Program could not be executed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.3 (tags/RELEASE_33/final)
Target: i386-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
  COMPILE:   clang_linux/full-i386/i386: /var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src/projects/compiler-rt/lib/lshrti3.c
/var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src-amd64/Release/bin/clang -fPIC -Wall -Werror -O3 -fomit-frame-pointer -m32 --sysroot=/var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src/projects/compiler-rt/SDKs/linux -c -o /var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src-amd64/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/lshrti3.o /var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src/projects/compiler-rt/lib/lshrti3.c
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/tmp/portage/sys-devel/llvm-3.3-r1/temp/floatuntixf-1XWBV6.c
clang: note: diagnostic msg: /var/tmp/portage/sys-devel/llvm-3.3-r1/temp/floatuntixf-1XWBV6.sh
clang: note: diagnostic msg: 

********************
make[5]: *** [/var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src-amd64/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/floatuntixf.o] Error 255
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory `/var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src/projects/compiler-rt'
make[4]: *** [BuildRuntimeLibraries] Error 2
rm /var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src-amd64/Release/lib/clang/3.3/lib/linux/.dir
make[4]: Leaving directory `/var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src-amd64/tools/clang/runtime/compiler-rt'
make[3]: *** [compiler-rt/.makeall] Error 2
make[3]: Leaving directory `/var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src-amd64/tools/clang/runtime'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src-amd64/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src-amd64/tools'
make: *** [all] Error 1
 [31;01m*[0m ERROR: sys-devel/llvm-3.3-r1::gentoo failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=sys-devel/llvm-3.3-r1::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=sys-devel/llvm-3.3-r1::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/sys-devel/llvm-3.3-r1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-devel/llvm-3.3-r1/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src-amd64'
 [31;01m*[0m S: '/var/tmp/portage/sys-devel/llvm-3.3-r1/work/llvm-3.3.src'
Comment 1 Anton Kochkov 2013-11-10 17:01:15 UTC
Created attachment 362986 [details]
Full build log
Comment 2 Anton Kochkov 2013-11-10 17:01:31 UTC
Created attachment 362988 [details]
emerge --info output
Comment 3 Anton Kochkov 2013-11-10 17:02:31 UTC
Created attachment 362990 [details]
floatuntixf-1XWBV6.c
Comment 4 Anton Kochkov 2013-11-10 17:02:52 UTC
Created attachment 362992 [details]
floatuntixf-1XWBV6.sh
Comment 5 Anton Kochkov 2013-11-11 15:36:46 UTC
This error happens only in MAKEOPTS="-jN" where N>1
So looks like it is just race condition.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-11-12 18:25:11 UTC
Could you try -9999? And possibly try to fix the build system for 3.3-r1? To be honest, I'd rather try to fix the issue than force -j1 for such a big package as llvm.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-12-28 14:08:46 UTC
Could you try -3.3-r2, please?
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-01-19 10:14:12 UTC
Assuming it is fixed in -3.3-r2+. Feel free to reopen if that ain't true.