Created attachment 923384 [details] emerge --info I have python3 from 3.10 to 3.13 installed. imath is emerged with 3.12. Also: *my* boost is installed ( not ::gentoo but ::ex_repo , it's boost build by cmake ), but I'm not sure if that's the problem right here. build.log: ``` * Package: dev-libs/imath-3.1.12:3/29 * Repository: gentoo * Maintainer: negril.nx+gentoo@gmail.com proxy-maint@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python python_single_target_python3_12 test * FEATURES: installsources network-sandbox nostrip preserve-libs sandbox test userpriv usersandbox * Using python3.12 to build >>> Unpacking source... >>> Unpacking imath-3.1.12.tar.gz to /var/tmp/portage/dev-libs/imath-3.1.12/work >>> Source unpacked in /var/tmp/portage/dev-libs/imath-3.1.12/work >>> Preparing source in /var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12 ... * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12" * Build directory (BUILD_DIR): "/var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12_build" * Applying imath-3.1.11-fix_cmake_module_export.patch ... [ ok ] * Applying imath-3.1.11-use-correct-boost_python_version.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12 ... * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12" * Build directory (BUILD_DIR): "/var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12_build" cmake -C /var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_WEBSITE=no -DIMATH_ENABLE_LARGE_STACK=no -DIMATH_HALF_USE_LOOKUP_TABLE=ON -DIMATH_INSTALL_PKG_CONFIG=ON -DIMATH_USE_CLANG_TIDY=OFF -DIMATH_USE_DEFAULT_VISIBILITY=OFF -DIMATH_USE_NOEXCEPT=ON -DBoost_NO_BOOST_CMAKE=OFF -DPYTHON=ON -DPython3_EXECUTABLE=/usr/bin/python3.12 -DPython3_INCLUDE_DIR=/usr/include/python3.12 -DPython3_LIBRARY=/usr/lib64/libpython3.12.so -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12_build/gentoo_toolchain.cmake -C /a_file.cmake /var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12 loading initial cache file /var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12_build/gentoo_common_config.cmake loading initial cache file /a_file.cmake -- The C compiler identification is GNU 14.2.1 -- The CXX compiler identification is GNU 14.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- 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 -- Configure Imath 3.1.12, library API version: 29.11.0 -- Imath pkg-config generation enabled -- Looking for sin in m -- Looking for sin in m - found -- Found Python: /usr/bin/python3.13 (found version "3.13.2") found components: Interpreter Development Development.Module Development.Embed -- Found Python3: /usr/bin/python3.12 (found version "3.12.9") found components: Interpreter Development Development.Module Development.Embed -- Found Python 3.12.9 -- Found Python3 libraries: 312 -- Will install to: lib/python3.12/site-packages CMake Warning (dev) at src/python/CMakeLists.txt:141 (find_package): Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake --help-policy CMP0167" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. -- Found Boost: /usr/lib64/cmake/Boost-1.88.0/BoostConfig.cmake (found version "1.88.0") found components: python312 -- Found Python 3 boost: Boost::python312 -- Found NumPy 2.2.3 for Python 3.12.9: /usr/lib/python3.12/site-packages/numpy/_core/include -- clang-format found: /usr/lib/llvm/21/bin/clang-format -- <<< Gentoo configuration >>> Build type RelWithDebInfo Install path /usr Compiler flags: C -O3 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -fuse-linker-plugin -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ftree-loop-linear -ggdb3 -frecord-gcc-switches C++ -O3 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -fuse-linker-plugin -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ftree-loop-linear -ggdb3 -frecord-gcc-switches Linker flags: Executable -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 Module -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 Shared -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -- Configuring done (2.5s) CMake Error at src/python/PyImathTest/CMakeLists.txt:23 (target_link_libraries): Target "PyImathTestC" links to: Imath::PyImath_Python3_13 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. -- Generating done (0.1s) CMake Generate step failed. Build files cannot be regenerated correctly. * ERROR: dev-libs/imath-3.1.12::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 136: Called src_configure * environment, line 2826: Called cmake_src_configure * environment, line 1410: 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-libs/imath-3.1.12::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-libs/imath-3.1.12::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-libs/imath-3.1.12/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/imath-3.1.12/temp/environment'. * Working directory: '/var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12_build' * S: '/var/tmp/portage/dev-libs/imath-3.1.12/work/Imath-3.1.12' ```
It is because of my boost.
for unknown reason, in the failed CMakeLists.txt : ``` Python3_VERSION_MAJOR.Python3_VERSION_MINOR 3.12 Python_VERSION_MAJOR.Python_VERSION_MINOR: 3.13 ```
this line triggers change: in src/python/CMakeLists.txt: ``` find_package(Boost OPTIONAL_COMPONENTS python python${Python_VERSION_MAJOR} ${PYIMATH_BOOST_PY_COMPONENT}) ```
It seems I found the reason.
in boost created by cmake: in /usr/lib64/cmake/boost_python312-1.88.0-static/boost_python312-config.cmake : ``` find_dependency(Python COMPONENTS Development) ``` This is fixable by adding -DPython_EXECUTABLE=/usr/bin/python3.12
(In reply to Arniiiii from comment #5) > > This is fixable by adding -DPython_EXECUTABLE=/usr/bin/python3.12 Can gentoo's ebuild be "fixed" in ::gentoo ?
Created attachment 923385 [details] build.log