View previous topic :: View next topic |
Author |
Message |
FarLobster n00b
Joined: 05 Jul 2024 Posts: 4 Location: Canada
|
Posted: Fri Jul 05, 2024 8:20 pm Post subject: Cmake Fails On Compiling |
|
|
Hello, I hope that you all are having a great day! I was looking to install a few packages, so I attempted to install them. When I attempted to install them, I got this error: cmake failed. I then attempted to update my system to try and see if that was the issue, but it didn't work because of cmake again. Here's the build.log of the package that it failed on during the update:
Code: | * Package: dev-cpp/abseil-cpp-20230802.0-r2:0/20230802
* Repository: gentoo
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
* Checking whether python3_12 is suitable ...
* dev-lang/python:3.12 ... [ ok ]
* Using python3.12 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
>>> Unpacking abseil-cpp-20230802.0.tar.gz to /var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work
>>> Source unpacked in /var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work
>>> Preparing source in /var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0 ...
* Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0"
* Build directory (BUILD_DIR): "/var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0_build"
* Applying abseil-cpp-20230802.0-sdata-tests.patch ... [ ok ]
* Fixing shebang in absl/copts/generate_copts.py.
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0 ...
* abi_x86_64.amd64: running multilib-minimal_abi_src_configure
* Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0"
* Build directory (BUILD_DIR): "/var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0_build-abi_x86_64.amd64"
cmake -C /var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0_build-abi_x86_64.amd64/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_STANDARD=14 -DABSL_ENABLE_INSTALL=TRUE -DABSL_USE_EXTERNAL_GOOGLETEST=ON -DABSL_PROPAGATE_CXX_STD=TRUE -DABSL_BUILD_TEST_HELPERS=ON -DABSL_BUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0_build-abi_x86_64.amd64/gentoo_toolchain.cmake /var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0
loading initial cache file /var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0_build-abi_x86_64.amd64/gentoo_common_config.cmake
-- The CXX compiler identification is GNU 13.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX17
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX17 - Failed
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found GTest: /usr/lib64/cmake/GTest/GTestConfig.cmake (found version "1.14.0")
-- <<< Gentoo configuration >>>
Build type RelWithDebInfo
Install path /usr
Compiler flags:
C
C++ -march=native -O2 -pipe
Linker flags:
Executable -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
Module -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
Shared -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
-- Configuring done (0.5s)
CMake Error at CMake/AbseilHelpers.cmake:317 (target_link_libraries):
The link interface of target "random_mocking_bit_gen" contains:
absl::random_internal_mock_overload_set
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
absl/random/CMakeLists.txt:100 (absl_cc_library)
-- Generating done (0.5s)
CMake Generate step failed. Build files cannot be regenerated correctly.
* ERROR: dev-cpp/abseil-cpp-20230802.0-r2::gentoo failed (configure phase):
* cmake failed
*
* Call stack:
* ebuild.sh, line 136: Called src_configure
* environment, line 3423: Called cmake-multilib_src_configure
* environment, line 1185: Called multilib-minimal_src_configure
* environment, line 2377: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
* environment, line 2627: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
* environment, line 2332: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
* environment, line 2330: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
* environment, line 525: Called multilib-minimal_abi_src_configure
* environment, line 2371: Called multilib_src_configure
* environment, line 2852: Called cmake_src_configure
* environment, line 1454: 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-cpp/abseil-cpp-20230802.0-r2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-cpp/abseil-cpp-20230802.0-r2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/temp/environment'.
* Working directory: '/var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0_build-abi_x86_64.amd64'
* S: '/var/tmp/portage/dev-cpp/abseil-cpp-20230802.0-r2/work/abseil-cpp-20230802.0' |
I've tried re-installing cmake, syncing emerge: Nothing has worked for me.
As a new gentoo user, this is probably some easy to fix issue, which because of my lack of experience with portage, I'm out of ideas to troubleshoot this. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1910
|
Posted: Sat Jul 06, 2024 12:23 am Post subject: |
|
|
This is not cmake's fault. It is just the messenger of a bug either in the code or ebuild.
Bug 935417 is tracking this |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31257 Location: here
|
Posted: Sat Jul 06, 2024 3:30 pm Post subject: |
|
|
Upstream bug. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
beerbellyswan Tux's lil' helper
Joined: 01 May 2004 Posts: 132 Location: mendon, ny
|
Posted: Sun Jul 07, 2024 12:01 am Post subject: |
|
|
FarLobster i just encountered the same problem and fixed it by applying a patch with the following steps
Code: |
mkdir -p /etc/portage/patches/dev-cpp/abseil-cpp-20230802.0-r2
cd /etc/portage/patches/dev-cpp/abseil-cpp-20230802.0-r2
|
in that directory create a file called 0001-CMake_pkgconfig_misgeneration_for_random_mocking_bit_gen.patch with the following contents:
Code: |
office /etc/portage/patches/dev-cpp/abseil-cpp-20230802.0-r2 # cat 0001-CMake_pkgconfig_misgeneration_for_random_mocking_bit_gen.patch
--- a/absl/random/CMakeLists.txt
+++ b/absl/random/CMakeLists.txt
@@ -112,7 +112,6 @@ absl_cc_library(
absl::raw_logging_internal
absl::random_distributions
absl::random_internal_distribution_caller
- absl::random_internal_mock_overload_set
absl::random_random
absl::strings
absl::span
office /etc/portage/patches/dev-cpp/abseil-cpp-20230802.0-r2 #
|
then emerge the package
Code: |
emerge =dev-cpp/abseil-cpp-20230802.0-r2
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|