Build fails with -D2GEOM_BOOST_PYTHON=ON when using Python 3.10 (configure time issue)
Hi,
I've upgraded to Python 3.10 on my system and now the build system fails with this:
starting phase `configure'
source directory: "/tmp/guix-build-lib2geom-1.1.drv-0/source" (relative from build: "../source")
build directory: "/tmp/guix-build-lib2geom-1.1.drv-0/build"
running 'cmake' with arguments ("../source" "-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-DCMAKE_INSTALL_PREFIX=/gnu/store/s2rfsjpdc35gf9lxwb7rl9saa7hpahzx-lib2geom-1.1" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE" "-DCMAKE_INSTALL_RPATH=/gnu/store/s2rfsjpdc35gf9lxwb7rl9saa7hpahzx-lib2geom-1.1/lib" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-D2GEOM_BUILD_SHARED=ON" "-D2GEOM_BOOST_PYTHON=ON" "-D2GEOM_CYTHON_BINDINGS=OFF")
-- The CXX compiler identification is GNU 10.3.0
-- The C compiler identification is GNU 10.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /gnu/store/vakvgvrb839igv16jkif4lmx11d25jqb-gcc-10.3.0/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /gnu/store/vakvgvrb839igv16jkif4lmx11d25jqb-gcc-10.3.0/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Boost: /gnu/store/y5k4wr58l9ypj10v5vjbawvh2ls1kynp-boost-1.77.0/lib/cmake/Boost-1.77.0/BoostConfig.cmake (found suitable version "1.77.0", minimum required is "1.60")
-- Found DoubleConversion: /gnu/store/7nnqpwlpdcbw5d4i3ka8gchpw4bpayy1-double-conversion-3.1.5/lib/libdouble-conversion.so
-- Found PkgConfig: /gnu/store/wc7lqi6kgki5qzr01g3gvriwdadjiwpc-pkg-config-0.29.2/bin/pkg-config (found version "0.29.2")
-- Could NOT find Cython (missing: CYTHON_EXECUTABLE)
-- cython: NOT FOUND
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Checking for module 'gtk+-3.0'
-- No package 'gtk+-3.0' found
-- Checking for module 'glib-2.0'
-- Found glib-2.0, version 2.70.0
-- Checking for module 'cairo'
-- Found cairo, version 1.16.0
-- Checking for module 'gsl'
-- Found gsl, version 2.7
-- Found GTest: /gnu/store/kpfbh1xnbb7jf3m1095isgr867s5588p-googletest-1.11.0/lib/cmake/GTest/GTestConfig.cmake (found version "1.11.0")
-- Performing Test HAVE_SINCOS
-- Performing Test HAVE_SINCOS - Success
-- Ragel NOT found. Using stale svg-path-parser.cpp.
Not building toys as they require GTK3.
-- Found Python3: /gnu/store/d28z4cnxia6lifarg4yzn9a8dy68gavy-python-wrapper-3.10.0/bin/python (found version "3.10.0") found components: Development Interpreter Development.Module Development.Embed
-- Found Boost 1.77.0 at /gnu/store/y5k4wr58l9ypj10v5vjbawvh2ls1kynp-boost-1.77.0/lib/cmake/Boost-1.77.0
-- Requested configuration: QUIET REQUIRED
-- BoostConfig: find_package(boost_headers 1.77.0 EXACT CONFIG REQUIRED QUIET HINTS /gnu/store/y5k4wr58l9ypj10v5vjbawvh2ls1kynp-boost-1.77.0/lib/cmake)
-- Found Boost: /gnu/store/y5k4wr58l9ypj10v5vjbawvh2ls1kynp-boost-1.77.0/lib/cmake/Boost-1.77.0/BoostConfig.cmake (found suitable version "1.77.0", minimum required is "1.42.0")
-- Found Boost 1.77.0 at /gnu/store/y5k4wr58l9ypj10v5vjbawvh2ls1kynp-boost-1.77.0/lib/cmake/Boost-1.77.0
-- Requested configuration: QUIET REQUIRED COMPONENTS python310
-- BoostConfig: find_package(boost_headers 1.77.0 EXACT CONFIG REQUIRED QUIET HINTS /gnu/store/y5k4wr58l9ypj10v5vjbawvh2ls1kynp-boost-1.77.0/lib/cmake)
-- BoostConfig: find_package(boost_python310 1.77.0 EXACT CONFIG REQUIRED QUIET HINTS /gnu/store/y5k4wr58l9ypj10v5vjbawvh2ls1kynp-boost-1.77.0/lib/cmake)
CMake Error at /gnu/store/y5k4wr58l9ypj10v5vjbawvh2ls1kynp-boost-1.77.0/lib/cmake/Boost-1.77.0/BoostConfig.cmake:141 (find_package):
Could not find a package configuration file provided by "boost_python310"
(requested version 1.77.0) with any of the following names:
boost_python310Config.cmake
boost_python310-config.cmake
Add the installation prefix of "boost_python310" to CMAKE_PREFIX_PATH or
set "boost_python310_DIR" to a directory containing one of the above files.
If "boost_python310" provides a separate development package or SDK, be
sure it has been installed.
Call Stack (most recent call first):
/gnu/store/y5k4wr58l9ypj10v5vjbawvh2ls1kynp-boost-1.77.0/lib/cmake/Boost-1.77.0/BoostConfig.cmake:258 (boost_find_component)
/gnu/store/babm4v89na2dpvpydpm6dq4xgrabxl6k-cmake-minimal-3.21.3/share/cmake-3.21/Modules/FindBoost.cmake:594 (find_package)
src/py2geom/CMakeLists.txt:88 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/tmp/guix-build-lib2geom-1.1.drv-0/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/guix-build-lib2geom-1.1.drv-0/build/CMakeFiles/CMakeError.log".
error: in phase 'configure': uncaught exception:
%exception #<&invoke-error program: "cmake" arguments: ("../source" "-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-DCMAKE_INSTALL_PREFIX=/gnu/store/s2rfsjpdc35gf9lxwb7rl9saa7hpahzx-lib2geom-1.1" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE" "-DCMAKE_INSTALL_RPATH=/gnu/store/s2rfsjpdc35gf9lxwb7rl9saa7hpahzx-lib2geom-1.1/lib" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-D2GEOM_BUILD_SHARED=ON" "-D2GEOM_BOOST_PYTHON=ON" "-D2GEOM_CYTHON_BINDINGS=OFF") exit-status: 1 term-signal: #f stop-signal: #f>
phase `configure' failed after 1.0 seconds
command "cmake" "../source" "-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-DCMAKE_INSTALL_PREFIX=/gnu/store/s2rfsjpdc35gf9lxwb7rl9saa7hpahzx-lib2geom-1.1" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE" "-DCMAKE_INSTALL_RPATH=/gnu/store/s2rfsjpdc35gf9lxwb7rl9saa7hpahzx-lib2geom-1.1/lib" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-D2GEOM_BUILD_SHARED=ON" "-D2GEOM_BOOST_PYTHON=ON" "-D2GEOM_CYTHON_BINDINGS=OFF" failed with status 1
builder for `/gnu/store/58fc7m468gjcqx5j4x96jpx0x57iir51-lib2geom-1.1.drv' failed with exit code 1
build of /gnu/store/58fc7m468gjcqx5j4x96jpx0x57iir51-lib2geom-1.1.drv failed
This is using the current master branch (or 1.1, it fails the same).
I'm not sure who's to blame; it seems either Boost (1.77) or CMake (3.21.3), but it needs investigation.
Edited by Maxim Cournoyer