[Bug 2092286] [NEW] onnxruntime fails to build on amd64 and arm64

Launchpad Bug Tracker 2092286 at bugs.launchpad.net
Fri Dec 20 12:26:29 UTC 2024


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

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
```

** Affects: onnxruntime (Ubuntu)
     Importance: Undecided
     Assignee: Mateus Rodrigues de Morais (mateus-morais)
         Status: In Progress


** Tags: patch
-- 
onnxruntime fails to build on amd64 and arm64
https://bugs.launchpad.net/bugs/2092286
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list