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

Bug#1117355: onnxruntime: FTBFS: /usr/include/pybind11/pybind11.h:1830:92: error: 'SR.26039' is used uninitialized [-Werror=uninitialized]



Package: src:onnxruntime
Version: 1.21.0+dfsg-2
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

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

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

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

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

Thanks.

--------------------------------------------------------------------------------
[...]
[616/619] : && /usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -Wl,-z,relro -Wl,-z,now -Wl,-rpath='$ORIGIN'    -Wl,--dependency-file=CMakeFiles/onnxruntime_mlas_q4dq.dir/link.d CMakeFiles/onnxruntime_mlas_q4dq.dir/onnxruntime/core/mlas/lib/q4_dq_cli.cpp.o -o onnxruntime_mlas_q4dq  libonnxruntime_mlas.a  libonnxruntime_common.a  /usr/lib/x86_64-linux-gnu/libcpuinfo.so.0  -ldl && :
[617/619] /usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISA [too-long-redacted] hon/onnxruntime_pybind_state.cc
FAILED: CMakeFiles/onnxruntime_pybind11_state.dir/onnxruntime/python/onnxruntime_pybind_state.cc.o 
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL [too-long-redacted] hon/onnxruntime_pybind_state.cc
In file included from /<<PKGBUILDDIR>>/onnxruntime/python/onnxruntime_pybind.h:18,
                 from /<<PKGBUILDDIR>>/onnxruntime/python/onnxruntime_pybind_exceptions.h:6,
                 from /<<PKGBUILDDIR>>/onnxruntime/python/onnxruntime_pybind_state.cc:5:
In static member function â??static pybind11::cpp_function pybind11::detail::property_cpp_function_classic<T, D>::readonly(PM, const pybind11::handle&) [with PM = std::__cxx11::basic_string<char> onnxruntime::ModelMetadata::*; typename std::enable_if<std::is_member_pointer<PM>::value, int>::type <anonymous> = 0; T = onnxruntime::ModelMetadata; D = std::__cxx11::basic_string<char>]â??,
    inlined from â??static pybind11::cpp_function pybind11::detail::property_cpp_function_classic<T, D>::read(PM, const pybind11::handle&) [with PM = std::__cxx11::basic_string<char> onnxruntime::ModelMetadata::*; typename std::enable_if<std::is_member_pointer<PM>::value, int>::type <anonymous> = 0; T = onnxruntime::ModelMetadata; D = std::__cxx11::basic_string<char>]â?? at /usr/include/pybind11/pybind11.h:1835:32,
    inlined from â??pybind11::class_<type_, options>& pybind11::class_<type_, options>::def_readwrite(const char*, D C::*, const Extra& ...) [with C = onnxruntime::ModelMetadata; D = std::__cxx11::basic_string<char>; Extra = {char [14]}; type_ = onnxruntime::ModelMetadata; options = {}]â?? at /usr/include/pybind11/pybind11.h:2260:58,
    inlined from â??void onnxruntime::python::addObjectMethods(pybind11::module&, ExecutionProviderRegistrationFn)â?? at /<<PKGBUILDDIR>>/onnxruntime/python/onnxruntime_pybind_state.cc:1934:21:
/usr/include/pybind11/pybind11.h:1830:92: error: â??SR.26039â?? is used uninitialized [-Werror=uninitialized]
 1830 |         return cpp_function([pm](const T &c) -> const D & { return c.*pm; }, is_method(hdl));
      |                                                                                            ^
/usr/include/pybind11/pybind11.h: In function â??void onnxruntime::python::addObjectMethods(pybind11::module&, ExecutionProviderRegistrationFn)â??:
/usr/include/pybind11/pybind11.h:2260:58: note: â??SR.26039â?? was declared here
 2260 |                      property_cpp_function<type, D>::read(pm, *this),
      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.
dh_auto_build: error: LC_ALL=C.UTF-8 ninja -j2 -v returned exit code 1
make[1]: *** [debian/rules:62: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:38: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------


Reply to: