# cat /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/llvm-libunwind-12.0.0_build-abi_x86_32.x86/CMakeFiles/CMakeError.log Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /usr/lib/llvm/12/bin/clang -m32 Build flags: -march=native;-O2;-pipe Id flags: The output was: 1 ld.lld: error: unable to find library -l:libunwind.so ld.lld: error: unable to find library -l:libunwind.so clang-12: error: linker command failed with exit code 1 (use -v to see invocation) Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/lib/llvm/12/bin/clang++ -m32 Build flags: -march=native;-O2;-pipe Id flags: The output was: 1 ld.lld: error: unable to find library -l:libunwind.so ld.lld: error: unable to find library -l:libunwind.so clang-12: error: linker command failed with exit code 1 (use -v to see invocation) Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)": clang version 12.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin Detecting C compiler ABI info failed to compile with the following output: Change Dir: /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/llvm-libunwind-12.0.0_build-abi_x86_32.x86/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_39157 && [1/2] Building C object CMakeFiles/cmTC_39157.dir/CMakeCCompilerABI.c.o clang version 12.0.0 Target: i386-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: 32;@m32 (in-process) "/usr/lib/llvm/12/bin/clang-12" -cc1 -triple i386-pc-linux-gnu -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model static -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -target-cpu znver1 -target-feature +sse2 -target-feature -tsxldtrk -target-feature +cx16 -target-feature +sahf -target-feature -tbm -target-feature -avx512ifma -target-feature +sha -target-feature -gfni -target-feature -fma4 -target-feature -vpclmulqdq -target-feature +prfchw -target-feature +bmi2 -target-feature -cldemote -target-feature +fsgsbase -target-feature -ptwrite -target-feature -amx-tile -target-feature -uintr -target-feature +popcnt -target-feature -widekl -target-feature +aes -target-feature -avx512bitalg -target-feature -movdiri -target-feature +xsaves -target-feature -avx512er -target-feature -avxvnni -target-feature -avx512vnni -target-feature -amx-bf16 -target-feature -avx512vpopcntdq -target-feature -pconfig -target-feature +clwb -target-feature -avx512f -target-feature +xsavec -target-feature +clzero -target-feature -pku -target-feature +mmx -target-feature -lwp -target-feature +rdpid -target-feature -xop -target-feature +rdseed -target-feature -waitpkg -target-feature -kl -target-feature -movdir64b -target-feature +sse4a -target-feature -avx512bw -target-feature +clflushopt -target-feature +xsave -target-feature -avx512vbmi2 -target-feature +64bit -target-feature -avx512vl -target-feature -serialize -target-feature -hreset -target-feature -invpcid -target-feature -avx512cd -target-feature +avx -target-feature -vaes -target-feature -avx512bf16 -target-feature +cx8 -target-feature +fma -target-feature -rtm -target-feature +bmi -target-feature -enqcmd -target-feature +rdrnd -target-feature +mwaitx -target-feature +sse4.1 -target-feature +sse4.2 -target-feature +avx2 -target-feature +fxsr -target-feature +wbnoinvd -target-feature +sse -target-feature +lzcnt -target-feature +pclmul -target-feature -prefetchwt1 -target-feature +f16c -target-feature +ssse3 -target-feature -sgx -target-feature -shstk -target-feature +cmov -target-feature -avx512vbmi -target-feature -amx-int8 -target-feature +movbe -target-feature -avx512vp2intersect -target-feature +xsaveopt -target-feature -avx512dq -target-feature +adx -target-feature -avx512pf -target-feature +sse3 -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/llvm/12/bin/../../../../lib/clang/12.0.0 -dependency-file CMakeFiles/cmTC_39157.dir/CMakeCCompilerABI.c.o.d -MT CMakeFiles/cmTC_39157.dir/CMakeCCompilerABI.c.o -sys-header-deps -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm/12/bin/../../../../lib/clang/12.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/llvm-libunwind-12.0.0_build-abi_x86_32.x86/CMakeFiles/CMakeTmp -ferror-limit 19 -fgnuc-version=4.2.1 -vectorize-loops -vectorize-slp -o CMakeFiles/cmTC_39157.dir/CMakeCCompilerABI.c.o -x c /usr/share/cmake/Modules/CMakeCCompilerABI.c clang -cc1 version 12.0.0 based upon LLVM 12.0.0 default target x86_64-pc-linux-gnu ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/llvm/12/bin/../../../../lib/clang/12.0.0/include /usr/include End of search list. [2/2] Linking C executable cmTC_39157 FAILED: cmTC_39157 : && /usr/lib/llvm/12/bin/clang -m32 -march=native -O2 -pipe -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -v CMakeFiles/cmTC_39157.dir/CMakeCCompilerABI.c.o -o cmTC_39157 && : clang version 12.0.0 Target: i386-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: 32;@m32 "/usr/bin/ld.lld" --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o cmTC_39157 /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../crt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../crti.o /usr/lib/llvm/12/bin/../../../../lib/clang/12.0.0/lib/linux/clang_rt.crtbegin-i386.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/32 -L/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../.. -L/lib -L/usr/lib CMakeFiles/cmTC_39157.dir/CMakeCCompilerABI.c.o /usr/lib/llvm/12/bin/../../../../lib/clang/12.0.0/lib/linux/libclang_rt.builtins-i386.a --as-needed -l:libunwind.so --no-as-needed -lc /usr/lib/llvm/12/bin/../../../../lib/clang/12.0.0/lib/linux/libclang_rt.builtins-i386.a --as-needed -l:libunwind.so --no-as-needed /usr/lib/llvm/12/bin/../../../../lib/clang/12.0.0/lib/linux/clang_rt.crtend-i386.o /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../crtn.o ld.lld: error: unable to find library -l:libunwind.so ld.lld: error: unable to find library -l:libunwind.so clang-12: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Determining if the C compiler works failed with the following output: Change Dir: /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/llvm-libunwind-12.0.0_build-abi_x86_32.x86/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_ebf5f && [1/2] Building C object CMakeFiles/cmTC_ebf5f.dir/testCCompiler.c.o [2/2] Linking C executable cmTC_ebf5f FAILED: cmTC_ebf5f : && /usr/lib/llvm/12/bin/clang -m32 -march=native -O2 -pipe -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind CMakeFiles/cmTC_ebf5f.dir/testCCompiler.c.o -o cmTC_ebf5f && : ld.lld: error: unable to find library -l:libunwind.so ld.lld: error: unable to find library -l:libunwind.so clang-12: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.