Source: onnxruntime
Version: 1.16.3+dfsg-7
Severity: serious
Tags: ftbfs
Justification: FTBFS

This package failed build from source when test-built.

This was part of a Python 3.13 testing campaign, but it reproduces on
sid too.

Log snippet:

[ 10%] Building CXX object 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/ort_mutex.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY 
-DEIGEN_USE_THREADS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 
-DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 
-D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime 
-I/<<PKGBUILDDIR>>/include/onnxruntime/core/session 
-I/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime 
-I/usr/include/eigen3 -I/usr/include/safeint -g -O2 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 
-ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC 
-fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD 
-MT 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/ort_mutex.cc.o
 -MF 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/ort_mutex.cc.o.d
 -o 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/ort_mutex.cc.o
 -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/ort_mutex.cc
/<<PKGBUILDDIR>>/onnxruntime/core/providers/xnnpack/math/gemm.cc: In member 
function ‘virtual onnxruntime::common::Status 
onnxruntime::xnnpack::Gemm::PrePack(const onnxruntime::Tensor&, int, 
onnxruntime::AllocatorPtr, bool&, onnxruntime::PrePackedWeights*)’:
/<<PKGBUILDDIR>>/onnxruntime/core/providers/xnnpack/math/gemm.cc:157:7: error: 
cannot convert ‘xnn_operator**’ to ‘xnn_weights_cache_t’ {aka 
‘xnn_weights_cache_provider*’}
  157 |       &p);
      |       ^~
      |       |
      |       xnn_operator**
In file included from 
/<<PKGBUILDDIR>>/onnxruntime/core/providers/xnnpack/detail/utils.h:18,
                 from 
/<<PKGBUILDDIR>>/onnxruntime/core/providers/xnnpack/math/gemm.h:9,
                 from 
/<<PKGBUILDDIR>>/onnxruntime/core/providers/xnnpack/math/gemm.cc:4:
/usr/include/xnnpack.h:4312:23: note:   initializing argument 11 of ‘xnn_status 
xnn_create_fully_connected_nc_f32(size_t, size_t, size_t, size_t, const float*, 
const float*, float, float, uint32_t, xnn_code_cache_t, xnn_weights_cache_t, 
xnn_operator**)’
 4312 |   xnn_weights_cache_t weights_cache,
      |   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/providers/xnnpack/math/gemm.cc: In member 
function ‘virtual onnxruntime::common::Status 
onnxruntime::xnnpack::Gemm::Compute(onnxruntime::OpKernelContext*) const’:
/<<PKGBUILDDIR>>/onnxruntime/core/providers/xnnpack/math/gemm.cc:178:32: error: 
invalid conversion from ‘int64_t’ {aka ‘long int’} to ‘const float*’ 
[-fpermissive]
  178 |       trans_A_ == CblasNoTrans ? M_ : K_,  // Number of rows to multiply
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      |                                |
      |                                int64_t {aka long int}
/<<PKGBUILDDIR>>/onnxruntime/core/providers/xnnpack/math/gemm.cc:179:21: error: 
invalid conversion from ‘const float*’ to ‘float*’ [-fpermissive]
  179 |       A->Data<float>(),
      |       ~~~~~~~~~~~~~~^~
      |                     |
      |                     const float*
/<<PKGBUILDDIR>>/onnxruntime/core/providers/xnnpack/math/gemm.cc:176:55: error: 
too many arguments to function ‘xnn_status 
xnn_setup_fully_connected_nc_f32(xnn_operator_t, const float*, float*)’
  176 |   xnn_status status = xnn_setup_fully_connected_nc_f32(
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  177 |       op0_.get(),
      |       ~~~~~~~~~~~                                      
  178 |       trans_A_ == CblasNoTrans ? M_ : K_,  // Number of rows to multiply
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  179 |       A->Data<float>(),
      |       ~~~~~~~~~~~~~~~~~                                
  180 |       Y->MutableData<float>(),
      |       ~~~~~~~~~~~~~~~~~~~~~~~~                         
  181 |       t_pool);
      |       ~~~~~~~                                          
