Created attachment 837637 [details] build.log * Package: dev-util/ccache-4.7.4:0 * Repository: gentoo * Maintainer: toolchain@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux static-c++ userland_GNU verify-sig * FEATURES: network-sandbox nostrip preserve-libs sandbox userpriv usersandbox >>> Unpacking source... * Verifying ccache-4.7.4.tar.xz ... gpg: Signature made Mon Nov 21 18:54:42 2022 UTC gpg: using RSA key 5A939A71A46792CF57866A51996DDA075594ADB8 gpg: Good signature from "Joel Rosdahl <joel@rosdahl.net>" [ultimate] gpg: aka "Joel Rosdahl <joel@debian.org>" [ultimate] >>> Unpacking ccache-4.7.4.tar.xz to /var/tmp/portage/dev-util/ccache-4.7.4/work >>> Unpacking ccache-4.7.4.tar.xz.asc to /var/tmp/portage/dev-util/ccache-4.7.4/work unpack ccache-4.7.4.tar.xz.asc: file format not recognized. Ignoring. >>> Source unpacked in /var/tmp/portage/dev-util/ccache-4.7.4/work >>> Preparing source in /var/tmp/portage/dev-util/ccache-4.7.4/work/ccache-4.7.4 ... * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-util/ccache-4.7.4/work/ccache-4.7.4" * Build directory (BUILD_DIR): "/var/tmp/portage/dev-util/ccache-4.7.4/work/ccache-4.7.4_build" * Applying ccache-3.5-nvcc-test.patch ... [ ok ] * Applying ccache-4.0-objdump.patch ... [ ok ] * SED: the following did not cause any changes * sed -e "/^EPREFIX=/s:'':'${EPREFIX}':" "${FILESDIR}"/ccache-config-3 > ccache-config || die * no-op: -e /^EPREFIX=/s:'':'': >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-util/ccache-4.7.4/work/ccache-4.7.4 ... * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-util/ccache-4.7.4/work/ccache-4.7.4" * Build directory (BUILD_DIR): "/var/tmp/portage/dev-util/ccache-4.7.4/work/ccache-4.7.4_build" cmake -C /var/tmp/portage/dev-util/ccache-4.7.4/work/ccache-4.7.4_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_DOCUMENTATION=no -DENABLE_TESTING=no -DZSTD_FROM_INTERNET=OFF -DHIREDIS_FROM_INTERNET=OFF -DREDIS_STORAGE_BACKEND=no -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-util/ccache-4.7.4/work/ccache-4.7.4_build/gentoo_toolchain.cmake /var/tmp/portage/dev-util/ccache-4.7.4/work/ccache-4.7.4 loading initial cache file /var/tmp/portage/dev-util/ccache-4.7.4/work/ccache-4.7.4_build/gentoo_common_config.cmake -- The C compiler identification is Clang 16.0.0 -- The CXX compiler identification is Clang 16.0.0 -- The ASM compiler identification is Clang with GNU-like command-line -- Found assembler: /usr/lib/llvm/16/bin/clang-16 -- The ASM_MASM compiler identification is unknown -- Found assembler: ml -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/lib/llvm/16/bin/clang-16 - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Check for working CXX compiler: /usr/lib/llvm/16/bin/clang++ -- Check for working CXX compiler: /usr/lib/llvm/16/bin/clang++ - broken CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:63 (message): The C++ compiler "/usr/lib/llvm/16/bin/clang++" is not able to compile a simple test program. It fails with the following output: Change Dir: /var/tmp/portage/dev-util/ccache-4.7.4/work/ccache-4.7.4_build/CMakeFiles/CMakeScratch/TryCompile-GdKbpN Run Build Command(s):/usr/bin/ninja cmTC_8ddd1 && [1/2] Building CXX object CMakeFiles/cmTC_8ddd1.dir/testCXXCompiler.cxx.o [2/2] Linking CXX executable cmTC_8ddd1 FAILED: cmTC_8ddd1 : && /usr/lib/llvm/16/bin/clang++ -march=native -O2 -pipe -fdiagnostics-color=always -Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed -static-libstdc++ CMakeFiles/cmTC_8ddd1.dir/testCXXCompiler.cxx.o -o cmTC_8ddd1 && : ld.lld: error: unable to find library -lc++ clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
Created attachment 837639 [details] CMakeError.log
Created attachment 837641 [details] CMakeOutput.log
Created attachment 837643 [details] emerge --info '=dev-util/ccache-4.7.4::gentoo'
Your emerge --info does not correspond to the build.log (musl vs glibc, clang vs gcc).