Source: scikit-build
Version: 0.18.1-2
Severity: serious
User: [email protected]
Usertags: cmake-4
Tags: ftbfs, forky, sid

Dear maintainer,

During a test rebuild for CMake 4, scikit-build failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
cmake_install_target_from_command = ''
cmake_install_target_from_setup = 'install'
cmake_languages = ('C', 'CXX')
cmake_minimum_required_version = None
cmake_process_manifest_hook = None
cmake_source_dir = '../../'
cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 
'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': 
'4.1.1'}
cmake_with_sdist = False
cmdclass   = {'bdist': <class 'skbuild.command.bdist.bdist'>, 'bdist_wheel': 
<class 'skbuild.command.bdist_wheel.bdist_wheel'>, 'build': <class 
'skbuild.command.build.build'>, 'build_ext': <class 
'skbuild.command.build_ext.build_ext'>, ...}
cmkr       = <skbuild.cmaker.CMaker object at 0xffffb2c4b4d0>
commands   = ['bdist_wheel']
config_type = 'Release'
data_files = {}
developer_mode = False
display_only = False
env        = None
env_cmake_args = []
force_cmake = False
has_cmakelists = True
has_invalid_arguments = False
help_commands = False
hide_listing = False
kw         = {'author': 'The scikit-build team', 'cmdclass': {'bdist': <class 
'skbuild.command.bdist.bdist'>, 'bdist_wheel': 
<class...d.command.build_ext.build_ext'>, ...}, 'description': 'a minimal 
example package (cpp version)', 'license': 'MIT', ...}
make_args  = ['--config', 'Release']
new_py_modules = {}
new_scripts = {}
package_data = {}
package_dir = {}
packages   = ['hello']
plat_name  = None
py_modules = []
scripts    = []
skip_cmake = False
skip_generator_test = False
skip_skbuild = False
traceback  = <module 'traceback' from '/usr/lib/python3.13/traceback.py'>

skbuild/setuptools_wrap.py:677: SystemExit
----------------------------- Captured stdout call -----------------------------
Initialized empty Git repository in 
/tmp/pytest-of-sbuild/pytest-51/test_bdist_wheel_command0/.git/
[master (root-commit) 67400bc] Initial commit
 4 files changed, 52 insertions(+)
 create mode 100644 CMakeLists.txt
 create mode 100644 wrapping/python/CMakeLists.txt
 create mode 100644 wrapping/python/hello/__init__.py
 create mode 100644 wrapping/python/setup.py


--------------------------------------------------------------------------------
-- Trying 'Ninja' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
Not searching for unused variables given on the command line.
-- Configuring incomplete, errors occurred!
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Ninja' generator - failure
--------------------------------------------------------------------------------



--------------------------------------------------------------------------------
-- Trying 'Unix Makefiles' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 14.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 14.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (1.1s)
-- Generating done (0.0s)
-- Build files have been written to: 
/tmp/pytest-of-sbuild/pytest-51/test_bdist_wheel_command0/wrapping/python/_cmake_test_compile/build
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Unix Makefiles' generator - success
--------------------------------------------------------------------------------

Configuring Project
  Working directory:
    
/tmp/pytest-of-sbuild/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-aarch64-3.13/cmake-build
  Command:
    /usr/bin/cmake /tmp/pytest-of-sbuild/pytest-51/test_bdist_wheel_command0 -G 
'Unix Makefiles' --no-warn-unused-cli 
-DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-sbuild/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-aarch64-3.13/cmake-install
 -DPYTHON_VERSION_STRING:STRING=3.13.7 -DSKBUILD:INTERNAL=TRUE 
-DCMAKE_MODULE_PATH:PATH=/build/reproducible-path/scikit-build-0.18.1/skbuild/resources/cmake
 -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.13 
-DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.13 
-DPYTHON_LIBRARY:PATH=/usr/lib/aarch64-linux-gnu/libpython3.13.so 
-DPython_EXECUTABLE:PATH=/usr/bin/python3.13 -DPython_ROOT_DIR:PATH=/usr 
-DPython_FIND_REGISTRY:STRING=NEVER 
-DPython_INCLUDE_DIR:PATH=/usr/include/python3.13 
-DPython3_EXECUTABLE:PATH=/usr/bin/python3.13 -DPython3_ROOT_DIR:PATH=/usr 
-DPython3_FIND_REGISTRY:STRING=NEVER 
-DPython3_INCLUDE_DIR:PATH=/usr/include/python3.13 
-DCMAKE_BUILD_TYPE:STRING=Release

Not searching for unused variables given on the command line.
-- Configuring incomplete, errors occurred!
----------------------------- Captured stderr call -----------------------------
hint: Using 'master' as the name for the initial branch. This default branch 
name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint:   git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m <name>
hint:
hint: Disable this message with "git config set advice.defaultBranchName false"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Error: CMake was unable to find a build program corresponding to "Ninja". 
 CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build 
tool.
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


Traceback (most recent call last):
  File 
"/build/reproducible-path/scikit-build-0.18.1/skbuild/setuptools_wrap.py", line 
660, in setup
    env = cmkr.configure(
        cmake_args,
    ...<3 lines>...
        languages=cmake_languages,
    )
  File "/build/reproducible-path/scikit-build-0.18.1/skbuild/cmaker.py", line 
354, in configure
    raise SKBuildError(msg)

=========================== short test summary info ============================
SKIPPED [1] tests/test_hello_fortran.py:19: could not import 'numpy': No module 
named 'numpy'
SKIPPED [3] tests/test_outside_project_root.py:19: deprecation warning with 
setuptools 75.x
SKIPPED [1] tests/test_platform.py:120: Requires Windows
SKIPPED [1] tests/test_setup.py:319: pypi.org website not reachable
SKIPPED [24] tests/test_setup.py:583: unsupported configuration: python package 
fully generated by CMake does *NOT* work. At least __init__.py should be in the 
project source tree
SKIPPED [1] tests/test_skbuild.py:84: NMake Makefiles generator is not 
available on Linux
SKIPPED [3] tests/test_skbuild.py:130: Requires Windows
SKIPPED [1] tests/test_skbuild.py:154: Requires Windows
FAILED tests/test_cmaker.py::test_make_without_configure_fails - AssertionErr...
FAILED tests/test_issue335_support_cmake_source_dir.py::test_bdist_wheel_command
===== 2 failed, 185 passed, 35 skipped, 17 deselected in 113.33s (0:01:53) =====
make[1]: *** [debian/rules:35: override_dh_auto_test] Error 1
make[1]: Leaving directory '/build/reproducible-path/scikit-build-0.18.1'
make: *** [debian/rules:24: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-08-30T18:37:46Z

-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/2410796/

The most likely cause of build failures is the removed backwards compatibility 
for
CMake versions earlier than 3.5. You can find additional information in my
debian-devel announcement:

https://lists.debian.org/debian-devel/2025/04/msg00310.html

About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.

You can find the build task here:
https://debusine.debian.net/work-request/154815/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks,
Timo

Reply via email to