Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893240 - dev-util/cmake-3.25.2::gentoo failed (configure phase)
Summary: dev-util/cmake-3.25.2::gentoo failed (configure phase)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-04 20:10 UTC by William Rabbermann
Modified: 2023-02-15 21:35 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,6.62 KB, text/plain)
2023-02-04 20:28 UTC, William Rabbermann
Details
build.log (build.log,8.97 KB, text/x-log)
2023-02-04 20:28 UTC, William Rabbermann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Rabbermann 2023-02-04 20:10:39 UTC
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'
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-04 20:13:54 UTC
Please attach the logs in full rather than using pastebins as they expire.
Comment 2 William Rabbermann 2023-02-04 20:28:08 UTC
Created attachment 849870 [details]
emerge --info
Comment 3 William Rabbermann 2023-02-04 20:28:20 UTC
Created attachment 849872 [details]
build.log
Comment 4 Mike Gilbert gentoo-dev 2023-02-04 23:21:26 UTC
Please attach this file:

/var/tmp/portage/dev-util/cmake-3.25.2/work/cmake-3.25.2_build/CMakeFiles/CMakeOutput.log
Comment 5 William Rabbermann 2023-02-05 00:24:44 UTC
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"
Comment 6 William Rabbermann 2023-02-05 01:58:29 UTC
"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"
Comment 7 William Rabbermann 2023-02-15 21:35:23 UTC
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.