[Bug 2092286] Re: onnxruntime fails to build on amd64 and arm64
Simon Quigley
2092286 at bugs.launchpad.net
Fri Dec 20 20:17:15 UTC 2024
This seems reasonable for Ubuntu, but I'm not sure dpkg has -O3 in
Debian. See https://launchpad.net/ubuntu/+source/dpkg/1.22.11ubuntu2 -
I'm not the Debian maintainer, but it's somewhat likely it'll be
rejected.
No big deal, uploading your change to Ubuntu.
** Changed in: onnxruntime (Ubuntu)
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2092286
Title:
onnxruntime fails to build on amd64 and arm64
Status in onnxruntime package in Ubuntu:
Fix Committed
Bug description:
The package onnxruntime is currently FTBFS on amd64 and arm64.
```
[980/991] : && /usr/bin/c++ -g -O3 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/onnxruntime-1.19.2+dfsg-2 -Wdate-time -D_FORTIFY_SOURCE=3 -ffunction-sections -fdata-sections -Wno-restrict -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -Wl,-rpath='$ORIGIN' -Wl,--dependency-file=CMakeFiles/onnxruntime_global_thread_pools_test.dir/link.d CMakeFiles/onnxruntime_global_thread_pools_test.dir/<<PKGBUILDDIR>>/onnxruntime/test/global_thread_pools/test_main.cc.o CMakeFiles/onnxruntime_global_thread_pools_test.dir/<<PKGBUILDDIR>>/onnxruntime/test/global_thread_pools/test_inference.cc.o -o onnxruntime_global_thread_pools_test -Wl,-rpath,/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu libonnxruntime_mocked_allocator.a libonnxruntime_test_utils.a libonnxruntime_common.a -lcpuinfo /usr/lib/x86_64-linux-gnu/libgtest.a /usr/lib/x86_64-linux-gnu/libgmock.a libonnxruntime.so.1.19.2 -ldl /usr/lib/x86_64-linux-gnu/libgtest.a /usr/lib/x86_64-linux-gnu/libonnx_proto.so.1 /usr/lib/x86_64-linux-gnu/libprotobuf.so && :
FAILED: onnxruntime_global_thread_pools_test
: && /usr/bin/c++ -g -O3 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/onnxruntime-1.19.2+dfsg-2 -Wdate-time -D_FORTIFY_SOURCE=3 -ffunction-sections -fdata-sections -Wno-restrict -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -Wl,-rpath='$ORIGIN' -Wl,--dependency-file=CMakeFiles/onnxruntime_global_thread_pools_test.dir/link.d CMakeFiles/onnxruntime_global_thread_pools_test.dir/<<PKGBUILDDIR>>/onnxruntime/test/global_thread_pools/test_main.cc.o CMakeFiles/onnxruntime_global_thread_pools_test.dir/<<PKGBUILDDIR>>/onnxruntime/test/global_thread_pools/test_inference.cc.o -o onnxruntime_global_thread_pools_test -Wl,-rpath,/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu libonnxruntime_mocked_allocator.a libonnxruntime_test_utils.a libonnxruntime_common.a -lcpuinfo /usr/lib/x86_64-linux-gnu/libgtest.a /usr/lib/x86_64-linux-gnu/libgmock.a libonnxruntime.so.1.19.2 -ldl /usr/lib/x86_64-linux-gnu/libgtest.a /usr/lib/x86_64-linux-gnu/libonnx_proto.so.1 /usr/lib/x86_64-linux-gnu/libprotobuf.so && :
/usr/bin/ld: libonnxruntime_test_utils.a(file_util.cc.o): in function `testing::internal::FormatForComparison<int, int>::Format[abi:cxx11](int const&)':
/usr/include/gtest/gtest-printers.h:380:(.text._ZN11onnxruntime4test18DeleteFileFromDiskEPKc+0x50): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > testing::PrintToString<int>(int const&)'
/usr/bin/ld: /usr/include/gtest/gtest-printers.h:380:(.text._ZN11onnxruntime4test18DeleteFileFromDiskEPKc+0x5f): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > testing::PrintToString<int>(int const&)'
collect2: error: ld returned 1 exit status
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/onnxruntime/+bug/2092286/+subscriptions
More information about the Ubuntu-sponsors
mailing list