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
Created attachment 584966 [details] sys-devel/llvm-8.0.1 - build.log
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
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
emerge -vae llvm -> https://pastebin.com/raw/3XNqiAXy
(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?
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(-)