Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883291 - dev-util/ccache-4.7.4: clang-15 AND clang-16: error: linker command failed with exit code 1
Summary: dev-util/ccache-4.7.4: clang-15 AND clang-16: error: linker command failed wi...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-27 12:52 UTC by Lukas Schmelting
Modified: 2022-12-01 06:50 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,5.26 KB, text/x-log)
2022-11-27 12:52 UTC, Lukas Schmelting
Details
CMakeError.log (CMakeError.log,8.61 KB, text/x-log)
2022-11-27 12:53 UTC, Lukas Schmelting
Details
CMakeOutput.log (CMakeOutput.log,15.66 KB, text/x-log)
2022-11-27 12:54 UTC, Lukas Schmelting
Details
emerge --info '=dev-util/ccache-4.7.4::gentoo' (file_883291.txt,18.19 KB, text/plain)
2022-11-27 12:55 UTC, Lukas Schmelting
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Schmelting 2022-11-27 12:52:46 UTC
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)
Comment 1 Lukas Schmelting 2022-11-27 12:53:44 UTC
Created attachment 837639 [details]
CMakeError.log
Comment 2 Lukas Schmelting 2022-11-27 12:54:05 UTC
Created attachment 837641 [details]
CMakeOutput.log
Comment 3 Lukas Schmelting 2022-11-27 12:55:53 UTC
Created attachment 837643 [details]
emerge --info '=dev-util/ccache-4.7.4::gentoo'
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-01 06:50:08 UTC
Your emerge --info does not correspond to the build.log (musl vs glibc, clang vs gcc).