Bug#1114374: sfepy: FTBFS: /<<PKGBUILDDIR>>/sfepy/mechanics/extmods/contres.h:11:22: error: 'bool' cannot be defined via 'typedef'

Santiago Vila sanvila at debian.org
Fri Sep 5 19:26:10 BST 2025


Package: src:sfepy
Version: 2025.2-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build.

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202509/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

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

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:311: dh_auto_clean --buildsystem=cmake
   debian/rules execute_after_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf .pybuild
rm -rf _skbuild
rm -rf VERSION
rm -rf doc/_build
rm -rf doc/output
rm -rf doc/developer_guide.rst
rm -rf doc/solver_table.rst
rm -rf doc/src/sfepy/terms/terms_jax.rst
rm -rf doc/term_table.rst
rm -rf doc/field_table.rst
rm -rf site_cfg.py
find . -type f -name "version.h" -delete
find . -type f -name "*.so" -delete
find . -type f -name "*.pdf" -delete
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:311: dh_auto_configure --buildsystem=cmake --builddirectory=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build -- -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.13 -DPYTHON_LIBRARY:FILEPATH=/usr/lib/python3.13/config-3.13-x86_64-linux-gnu/libpython3.13.so -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.13 -DPython_EXECUTABLE=/usr/bin/python3.13 -DPython_LIBRARY=/usr/lib/python3.13/config-3.13-x86_64-linux-gnu/libpython3.13.so -DPython_INCLUDE_DIR=/usr/include/python3.13 -DPython3_EXECUTABLE=/usr/bin/python3.13 -DPython3_LIBRARY=/usr/lib/python3.13/config-3.13-x86_64-linux-gnu/libpython3.13.so -DPython3_INCLUDE_DIR=/usr/include/python3.13 
	cd .pybuild/cpython3_3.13/build && PKG_CONFIG=/usr/bin/pkg- [too-long-redacted] usr/include/python3.13 ../../..
-- The C compiler identification is GNU 15.2.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
CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:12 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/bin/python3.13 (found version "3.13.7")
CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:12 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonLibs: /usr/lib/python3.13/config-3.13-x86_64-linux-gnu/libpython3.13.so (found version "3.13.7")
-- Found Cython: /usr/bin/cython
-- Found NumPy: /usr/lib/x86_64-linux-gnu/python3-numpy/numpy/_core/include (found version "2.2.4")
-- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
-- Configuring done (0.9s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LOCALSTATEDIR
    CMAKE_INSTALL_RUNSTATEDIR
    CMAKE_INSTALL_SYSCONFDIR
    FETCHCONTENT_FULLY_DISCONNECTED
    Python3_EXECUTABLE
    Python3_INCLUDE_DIR
    Python3_LIBRARY
    Python_INCLUDE_DIR
    Python_LIBRARY


-- Build files have been written to: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build
   debian/rules execute_after_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p /<<PKGBUILDDIR>>/debian/HOME/.sfepy
# Build C extensions using scikit-build
python3 setup.py build_ext --inplace
igakit (optional) is missing; you may get run-time errors
petsc4py (optional) is missing; you may get run-time errors
slepc4py (optional) is missing; you may get run-time errors
pymetis (optional) is missing; you may get run-time errors
scikits.umfpack (optional) is missing; you may get run-time errors
psutil (optional) is missing; you may get run-time errors
opt_einsum (optional) is missing; you may get run-time errors
jax (optional) is missing; you may get run-time errors
dask (optional) is missing; you may get run-time errors
primme (optional) is missing; you may get run-time errors
oct2py (optional) is missing; you may get run-time errors
mumpspy (optional) is missing; you may get run-time errors
mumps (optional) is missing; you may get run-time errors
ipctk (optional) is missing; you may get run-time errors
pypardiso (optional) is missing; you may get run-time errors
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: BSD License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()


--------------------------------------------------------------------------------
-- Trying 'Ninja' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
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.

Not searching for unused variables given on the command line.

-- The C compiler identification is GNU 15.2.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
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /<<PKGBUILDDIR>>/_cmake_test_compile/build
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Ninja' generator - success
--------------------------------------------------------------------------------

Configuring Project
  Working directory:
    /<<PKGBUILDDIR>>/_skbuild/linux-x86_64-3.13/cmake-build
  Command:
    /usr/bin/cmake /<<PKGBUILDDIR>> -G Ninja --no-warn-unuse [too-long-redacted] CMAKE_BUILD_TYPE:STRING=Release

Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 15.2.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
CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:12 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/bin/python3 (found version "3.13.7")
CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:12 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.13.so (found version "3.13.7")
-- Found Cython: /usr/bin/cython
-- Found NumPy: /usr/lib/x86_64-linux-gnu/python3-numpy/numpy/_core/include (found version "2.2.4")
-- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
_modinit_prefix:PyInit_
-- Configuring done (0.6s)
-- Generating done (0.0s)
-- Build files have been written to: /<<PKGBUILDDIR>>/_skbuild/linux-x86_64-3.13/cmake-build
[1/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/sfepy_common.dir/common_python.c.o
[2/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/sfepy_common.dir/geommech.c.o
[3/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/sfepy_common.dir/fmfield.c.o
[4/66] Linking C static library sfepy/discrete/common/extmods/libsfepy_common.a
[5/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/form_sdcc.c.o
[6/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_basic.c.o
[7/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_adj_navier_stokes.c.o
[8/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_biot.c.o
[9/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_dot.c.o
[10/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_electric.c.o
[11/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_elastic.c.o
[12/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_diffusion.c.o
[13/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_op.c.o
[14/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_piezo.c.o
[15/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_surface.c.o
[16/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_volume.c.o
[17/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_navier_stokes.c.o
[18/66] Building C object sfepy/terms/extmods/CMakeFiles/sfepy_terms.dir/terms_hyperelastic.c.o
[19/66] Linking C static library sfepy/terms/extmods/libsfepy_terms.a
[20/66] Generating C source sfepy/discrete/common/extmods/_fmfield.c
[21/66] Generating C source sfepy/discrete/common/extmods/cmapping.c
[22/66] Generating C source sfepy/discrete/common/extmods/assemble.c
[23/66] Generating C source sfepy/discrete/common/extmods/crefcoors.c
[24/66] Generating C source sfepy/discrete/common/extmods/cmesh.c
[25/66] Generating C source sfepy/discrete/common/extmods/_geommech.c
[26/66] Generating C source sfepy/discrete/fem/extmods/bases.c
[27/66] Generating C source sfepy/discrete/fem/extmods/lobatto_bases.c
[28/66] Generating C source sfepy/discrete/iga/extmods/igac.c
[29/66] Generating C source sfepy/mechanics/extmods/ccontres.c
[30/66] Generating C source sfepy/terms/extmods/terms.c
[31/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/_fmfield.dir/_fmfield.c.o
[32/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/cmapping.dir/cmapping.c.o
[33/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/cmesh.dir/geomtrans.c.o
[34/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/cmesh.dir/mesh.c.o
[35/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/cmesh.dir/meshutils.c.o
/<<PKGBUILDDIR>>/sfepy/discrete/common/extmods/meshutils.c: In function ‘orient_elements’:
/<<PKGBUILDDIR>>/sfepy/discrete/common/extmods/meshutils.c:83:10: warning: ‘val’ may be used uninitialized [-Wmaybe-uninitialized]
   83 |       if (val < 0.0) {
      |          ^
/<<PKGBUILDDIR>>/sfepy/discrete/common/extmods/meshutils.c:41:57: note: ‘val’ was declared here
   41 |   float64 v0[3], v1[3], v2[3], v3[3], cross[3], dot[1], val;
      |                                                         ^~~
[36/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/cmesh.dir/sort.c.o
[37/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/cmesh.dir/common_python.c.o
[38/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/assemble.dir/assemble.c.o
[39/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/crefcoors.dir/refcoors.c.o
[40/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/crefcoors.dir/geomtrans.c.o
[41/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/crefcoors.dir/mesh.c.o
[42/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/crefcoors.dir/crefcoors.c.o
[43/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/_geommech.dir/_geommech.c.o
[44/66] Building C object sfepy/discrete/fem/extmods/CMakeFiles/bases.dir/lagrange.c.o
[45/66] Building C object sfepy/discrete/common/extmods/CMakeFiles/cmesh.dir/cmesh.c.o
[46/66] Building C object sfepy/discrete/fem/extmods/CMakeFiles/lobatto_bases.dir/lobatto.c.o
[47/66] Building C object sfepy/discrete/fem/extmods/CMakeFiles/lobatto_bases.dir/lobatto1d.c.o
[48/66] Building C object sfepy/discrete/fem/extmods/CMakeFiles/bases.dir/bases.c.o
[49/66] Building C object sfepy/discrete/iga/extmods/CMakeFiles/igac.dir/nurbs.c.o
[50/66] Building C object sfepy/mechanics/extmods/CMakeFiles/ccontres.dir/ccontres.c.o
FAILED: sfepy/mechanics/extmods/CMakeFiles/ccontres.dir/ccontres.c.o 
/usr/bin/cc -DNPY_NO_DEPRECATED_API=NPY_2_0_API_VERSION -DSFEPY_PLATFORM=0 -Dccontres_EXPORTS -Dinline=inline -I/<<PKGBUILDDIR>>/_skbuild/linux-x86_64-3.13/cmake-build/sfepy/mechanics/extmods -I/<<PKGBUILDDIR>>/sfepy/mechanics/extmods -I/usr/include/python3.13 -I/usr/lib/x86_64-linux-gnu/python3-numpy/numpy/_core/include -I/<<PKGBUILDDIR>>/sfepy/mechanics/extmods/../../discrete/common/extmods -g -O2 -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -O3 -DNDEBUG -fPIC -MD -MT sfepy/mechanics/extmods/CMakeFiles/ccontres.dir/ccontres.c.o -MF sfepy/mechanics/extmods/CMakeFiles/ccontres.dir/ccontres.c.o.d -o sfepy/mechanics/extmods/CMakeFiles/ccontres.dir/ccontres.c.o -c /<<PKGBUILDDIR>>/_skbuild/linux-x86_64-3.13/cmake-build/sfepy/mechanics/extmods/ccontres.c
In file included from /<<PKGBUILDDIR>>/_skbuild/linux-x86_64-3.13/cmake-build/sfepy/mechanics/extmods/ccontres.c:1232:
/<<PKGBUILDDIR>>/sfepy/mechanics/extmods/contres.h:11:22: error: ‘bool’ cannot be defined via ‘typedef’
   11 | typedef unsigned int bool;
      |                      ^~~~
/<<PKGBUILDDIR>>/sfepy/mechanics/extmods/contres.h:11:22: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
/<<PKGBUILDDIR>>/sfepy/mechanics/extmods/contres.h:11:1: warning: useless type name in empty declaration
   11 | typedef unsigned int bool;
      | ^~~~~~~
[51/66] Building C object sfepy/discrete/fem/extmods/CMakeFiles/lobatto_bases.dir/lobatto_bases.c.o
[52/66] Building C object sfepy/discrete/iga/extmods/CMakeFiles/igac.dir/igac.c.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py", line 668, in setup
    cmkr.make(make_args, install_target=cmake_install_target, env=env)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/skbuild/cmaker.py", line 696, in make
    self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/skbuild/cmaker.py", line 741, in make_impl
    raise SKBuildError(msg)

An error occurred while building with CMake.
  Command:
    /usr/bin/cmake --build . --target install --config Release --
  Install target:
    install
  Source directory:
    /<<PKGBUILDDIR>>
  Working directory:
    /<<PKGBUILDDIR>>/_skbuild/linux-x86_64-3.13/cmake-build
Please check the install target is valid and see CMake's output for more information.

make[1]: *** [debian/rules:29: execute_after_dh_auto_configure] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the debian-science-maintainers mailing list