Bug#1114714: pytango: FTBFS with NumPy 2.3
roehling at debian.org
roehling at debian.org
Mon Sep 8 20:44:33 BST 2025
Source: pytango
Version: 10.0.2-2
Severity: important
User: debian-python at lists.debian.org
Usertags: numpy2.3
Tags: ftbfs, forky, sid
Dear maintainer,
During a test rebuild for NumPy 2.3, pytango failed to rebuild.
Log Summary:
-------------------------------------------------------------------------------
[...]
* Building wheel...
*** scikit-build-core 0.11.1 using CMake 3.31.6 (wheel)
*** Configuring CMake...
loading initial cache file /tmp/tmpnhoul6u2/build/CMakeInit.txt
-- The CXX compiler identification is GNU 15.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZeroMQ: /usr/lib/x86_64-linux-gnu/libzmq.so
-- Found cppzmq: /usr/include/zmq.hpp
-- Found omniORB4: /usr/lib/x86_64-linux-gnu/libomniORB4.so found components: COS4 Dynamic4 thread
-- Found Tango: /usr/lib/x86_64-linux-gnu/libtango.so (found version "10.0.2")
-- Found Python: /usr/bin/python3.13 (found suitable version "3.13.7", minimum required is "3.9") found components: Interpreter Development NumPy Development.Module Development.Embed
-- Python version: 3.13.7
-- - intepreter: /usr/bin/python3.13
-- - libraries: /usr/lib/x86_64-linux-gnu/libpython3.13.so
-- - libraries: /usr/lib/x86_64-linux-gnu
-- NumPy version: 2.3.2
-- - include dir: /usr/lib/x86_64-linux-gnu/python3-numpy/numpy/_core/include
-- Found Boost 1.83.0 at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0
-- Requested configuration: REQUIRED COMPONENTS python313
-- Found boost_headers 1.83.0 at /usr/lib/x86_64-linux-gnu/cmake/boost_headers-1.83.0
-- Found boost_python 1.83.0 at /usr/lib/x86_64-linux-gnu/cmake/boost_python-1.83.0
-- [x] libboost_python313.so.1.83.0
-- [ ] libboost_python313.a
-- Adding boost_python dependencies: headers
-- Boost Python version: 3.13
-- Configuring done (1.0s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/tmpnhoul6u2/build
*** Building project with Unix Makefiles...
Change Dir: '/tmp/tmpnhoul6u2/build'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile
gmake[1]: Entering directory '/tmp/tmpnhoul6u2/build'
/usr/bin/cmake -S/build/reproducible-path/pytango-10.0.2 -B/tmp/tmpnhoul6u2/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /tmp/tmpnhoul6u2/build/CMakeFiles /tmp/tmpnhoul6u2/build//CMakeFiles/progress.marks
/usr/bin/gmake -f CMakeFiles/Makefile2 all
gmake[2]: Entering directory '/tmp/tmpnhoul6u2/build'
/usr/bin/gmake -f CMakeFiles/pytango_tango.dir/build.make CMakeFiles/pytango_tango.dir/depend
gmake[3]: Entering directory '/tmp/tmpnhoul6u2/build'
cd /tmp/tmpnhoul6u2/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/pytango-10.0.2 /build/reproducible-path/pytango-10.0.2 /tmp/tmpnhoul6u2/build /tmp/tmpnhoul6u2/build /tmp/tmpnhoul6u2/build/CMakeFiles/pytango_tango.dir/DependInfo.cmake "--color="
gmake[3]: Leaving directory '/tmp/tmpnhoul6u2/build'
/usr/bin/gmake -f CMakeFiles/pytango_tango.dir/build.make CMakeFiles/pytango_tango.dir/build
gmake[3]: Entering directory '/tmp/tmpnhoul6u2/build'
[ 1%] Building CXX object CMakeFiles/pytango_tango.dir/cmake_pch.hxx.gch
/usr/bin/x86_64-linux-gnu-g++ -DBOOST_PYTHON_DYN_LINK -DBOOST_PYTHON_NO_LIB -Dpytango_tango_EXPORTS -I/build/reproducible-path/pytango-10.0.2/ext -isystem /usr/include/python3.13 -isystem /usr/lib/x86_64-linux-gnu/python3-numpy/numpy/_core/include -g -O2 -ffile-prefix-map=/build/reproducible-path/pytango-10.0.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=3 -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -DPYTANGO_NUMPY_VERSION=2.3.2 -DNPY_NO_DEPRECATED_API=0 -Winvalid-pch -x c++-header -include /tmp/tmpnhoul6u2/build/CMakeFiles/pytango_tango.dir/cmake_pch.hxx -MD -MT CMakeFiles/pytango_tango.dir/cmake_pch.hxx.gch -MF CMakeFiles/pytango_tango.dir/cmake_pch.hxx.gch.d -o CMakeFiles/pytango_tango.dir/cmake_pch.hxx.gch -c /tmp/tmpnhoul6u2/build/CMakeFiles/pytango_tango.dir/cmake_pch.hxx.cxx
[ 2%] Building CXX object CMakeFiles/pytango_tango.dir/ext/device_attribute.cpp.o
/usr/bin/x86_64-linux-gnu-g++ -DBOOST_PYTHON_DYN_LINK -DBOOST_PYTHON_NO_LIB -Dpytango_tango_EXPORTS -I/build/reproducible-path/pytango-10.0.2/ext -isystem /usr/include/python3.13 -isystem /usr/lib/x86_64-linux-gnu/python3-numpy/numpy/_core/include -g -O2 -ffile-prefix-map=/build/reproducible-path/pytango-10.0.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=3 -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -DPYTANGO_NUMPY_VERSION=2.3.2 -DNPY_NO_DEPRECATED_API=0 -Winvalid-pch -include /tmp/tmpnhoul6u2/build/CMakeFiles/pytango_tango.dir/cmake_pch.hxx -MD -MT CMakeFiles/pytango_tango.dir/ext/device_attribute.cpp.o -MF CMakeFiles/pytango_tango.dir/ext/device_attribute.cpp.o.d -o CMakeFiles/pytango_tango.dir/ext/device_attribute.cpp.o -c /build/reproducible-path/pytango-10.0.2/ext/device_attribute.cpp
In file included from /build/reproducible-path/pytango-10.0.2/ext/fast_from_py.h:496,
from /build/reproducible-path/pytango-10.0.2/ext/device_attribute.h:18,
from /build/reproducible-path/pytango-10.0.2/ext/device_attribute.cpp:8:
/build/reproducible-path/pytango-10.0.2/ext/fast_from_py_numpy.hpp: In function ‘typename tango_name2type<tangoTypeConst>::Type* fast_python_to_tango_buffer_numpy(PyObject*, long int*, long int*, const std::string&, bool, long int&, long int&)’:
/build/reproducible-path/pytango-10.0.2/ext/fast_from_py_numpy.hpp:41:74: error: ‘NPY_C_CONTIGUOUS’ was not declared in this scope; did you mean ‘PyBUF_C_CONTIGUOUS’? [-Wtemplate-body]
41 | const bool exact_array = (PyArray_CHKFLAGS(to_PyArrayObject(py_val), NPY_C_CONTIGUOUS | NPY_ALIGNED) &&
| ^~~~~~~~~~~~~~~~
| PyBUF_C_CONTIGUOUS
/build/reproducible-path/pytango-10.0.2/ext/fast_from_py_numpy.hpp:41:93: error: ‘NPY_ALIGNED’ was not declared in this scope; did you mean ‘Py_ALIGNED’? [-Wtemplate-body]
41 | const bool exact_array = (PyArray_CHKFLAGS(to_PyArrayObject(py_val), NPY_C_CONTIGUOUS | NPY_ALIGNED) &&
| ^~~~~~~~~~~
| Py_ALIGNED
/build/reproducible-path/pytango-10.0.2/ext/fast_from_py_numpy.hpp: In function ‘typename tango_name2arraytype<tangoArrayTypeConst>::ElementsType* fast_python_to_corba_buffer_numpy(PyObject*, long int*, const std::string&, long int&)’:
/build/reproducible-path/pytango-10.0.2/ext/fast_from_py_numpy.hpp:204:74: error: ‘NPY_C_CONTIGUOUS’ was not declared in this scope; did you mean ‘PyBUF_C_CONTIGUOUS’? [-Wtemplate-body]
204 | const bool exact_array = (PyArray_CHKFLAGS(to_PyArrayObject(py_val), NPY_C_CONTIGUOUS | NPY_ALIGNED) &&
| ^~~~~~~~~~~~~~~~
| PyBUF_C_CONTIGUOUS
/build/reproducible-path/pytango-10.0.2/ext/fast_from_py_numpy.hpp:204:93: error: ‘NPY_ALIGNED’ was not declared in this scope; did you mean ‘Py_ALIGNED’? [-Wtemplate-body]
204 | const bool exact_array = (PyArray_CHKFLAGS(to_PyArrayObject(py_val), NPY_C_CONTIGUOUS | NPY_ALIGNED) &&
| ^~~~~~~~~~~
| Py_ALIGNED
gmake[3]: *** [CMakeFiles/pytango_tango.dir/build.make:96: CMakeFiles/pytango_tango.dir/ext/device_attribute.cpp.o] Error 1
gmake[3]: Leaving directory '/tmp/tmpnhoul6u2/build'
gmake[2]: *** [CMakeFiles/Makefile2:87: CMakeFiles/pytango_tango.dir/all] Error 2
gmake[2]: Leaving directory '/tmp/tmpnhoul6u2/build'
gmake[1]: *** [Makefile:136: all] Error 2
gmake[1]: Leaving directory '/tmp/tmpnhoul6u2/build'
*** CMake build failed
ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /build/reproducible-path/pytango-10.0.2/.pybuild/cpython3_3.13_tango
dh_auto_build: error: pybuild --build -i python{version} -p 3.13 returned exit code 13
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-09-08T06:56:48Z
-------------------------------------------------------------------------------
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/debian/developers-roehling.numpy/artifact/2454145/
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/debian/developers-roehling.numpy/work-request/163742/
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.
Cheers
Timo
More information about the debian-science-maintainers
mailing list