Fedora Account System
Red Hat Associate
Red Hat Customer
onnxruntime failed to build from source in Fedora rawhide/f43 https://koji.fedoraproject.org/koji/taskinfo?taskID=135224609 For details on the mass rebuild see: https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild Please fix onnxruntime at your earliest convenience and set the bug's status to ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks, onnxruntime will be orphaned. Before branching of Fedora 44, onnxruntime will be retired, if it still fails to build. For more details on the FTBFS policy, please visit: https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
Created attachment 2101004 [details] build.log
Created attachment 2101005 [details] root.log file root.log too big, will only attach last 32768 bytes
Created attachment 2101006 [details] state.log
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle. Changing version to 45.
This package currently fails to build from source due to: In file included from /usr/include/gtest/gtest.h:71, from /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/unittest_util/framework_test_utils.h:13, from /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:28: /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc: In member function ‘onnxruntime::test::QDQTransformerTests_ReluQuantFusion_Level2Only_Test::TestBody()::{lambda(onnxruntime::TransformerLevel, signed char)#1}::operator()(onnxruntime::TransformerLevel, signed char) const::{lambda(onnxruntime::test::InferenceSessionWrapper&)#1}::operator()(onnxruntime::test::InferenceSessionWrapper&) const’: /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:3203:38: error: ‘qdq_keys.quantize_linear’ is used uninitialized [-Werror=uninitialized] 3203 | EXPECT_EQ(op_to_count[qdq_keys.quantize_linear], fuse_relu ? 0 : 1); | ~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:3197:23: note: ‘qdq_keys.715’ declared here 3197 | const QDQOpKeys qdq_keys = GetQDQOpKeys(false); | ^~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc: In member function ‘onnxruntime::test::QDQTransformerTests_WeightBiasQuantization_SkipIfOutputNotQuantized_Test::TestBody()::{lambda(bool)#1}::operator()(bool) const::{lambda(onnxruntime::test::InferenceSessionWrapper&)#1}::operator()(onnxruntime::test::InferenceSessionWrapper&) const’: /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:5895:38: error: ‘qdq_keys.dequantize_linear’ is used uninitialized [-Werror=uninitialized] 5895 | EXPECT_EQ(op_to_count[qdq_keys.dequantize_linear], 1); | ~~~~~~~~~^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:5892:23: note: ‘qdq_keys.913’ declared here 5892 | const QDQOpKeys qdq_keys = GetQDQOpKeys(false); | ^~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc: In member function ‘onnxruntime::test::QDQTransformerTests_QDQPropagation_QBackward_NoZP_OutputDtypeAttribute_Test::TestBody()::{lambda(onnx::TensorProto_DataType)#1}::operator()(onnx::TensorProto_DataType) const::{lambda(onnxruntime::test::InferenceSessionWrapper&)#1}::operator()(onnxruntime::test::InferenceSessionWrapper&) const’: /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:3817:20: error: ‘qdq_keys.quantize_linear’ is used uninitialized [-Werror=uninitialized] 3817 | qdq_keys.quantize_linear, | ~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:3814:23: note: ‘qdq_keys.789’ declared here 3814 | const QDQOpKeys qdq_keys = GetQDQOpKeys(false); | ^~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:3818:20: error: ‘qdq_keys.dequantize_linear’ is used uninitialized [-Werror=uninitialized] 3818 | qdq_keys.dequantize_linear, | ~~~~~~~~~^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:3814:23: note: ‘qdq_keys.789’ declared here 3814 | const QDQOpKeys qdq_keys = GetQDQOpKeys(false); | ^~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:3820:20: error: ‘qdq_keys.quantize_linear’ is used uninitialized [-Werror=uninitialized] 3820 | qdq_keys.quantize_linear, | ~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:3814:23: note: ‘qdq_keys.789’ declared here 3814 | const QDQOpKeys qdq_keys = GetQDQOpKeys(false); | ^~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc: In member function ‘onnxruntime::test::QDQTransformerTests_QDQPropagation_DQForward_SliceMultipleConsumers_Test::TestBody()::{lambda(bool)#1}::operator()(bool) const::{lambda(onnxruntime::test::InferenceSessionWrapper&)#1}::operator()(onnxruntime::test::InferenceSessionWrapper&) const’: /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:4257:51: error: ‘qdq_keys.dequantize_linear’ is used uninitialized [-Werror=uninitialized] 4257 | {qdq_keys.dequantize_linear, | ~~~~~~~~~^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:4253:23: note: ‘qdq_keys.830’ declared here 4253 | const QDQOpKeys qdq_keys = GetQDQOpKeys(false); | ^~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:4259:51: error: ‘qdq_keys.quantize_linear’ is used uninitialized [-Werror=uninitialized] 4259 | qdq_keys.quantize_linear}); | ~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/onnxruntime-1.26.0-build/onnxruntime-1.26.0/onnxruntime/test/optimizer/qdq_transformer_test.cc:4253:23: note: ‘qdq_keys.830’ declared here 4253 | const QDQOpKeys qdq_keys = GetQDQOpKeys(false); | ^~~~~~~~ cc1plus: all warnings being treated as errors Looking at the code in question, I can’t see how this is the case, as qdq_keys is in each case assigned from the constexpr function GetQDQOpKeys(), which always returns an initialized struct. Perhaps this should be added to 0007-GCC-false-positives.patch? But the GCC team might also be interested, if this is truly a false positive. In any case, I would suggest that, given the constant change in dependencies and compiler versions, compiling with -Werror is too strict for distribution packaging in general. I’m planning to update abseil-cpp in Rawhide soon, which will require its reverse dependencies to be rebuilt, including onnxruntime. I do not wish to skip rebuilding onnxruntime, because this would cause it to fail to install, and that would break the packages that depend on it: calibre, crow-translate, darktable, and python-piper-tts. Could you please find a little time to take a look at this and resolve the FTBFS in your preferred way?
https://src.fedoraproject.org/rpms/onnxruntime/pull-request/21 https://src.fedoraproject.org/rpms/onnxruntime/pull-request/22
FEDORA-2026-de31921a47 (onnxruntime-1.26.0-13.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-de31921a47
merged one of those prs, so now its in queue for an update :thumbsup: thx @ben for the help!
FEDORA-2026-de31921a47 has been pushed to the Fedora 45 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-de31921a47` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-de31921a47 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2026-de31921a47 (onnxruntime-1.26.0-13.fc45) has been pushed to the Fedora 45 stable repository. If problem still persists, please make note of it in this bug report.