Public bug reported:

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

** Changed in: onnxruntime (Ubuntu)
     Assignee: (unassigned) => Mateus Rodrigues de Morais (mateus-morais)

** Changed in: onnxruntime (Ubuntu)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2092286

Title:
  onnxruntime fails to build on amd64 and arm64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/onnxruntime/+bug/2092286/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to