Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/lib/llvm/12/bin/x86_64-pc-linux-gnu-clang++ Build flags: -pipe;-march=native;-fno-diagnostics-color;-O2 Id flags: The output was: 1 /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lc++ 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 CXX compiler ABI info failed to compile with the following output: Change Dir: /var/tmp/portage/sys-libs/compiler-rt-sanitizers-12.0.0/work/compiler-rt_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_8105a && [1/2] Building CXX object CMakeFiles/cmTC_8105a.dir/CMakeCXXCompilerABI.cpp.o clang version 12.0.0 Target: x86_64-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: .;@m64 (in-process) "/usr/lib/llvm/12/bin/clang-12" -cc1 -triple x86_64-pc-linux-gnu -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model static -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu znver3 -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_8105a.dir/CMakeCXXCompilerABI.cpp.o.d -MT CMakeFiles/cmTC_8105a.dir/CMakeCXXCompilerABI.cpp.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 -fdeprecated-macro -fdebug-compilation-dir /var/tmp/portage/sys-libs/compiler-rt-sanitizers-12.0.0/work/compiler-rt_build/CMakeFiles/CMakeTmp -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -o CMakeFiles/cmTC_8105a.dir/CMakeCXXCompilerABI.cpp.o -x c++ /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp 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 CXX executable cmTC_8105a FAILED: cmTC_8105a : && /usr/lib/llvm/12/bin/x86_64-pc-linux-gnu-clang++ -pipe -march=native -fno-diagnostics-color -O2 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -v CMakeFiles/cmTC_8105a.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_8105a && : clang version 12.0.0 Target: x86_64-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: .;@m64 "/usr/bin/x86_64-pc-linux-gnu-ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_8105a /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crti.o /usr/lib/llvm/12/bin/../../../../lib/clang/12.0.0/lib/linux/clang_rt.crtbegin-x86_64.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64 -L/usr/lib/llvm/12/bin/../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -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 -O1 --as-needed --defsym=__gentoo_check_ldflags__=0 CMakeFiles/cmTC_8105a.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lm /usr/lib/llvm/12/bin/../../../../lib/clang/12.0.0/lib/linux/libclang_rt.builtins-x86_64.a -lc /usr/lib/llvm/12/bin/../../../../lib/clang/12.0.0/lib/linux/libclang_rt.builtins-x86_64.a /usr/lib/llvm/12/bin/../../../../lib/clang/12.0.0/lib/linux/clang_rt.crtend-x86_64.o /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crtn.o /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lc++ clang-12: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Determining if the CXX compiler works failed with the following output: Change Dir: /var/tmp/portage/sys-libs/compiler-rt-sanitizers-12.0.0/work/compiler-rt_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_02d9d && [1/2] Building CXX object CMakeFiles/cmTC_02d9d.dir/testCXXCompiler.cxx.o [2/2] Linking CXX executable cmTC_02d9d FAILED: cmTC_02d9d : && /usr/lib/llvm/12/bin/x86_64-pc-linux-gnu-clang++ -pipe -march=native -fno-diagnostics-color -O2 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 CMakeFiles/cmTC_02d9d.dir/testCXXCompiler.cxx.o -o cmTC_02d9d && : /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lc++ clang-12: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.