Running into problems during configure phase of CMake ebuild of version 3.25.2 . Distcc is turned off and the error is still present. full build.log https://bpa.st/CZVDU emerge --info https://bpa.st/2GH46 -- The C compiler identification is GNU 12.2.1 -- The CXX compiler identification is GNU 12.2.1 -- Detecting C compiler ABI info CMake Error: The source directory "SOURCES/CMakeFiles/CMakeTmp" does not exist. Specify --help for usage, or press the help button on the CMake GUI. CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerABI.cmake:57 (try_compile): Failed to configure test project build system. Call Stack (most recent call first): /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI) CMakeLists.txt:12 (project) -- Configuring incomplete, errors occurred! See also "/var/tmp/portage/dev-util/cmake-3.25.2/work/cmake-3.25.2_build/CMakeFiles/CMakeOutput.log". * ERROR: dev-util/cmake-3.25.2::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 136: Called src_configure * environment, line 2492: Called cmake_src_configure * environment, line 1183: Called die * The specific snippet of code: * "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed"; * * If you need support, post the output of `emerge --info '=dev-util/cmake-3.25.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-util/cmake-3.25.2::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-util/cmake-3.25.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-3.25.2/temp/environment'. * Working directory: '/var/tmp/portage/dev-util/cmake-3.25.2/work/cmake-3.25.2_build' * S: '/var/tmp/portage/dev-util/cmake-3.25.2/work/cmake-3.25.2'
Please attach the logs in full rather than using pastebins as they expire.
Created attachment 849870 [details] emerge --info
Created attachment 849872 [details] build.log
Please attach this file: /var/tmp/portage/dev-util/cmake-3.25.2/work/cmake-3.25.2_build/CMakeFiles/CMakeOutput.log
The system is: Linux - 5.15.88-gentoo - x86_64 Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: /usr/lib/distcc/bin/x86_64-pc-linux-gnu-gcc Build flags: -march=znver1;-O2;-pipe Id flags: The output was: 0 Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" The C compiler identification is GNU, found in "/var/tmp/portage/dev-util/cmake-3.25.2/work/cmake-3.25.2_build/CMakeFiles/3.24.3/CompilerIdC/a.out" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: /usr/lib/distcc/bin/x86_64-pc-linux-gnu-g++ Build flags: -march=znver1;-O2;-pipe Id flags: The output was: 0 Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" The CXX compiler identification is GNU, found in "/var/tmp/portage/dev-util/cmake-3.25.2/work/cmake-3.25.2_build/CMakeFiles/3.24.3/CompilerIdCXX/a.out"
"Compiler: /usr/lib/distcc/bin/x86_64-pc-linux-gnu-gcc " this line was because my /usr/lib/distcc/bin was still first in my PATH. I tried compiling again without "/usr/lib/distcc/bin" first in PATH. same error The system is: Linux - 5.15.88-gentoo - x86_64 Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: /usr/bin/x86_64-pc-linux-gnu-gcc Build flags: -march=znver1;-O2;-pipe Id flags: The output was: 0 Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" The C compiler identification is GNU, found in "/var/tmp/portage/dev-util/cmake-3.25.2/work/cmake-3.25.2_build/CMakeFiles/3.24.3/CompilerIdC/a.out" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: /usr/bin/x86_64-pc-linux-gnu-g++ Build flags: -march=znver1;-O2;-pipe Id flags: The output was: 0 Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" The CXX compiler identification is GNU, found in "/var/tmp/portage/dev-util/cmake-3.25.2/work/cmake-3.25.2_build/CMakeFiles/3.24.3/CompilerIdCXX/a.out"
Ok I solved this problem today. It seemed I could not compile the cmake-3.25.2 ebuild because somehow my CMake binaries were not compatible. I ended up compiling cmake by going to the git repo and downloading `cmake-3.26.0-rc3.tar.gz` and running `./bootstrap` `gmake install`. Then all my dependencies that required cmake (including cmake itself interestingly) would compile properly... So I guess the cmake ebuild should use gmake instead? Im not sure but it worked.