Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690962 - sys-devel/llvm-8.0.1[+xml +libffi +ncurses +abi_x86_{64,32} llvm_targets_{amdGPU,bpf,nvpx,x86}] : ninja -v -j6 -l0 failed
Summary: sys-devel/llvm-8.0.1[+xml +libffi +ncurses +abi_x86_{64,32} llvm_targets_{amd...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-29 02:40 UTC by theevilskeleton
Modified: 2019-08-04 11:11 UTC (History)
3 users (show)

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


Attachments
sys-devel/llvm-8.0.1 - build.log (file_690962.txt,264.72 KB, text/plain)
2019-07-29 02:42 UTC, theevilskeleton
Details
build.log - sys-devel/llvm-8.0.1[xml libffi ncurses abi_x86_32 abi_x86_64 llvm_targets_X86] with/without proposed change (file_690962.txt,17.55 KB, text/plain)
2019-07-30 23:09 UTC, Jakub Hrbek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description theevilskeleton 2019-07-29 02:40:50 UTC
Compiling sys-devel/llvm8.0.1 as follows results in failure.

[ebuild   R    ] sys-devel/llvm-8.0.1:8::gentoo  USE="libffi ncurses xml -debug -doc -exegesis -gold -libedit -test -xar" ABI_X86="32* (64) (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -WebAssembly -XCore" 0 KiB


LOG: http://ix.io/1PTH
Comment 1 theevilskeleton 2019-07-29 02:42:31 UTC
Created attachment 584966 [details]
sys-devel/llvm-8.0.1 - build.log
Comment 2 Alexander Tsoy 2019-07-30 20:34:27 UTC
Looks like a missing MULTILIB_USEDEP. llvm should depend on sys-libs/zlib:0=[${MULTILIB_USEDEP}]

/var/tmp/portage/sys-devel/llvm-8.0.1/work/llvm-8.0.1.src-abi_x86_32.x86/bin/llvm-tblgen: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Comment 3 Jakub Hrbek 2019-07-30 23:09:11 UTC
Created attachment 585210 [details]
build.log - sys-devel/llvm-8.0.1[xml libffi ncurses abi_x86_32 abi_x86_64 llvm_targets_X86]  with/without proposed change

with sys-libs/zlib:0=[${MULTILIB_USEDEP}] as follows http://ix.io/1Q6i

without (as sys-libs/zlib:0=) http://ix.io/1Q6j -> Same result

Deduced missing toolchain dependency

[ebuild   R    ] dev-libs/libffi-3.3_rc0:0/7::gentoo  USE="-debug -pax_kernel -static-libs -test" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild   R    ] dev-util/ninja-1.9.0::gentoo  USE="-doc -emacs -test -vim-syntax" 0 KiB
[ebuild   R    ] virtual/cargo-1.36.0::gentoo  0 KiB
[ebuild   R    ] sys-devel/binutils-2.32-r1:2.32::gentoo  USE="cxx gold nls plugins test -default-gold -doc -multitarget -static-libs" 0 KiB
[ebuild   R    ] dev-util/cmake-3.15.0::gentoo  USE="ncurses -doc -emacs -qt5 -system-jsoncpp -test" 0 KiB
[ebuild   R    ] sys-devel/gdb-8.3::gentoo  USE="client nls -lzma -multitarget -python -server -source-highlight -test -vanilla -xml" PYTHON_SINGLE_TARGET="python2_7 -python3_5 -python3_6 -python3_7" PYTHON_TARGETS="python2_7 python3_6 -python3_5 -python3_7" 0 KiB
[ebuild   R    ] sys-devel/gcc-9.1.0-r1:9.1.0::gentoo  USE="cxx fortran lto (multilib) nls nptl openmp pch (pie) sanitize ssp vtv (-altivec) -d -debug -doc (-fixed-point) -go -graphite (-hardened) (-jit) (-libssp) -objc -objc++ -objc-gc -pgo -systemtap -test -vanilla" 0 KiB
[ebuild   R    ] sys-libs/glibc-2.29-r2:2.2::gentoo  USE="(multilib) (split-usr) ssp -audit -caps (-cet) (-compile-locales) -doc -gd -headers-only -multiarch -nscd -profile (-selinux) -suid -systemtap -test (-vanilla)" 0 KiB
[ebuild   R    ] sys-devel/llvm-8.0.1:8::gentoo  USE="libffi ncurses -debug -doc -exegesis -gold -libedit -test -xar -xml" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -WebAssembly -XCore" 0 KiB
[ebuild   R    ] sys-devel/clang-8.0.1:8::gentoo  USE="-debug -default-compiler-rt -default-libcxx -doc -static-analyzer -test -xml -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -WebAssembly -XCore" PYTHON_TARGETS="python2_7" 0 KiB
Comment 4 Jakub Hrbek 2019-07-30 23:11:33 UTC
emerge -vae llvm -> https://pastebin.com/raw/3XNqiAXy
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-08-04 11:04:08 UTC
(In reply to Alexander Tsoy from comment #2)
> Looks like a missing MULTILIB_USEDEP. llvm should depend on
> sys-libs/zlib:0=[${MULTILIB_USEDEP}]
> 
> /var/tmp/portage/sys-devel/llvm-8.0.1/work/llvm-8.0.1.src-abi_x86_32.x86/bin/
> llvm-tblgen: error while loading shared libraries: libz.so.1: cannot open
> shared object file: No such file or directory

You are probably correct.  However, this doesn't explain why it links to it successfully but fails at loading.

Your 'emerge --info', please.  Was the system converted to 17.1 profiles?
Comment 6 Larry the Git Cow gentoo-dev 2019-08-04 11:11:08 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=501ed0232ef61ad04d02ee18ea2b781d7a870d9b

commit 501ed0232ef61ad04d02ee18ea2b781d7a870d9b
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-08-04 11:06:04 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-08-04 11:06:04 +0000

    sys-devel/llvm: Add MULTILIB_USEDEP on app-arch/zlib
    
    Bug: https://bugs.gentoo.org/690962
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sys-devel/llvm/llvm-10.0.0.9999.ebuild | 2 +-
 sys-devel/llvm/llvm-5.0.2.ebuild       | 2 +-
 sys-devel/llvm/llvm-6.0.1-r2.ebuild    | 2 +-
 sys-devel/llvm/llvm-6.0.1.ebuild       | 2 +-
 sys-devel/llvm/llvm-7.1.0.ebuild       | 2 +-
 sys-devel/llvm/llvm-8.0.0.ebuild       | 2 +-
 sys-devel/llvm/llvm-8.0.1.ebuild       | 2 +-
 sys-devel/llvm/llvm-9.0.0.9999.ebuild  | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)