/usr/include/xnnpack.h:4320:17: note: declared here
 4320 | enum xnn_status xnn_setup_fully_connected_nc_f32(
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 10%] Building CXX object 
CMakeFiles/onnxruntime_mlas.dir/<<PKGBUILDDIR>>/onnxruntime/core/mlas/lib/halfgemm_kernel_neon.cpp.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY 
-DEIGEN_USE_THREADS -DNSYNC_ATOMIC_CPP11 -DORT_ENABLE_STREAM -DORT_NO_RTTI 
-DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE 
-I/<<PKGBUILDDIR>>/include/onnxruntime 
-I/<<PKGBUILDDIR>>/include/onnxruntime/core/session 
-I/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime 
-I/<<PKGBUILDDIR>>/onnxruntime/core/mlas/inc 
-I/<<PKGBUILDDIR>>/onnxruntime/core/mlas/lib -g -O2 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 
-ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC 
-fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD 
-MT 
CMakeFiles/onnxruntime_mlas.dir/<<PKGBUILDDIR>>/onnxruntime/core/mlas/lib/halfgemm_kernel_neon.cpp.o
 -MF 
CMakeFiles/onnxruntime_mlas.dir/<<PKGBUILDDIR>>/onnxruntime/core/mlas/lib/halfgemm_kernel_neon.cpp.o.d
 -o 
CMakeFiles/onnxruntime_mlas.dir/<<PKGBUILDDIR>>/onnxruntime/core/mlas/lib/halfgemm_kernel_neon.cpp.o
 -c /<<PKGBUILDDIR>>/onnxruntime/core/mlas/lib/halfgemm_kernel_neon.cpp
[ 10%] Building CXX object 
CMakeFiles/onnxruntime_framework.dir/<<PKGBUILDDIR>>/onnxruntime/core/framework/allocator_utils.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY 
-DEIGEN_USE_THREADS -DNSYNC_ATOMIC_CPP11 -DONNX_ML=1 -DONNX_NAMESPACE=onnx 
-DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 
-D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime 
-I/<<PKGBUILDDIR>>/include/onnxruntime/core/session 
-I/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime 
-I/usr/include/eigen3 -I/usr/include/safeint -g -O2 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 
-ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC 
-fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD 
-MT 
CMakeFiles/onnxruntime_framework.dir/<<PKGBUILDDIR>>/onnxruntime/core/framework/allocator_utils.cc.o
 -MF 
CMakeFiles/onnxruntime_framework.dir/<<PKGBUILDDIR>>/onnxruntime/core/framework/allocator_utils.cc.o.d
 -o 
CMakeFiles/onnxruntime_framework.dir/<<PKGBUILDDIR>>/onnxruntime/core/framework/allocator_utils.cc.o
 -c /<<PKGBUILDDIR>>/onnxruntime/core/framework/allocator_utils.cc
[ 10%] Building CXX object 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/stacktrace.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY 
-DEIGEN_USE_THREADS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 
-DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 
-D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime 
-I/<<PKGBUILDDIR>>/include/onnxruntime/core/session 
-I/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime 
-I/usr/include/eigen3 -I/usr/include/safeint -g -O2 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 
-ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC 
-fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD 
-MT 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/stacktrace.cc.o
 -MF 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/stacktrace.cc.o.d
 -o 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/stacktrace.cc.o
 -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/stacktrace.cc
[ 10%] Building CXX object 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/telemetry.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY 
-DEIGEN_USE_THREADS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 
-DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 
-D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime 
-I/<<PKGBUILDDIR>>/include/onnxruntime/core/session 
-I/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime 
-I/usr/include/eigen3 -I/usr/include/safeint -g -O2 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 
-ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC 
-fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD 
-MT 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/telemetry.cc.o
 -MF 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/telemetry.cc.o.d
 -o 
CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/telemetry.cc.o
 -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/telemetry.cc
make[3]: *** [CMakeFiles/onnxruntime_providers_xnnpack.dir/build.make:121: 
CMakeFiles/onnxruntime_providers_xnnpack.dir/<<PKGBUILDDIR>>/onnxruntime/core/providers/xnnpack/math/gemm.cc.o]
 Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1139: 
CMakeFiles/onnxruntime_providers_xnnpack.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....

If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/712021/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano

Reply via email to