Bug 2385363 - onnxruntime: FTBFS in Fedora rawhide/f43
Summary: onnxruntime: FTBFS in Fedora rawhide/f43
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: onnxruntime
Version: 45
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Diego Herrera
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: F43FTBFS
TreeView+ depends on / blocked
 
Reported: 2025-07-31 09:28 UTC by Fedora Release Engineering
Modified: 2026-10-31 18:31 UTC (History)
5 users (show)

Fixed In Version: onnxruntime-1.26.0-13.fc45
Clone Of:
Environment:
Last Closed: 2026-10-31 18:31:21 UTC
Type: ---
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)
build.log (3.07 KB, text/plain)
2025-07-31 09:28 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2025-07-31 09:28 UTC, Fedora Release Engineering
no flags Details
state.log (1.51 KB, text/plain)
2025-07-31 09:28 UTC, Fedora Release Engineering
no flags Details

Description Fedora Release Engineering 2025-07-31 09:28:34 UTC
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/

Comment 1 Fedora Release Engineering 2025-07-31 09:28:39 UTC
Created attachment 2101004 [details]
build.log

Comment 2 Fedora Release Engineering 2025-07-31 09:28:48 UTC
Created attachment 2101005 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2025-07-31 09:28:51 UTC
Created attachment 2101006 [details]
state.log

Comment 4 Fedora Admin user for bugzilla script actions 2025-10-31 15:02:17 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 5 Aoife Moloney 2026-08-17 13:56:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.

Comment 6 Ben Beasley 2026-09-18 05:40:47 UTC
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?

Comment 8 Fedora Update System 2026-10-06 19:17:00 UTC
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

Comment 9 Diego Herrera 2026-10-06 19:19:10 UTC
merged one of those prs, so now its in queue for an update :thumbsup:
thx @ben for the help!

Comment 10 Fedora Update System 2026-10-07 02:00:02 UTC
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.

Comment 11 Fedora Update System 2026-10-31 18:31:21 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.