[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1116832: onnx: FTBFS with the nocheck build profile



Package: src:onnx
Version: 1.17.0-3
Severity: important
Tags: forky sid ftbfs
User: debian-qa@lists.debian.org
Usertags: ftbfs-nocheck-profile

Dear maintainer:

During a rebuild of all packages in unstable using the nocheck build profile,
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/

A wiki page discussing how to reproduce bugs in this category and
possible solutions is available here:

https://wiki.debian.org/qa.debian.org/FTBFS/Nocheck

(It's a wiki, so you are welcome to contribute)

[ Note: This is RC, but I will wait at least two weeks before raising
the severities, there are a lot of gcc-15 and CMake 4 bugs open now ].

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:onnx, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean -Spybuild --with python3
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_clean -Scmake
dh_auto_clean -Spybuild
I: pybuild base:311: python3.13 setup.py clean 
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!

        ********************************************************************************
        Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

        By 2026-Feb-18, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

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

!!
  corresp(dist, value, root_dir)
/usr/lib/python3/dist-packages/ptr.py:38: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!

        ********************************************************************************
        Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

        This deprecation is overdue, please update your project and remove deprecated
        calls to avoid build errors in the future.
        ********************************************************************************

!!
  class PyTest(orig.test):
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.13' does not exist -- can't clean it
rm -f -rf .setuptools-cmake-build
# XXX: those are auto generated files.
rm -f onnx/onnx_data_pb.py onnx/onnx_data_pb2.py onnx/onnx_data_pb2.pyi \
	onnx/onnx_ml_pb2.py onnx/onnx_ml_pb2.pyi onnx/onnx_operators_ml_pb2.py \
	onnx/onnx_operators_ml_pb2.pyi onnx/onnx_operators_pb.py onnx/onnx_pb.py \
	onnx/version.py
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean -O-Spybuild
 debian/rules binary
dh binary -Spybuild --with python3
   dh_update_autotools_config -O-Spybuild
   dh_autoreconf -O-Spybuild
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# XXX: the find | sed command is written in fix-shebang.patch
#find . -type f -name '*.py' -exec \
    #    sed -i -e 's@#!/usr/bin/env python@#!/usr/bin/python3@' '{}' +
dh_auto_configure -Scmake -- -DONNX_USE_PROTOBUF_SHARED_LIBS=ON -DBUILD_SHARED_LIBS=ON -DONNX_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_ONNX_PYTHON=ON -Dprotobuf_BUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_VERBOSE_MAKEFILE=ON
	cd obj-x86_64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DBUILD_TESTING:BOOL=OFF -DONNX_USE_PROTOBUF_SHARED_LIBS=ON -DBUILD_SHARED_LIBS=ON -DONNX_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_ONNX_PYTHON=ON -Dprotobuf_BUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_VERBOSE_MAKEFILE=ON ..
-- The C compiler identification is GNU 15.2.0
-- The CXX 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
-- 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
CMake Warning (dev) at CMakeLists.txt:107 (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.

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 CMakeLists.txt:109 (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.

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 Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so (found version "3.21.12")
-- ONNX_PROTOC_EXECUTABLE: /usr/bin/protoc
-- Protobuf_VERSION: 3.21.12
Generated: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/onnx/onnx-ml.proto
Generated: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/onnx/onnx-operators-ml.proto
Generated: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/onnx/onnx-data.proto
CMake Warning (dev) at /usr/lib/cmake/pybind11/FindPythonLibsNew.cmake:101 (message):
  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, or
  preferably upgrade to using FindPython, either by calling it explicitly
  before pybind11, or by setting PYBIND11_FINDPYTHON ON before pybind11.
Call Stack (most recent call first):
  /usr/lib/cmake/pybind11/pybind11Tools.cmake:44 (find_package)
  /usr/lib/cmake/pybind11/pybind11Common.cmake:226 (include)
  /usr/lib/cmake/pybind11/pybind11Config.cmake:257 (include)
  CMakeLists.txt:560 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.13.7", minimum required is "3.8")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.13.so
-- Performing Test HAS_FLTO_AUTO
-- Performing Test HAS_FLTO_AUTO - Success
-- Found pybind11: /usr/include (found version "3.0.1")
-- 
-- ******** Summary ********
--   CMake version                     : 3.31.6
--   CMake command                     : /usr/bin/cmake
--   System                            : Linux
--   C++ compiler                      : /usr/bin/c++
--   C++ compiler version              : 15.2.0
--   CXX flags                         : -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wnon-virtual-dtor
--   Build type                        : Release
--   Compile definitions               : __STDC_FORMAT_MACROS
--   CMAKE_PREFIX_PATH                 : 
--   CMAKE_INSTALL_PREFIX              : /usr
--   CMAKE_MODULE_PATH                 : 
-- 
--   ONNX version                      : 1.17.0
--   ONNX NAMESPACE                    : onnx
--   ONNX_USE_LITE_PROTO               : OFF
--   USE_PROTOBUF_SHARED_LIBS          : ON
--   Protobuf_USE_STATIC_LIBS          : OFF
--   ONNX_DISABLE_EXCEPTIONS           : OFF
--   ONNX_DISABLE_STATIC_REGISTRATION  : OFF
--   ONNX_WERROR                       : OFF
--   ONNX_BUILD_TESTS                  : OFF
--   ONNX_BUILD_SHARED_LIBS            : 
--   BUILD_SHARED_LIBS                 : ON
-- 
--   Protobuf compiler                 : /usr/bin/protoc
--   Protobuf includes                 : /usr/include
--   Protobuf libraries                : /usr/lib/x86_64-linux-gnu/libprotobuf.so
--   BUILD_ONNX_PYTHON                 : ON
--     Python version                : 
--     Python executable             : /usr/bin/python3
--     Python includes               : /usr/include/python3.13
-- Configuring done (0.8s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
    FETCHCONTENT_FULLY_DISCONNECTED
    protobuf_BUILD_SHARED_LIBS
    protobuf_BUILD_TESTS


-- Build files have been written to: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
dh_auto_configure -Spybuild
I: pybuild base:311: python3.13 setup.py config 
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!

        ********************************************************************************
        Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

        By 2026-Feb-18, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

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

!!
  corresp(dist, value, root_dir)
/usr/lib/python3/dist-packages/ptr.py:38: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!

        ********************************************************************************
        Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

        This deprecation is overdue, please update your project and remove deprecated
        calls to avoid build errors in the future.
        ********************************************************************************

!!
  class PyTest(orig.test):
running config
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
: # so things won't be built again while installing
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
:
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   create-stamp debian/debhelper-build-stamp
   dh_prep -O-Spybuild
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_install -Scmake
	cd obj-x86_64-linux-gnu && make -j2 install DESTDIR=/<<PKGBUILDDIR>>/debian/tmp AM_UPDATE_INFO_DIR=no INSTALL="install --strip-program=true"
make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
/usr/bin/cmake -S/<<PKGBUILDDIR>> -B/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f CMakeFiles/gen_onnx_proto.dir/build.make CMakeFiles/gen_onnx_proto.dir/depend
make[4]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/gen_onnx_proto.dir/DependInfo.cmake "--color="
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f CMakeFiles/gen_onnx_proto.dir/build.make CMakeFiles/gen_onnx_proto.dir/build
make[4]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[  1%] Running gen_proto.py on onnx/onnx.in.proto
/usr/bin/python3 /<<PKGBUILDDIR>>/onnx/gen_proto.py -p onnx -o /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/onnx onnx -m
Processing /<<PKGBUILDDIR>>/onnx/onnx.in.proto
Writing /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/onnx/onnx-ml.proto
Writing /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/onnx/onnx-ml.proto3
generating /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/onnx/onnx_pb.py
[  2%] Running C++ protocol buffer compiler on /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/onnx/onnx-ml.proto
/usr/bin/protoc /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/onnx/onnx-ml.proto -I /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu --cpp_out dllexport_decl=ONNX_API:/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu --python_out /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu --plugin protoc-gen-mypy=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tools/protoc-gen-mypy.sh --mypy_out dllexport_decl=ONNX_API:/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tools/protoc-gen-mypy.py", line 29, in <module>
    import google.protobuf.descriptor_pb2 as d_typed
ModuleNotFoundError: No module named 'google'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tools/protoc-gen-mypy.py", line 32, in <module>
    raise RuntimeError("Failed to generate mypy stubs") from e
RuntimeError: Failed to generate mypy stubs
--mypy_out: protoc-gen-mypy: Plugin failed with status code 1.
make[4]: *** [CMakeFiles/gen_onnx_proto.dir/build.make:77: onnx/onnx-ml.pb.cc] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:99: CMakeFiles/gen_onnx_proto.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [Makefile:139: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_install: error: cd obj-x86_64-linux-gnu && make -j2 install DESTDIR=/<<PKGBUILDDIR>>/debian/tmp AM_UPDATE_INFO_DIR=no INSTALL="install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:32: override_dh_auto_install] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:16: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------


Reply to: