[Bug 2092286] Re: onnxruntime fails to build on amd64 and arm64
Mateus Rodrigues de Morais
2092286 at bugs.launchpad.net
Fri Dec 20 13:21:10 UTC 2024
Fixed by disabling LTO and O3 optimization.
PPA test build available at: https://launchpad.net/~mateus-
morais/+archive/ubuntu/webrtc-audio-processing
** Patch added: "fix-amd64-arm64-ftbfs.patch"
https://bugs.launchpad.net/ubuntu/+source/onnxruntime/+bug/2092286/+attachment/5846535/+files/fix-amd64-arm64-ftbfs.patch
** Patch removed: "fix-amd64-arm64-ftbfs.patch"
https://bugs.launchpad.net/ubuntu/+source/onnxruntime/+bug/2092286/+attachment/5846530/+files/fix-amd64-arm64-ftbfs.patch
--
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:
In Progress
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