csukuangfj / onnxruntime-libs

onnxruntime pre-compiled libs
81 stars 21 forks source link

Compilation with static library failed #14

Closed Esdsnqxz closed 4 months ago

Esdsnqxz commented 7 months ago

ld: error: undefined symbol: std::_Sp_make_shared_tag::_S_eq(std::type_info const&)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::_Sp_counted_ptr_inplace<onnxruntime::IAllocatorImplWrappingOrtAllocator, std::allocator, (gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by session_state.cc session_state.cc.o:(std::_Sp_counted_ptr_inplace<std::unordered_map<std::cxx11::basic_string<char, std::char_traits, std::allocator >, onnxruntime::FuncManager::FuncInfo, std::hash<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::equal_to<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, onnxruntime::FuncManager::FuncInfo> > >, std::allocator<std::unordered_map<std::cxx11::basic_string<char, std::char_traits, std::allocator >, onnxruntime::FuncManager::FuncInfo, std::hash<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::equal_to<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, onnxruntime::FuncManager::FuncInfo> > > >, (gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by allocation_planner.cc allocation_planner.cc.o:(std::_Sp_counted_ptr_inplace<nlohmann::detail::output_string_adapter<char, std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<nlohmann::detail::output_string_adapter<char, std::cxx11::basic_string<char, std::char_traits, std::allocator > > >, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 8 more times

ld: error: undefined symbol: stderr

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetApi(unsigned int)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by common.cc common.cc.o:(google::protobuf::internal::DefaultLogHandler(google::protobuf::LogLevel, char const*, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by re2.cc re2.cc.o:(LogMessage::~LogMessage()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 59 more times

ld: error: undefined symbol: std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned int&, unsigned int)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(void std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct<char>(char, char, std::forward_iterator_tag) (.constprop.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string<std::allocator >(char const, std::allocator const&) (.constprop.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::RegisterCustomOpsLibrary_V2(OrtSessionOptions, char const)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 2639 more times

ld: error: undefined symbol: std::__throw_logic_error(char const*)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(void std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct<char>(char, char, std::forward_iterator_tag) (.constprop.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string<std::allocator >(char const, std::allocator const&) (.constprop.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::RegisterCustomOpsLibrary_V2(OrtSessionOptions, char const)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 1310 more times

ld: error: undefined symbol: std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_replace(unsigned int, unsigned int, char const*, unsigned int)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreateCustomOpDomain(char const*, OrtCustomOpDomain*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void*, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 2350 more times

ld: error: undefined symbol: std::__throw_bad_function_call()

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetBoundOutputNames(OrtIoBinding const, OrtAllocator, char, unsigned int, unsigned int)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetBoundOutputNames(OrtIoBinding const, OrtAllocator, char, unsigned int, unsigned int)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetBoundOutputNames(OrtIoBinding const, OrtAllocator, char, unsigned int, unsigned int*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 1611 more times

ld: error: undefined symbol: std::locale::~locale()

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 1241 more times

ld: error: undefined symbol: vtable for std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 904 more times the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction)

ld: error: undefined symbol: vtable for std::basic_streambuf<char, std::char_traits >

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 912 more times the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction)

ld: error: undefined symbol: std::__cxx11::basic_ostringstream<char, std::char_traits, std::allocator >::basic_ostringstream()

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreateArenaCfgV2(char const const, unsigned int const*, unsigned int, OrtArenaCfg**)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by graph.cc graph.cc.o:(onnxruntime::Graph::NodeAtIndexImpl(unsigned int) const) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 365 more times

ld: error: undefined symbol: std::basic_ostream<char, std::char_traits >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*, int)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreateArenaCfgV2(char const const, unsigned int const*, unsigned int, OrtArenaCfg**)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 5172 more times

ld: error: undefined symbol: std::ostream& std::ostream::_M_insert(unsigned long)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by graph_viewer.cc graph_viewer.cc.o:(std::__cxx11::basic_string<char, std::char_traits, std::allocator > onnxruntime::detail::MakeStringImpl<char const, unsigned int, char const, unsigned int>(char const const&, unsigned int const&, char const const&, unsigned int const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 429 more times

ld: error: undefined symbol: std::ios_base::~ios_base()

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreateArenaCfgV2(char const const, unsigned int const*, unsigned int, OrtArenaCfg*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(onnxruntime::OnnxRuntimeException::OnnxRuntimeException(onnxruntime::CodeLocation const&, char const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 1972 more times

ld: error: undefined symbol: std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_assign(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(onnxruntime::OnnxRuntimeException::OnnxRuntimeException(onnxruntime::CodeLocation const&, char const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(onnxruntime::OnnxRuntimeException::OnnxRuntimeException(onnxruntime::CodeLocation const&, char const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 1316 more times

ld: error: undefined symbol: std::__cxx11::basic_ostringstream<char, std::char_traits, std::allocator >::~basic_ostringstream()

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreateArenaCfgV2(char const const, unsigned int const*, unsigned int, OrtArenaCfg*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(onnxruntime::OnnxRuntimeException::OnnxRuntimeException(onnxruntime::CodeLocation const&, char const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 306 more times

ld: error: undefined symbol: vtable for std::__cxx11::basic_ostringstream<char, std::char_traits, std::allocator >

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreateArenaCfgV2(char const const, unsigned int const*, unsigned int, OrtArenaCfg*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(onnxruntime::OnnxRuntimeException::OnnxRuntimeException(onnxruntime::CodeLocation const&, char const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 661 more times the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction)

ld: error: undefined symbol: VTT for std::__cxx11::basic_ostringstream<char, std::char_traits, std::allocator >

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreateArenaCfgV2(char const const, unsigned int const*, unsigned int, OrtArenaCfg*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(onnxruntime::OnnxRuntimeException::OnnxRuntimeException(onnxruntime::CodeLocation const&, char const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 661 more times

ld: error: undefined symbol: vtable for std::basic_ios<char, std::char_traits >

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long long const, unsigned int, OrtMemoryInfo const, void, unsigned int, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreateArenaCfgV2(char const const, unsigned int const*, unsigned int, OrtArenaCfg*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(onnxruntime::OnnxRuntimeException::OnnxRuntimeException(onnxruntime::CodeLocation const&, char const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 917 more times the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction)

ld: error: undefined symbol: std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::str() const

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreateArenaCfgV2(char const const, unsigned int const*, unsigned int, OrtArenaCfg*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by graph.cc graph.cc.o:(onnxruntime::Graph::NodeAtIndexImpl(unsigned int) const) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by graph.cc graph.cc.o:(onnxruntime::Node::LoadFromOrtFormat(onnxruntime::fbs::Node const&, onnxruntime::OrtFormatLoadOptions const&, onnxruntime::logging::Logger const&)::'lambda'(flatbuffers::Vector<flatbuffers::Offset, unsigned int> const, std::vector<onnxruntime::NodeArg, std::allocator<onnxruntime::NodeArg> >&, bool)::operator()(flatbuffers::Vector<flatbuffers::Offset, unsigned int> const, std::vector<onnxruntime::NodeArg, std::allocator<onnxruntime::NodeArg*> >&, bool) const (.isra.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced 568 more times

ld: error: undefined symbol: std::basic_ios<char, std::char_traits >::clear(std::_Ios_Iostate)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreateArenaCfgV2(char const const, unsigned int const*, unsigned int, OrtArenaCfg*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::__cxx11::basic_string<char, std::char_traits, std::allocator > onnxruntime::detail::MakeStringImpl<char const, char const>(char const const&, char const* const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-arm-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::__cxx11::basic_string<char, std::char_traits, std::allocator > onnxruntime::detail::M``

csukuangfj commented 7 months ago

I suggest that you use pre-built static libs from us https://github.com/csukuangfj/onnxruntime-libs/releases


By the way, the information you give us is not complete.

Please also give us the information about the version of your gcc and the command you have run.

Esdsnqxz commented 7 months ago

I suggest that you use pre-built static libs from us https://github.com/csukuangfj/onnxruntime-libs/releases

By the way, the information you give us is not complete.

Please also give us the information about the version of your gcc and the command you have run.

hello,thanks for help
the gcc version is 11.4 and my cmakelists gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 `cmake_minimum_required(VERSION 3.6) project(snore_java)

set (ROOT_PATH /home/zyan/dsp/sdk) set (ONNX_PATH /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3)

set(CMAKE_C_FLAGS "-O0 -ggdb -g")

include_directories(${ROOT_PATH}/../) include_directories(${ONNX_PATH}/include) link_directories(${ONNX_PATH}/lib) include_directories(${PROJECT_SOURCE_DIR}/) include_directories(/usr/lib/jvm/java-8-openjdk-amd64/include) include_directories(/usr/lib/jvm/java-8-openjdk-amd64/include/linux)

set(SRC ${PROJECT_SOURCE_DIR}/snore_lib.c ${PROJECT_SOURCE_DIR}/snore_java_api.c )

LINK_LIBRARIES(m) add_library(snore_java SHARED ${SRC}) target_link_libraries(snore_java stdc++) target_link_libraries(snore_java onnxruntime) target_link_libraries(snore_java log)`

csukuangfj commented 7 months ago

Please delete your build directory and rerun cmake and post all the terminal output .

Esdsnqxz commented 7 months ago

Please delete your build directory and rerun cmake and post all the terminal output . i have deleted my build directory and rerun cmake, here is the full cmake output `-- The C compiler identification is Clang 14.0.6 -- The CXX compiler identification is Clang 14.0.6 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /media/hdd2/zyan/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /media/hdd2/zyan/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /media/hdd2/zyan/snore/c_code/v8_build [ 14%] Building C object CMakeFiles/snore_java.dir/home/zyan/dsp/sdk/utils/os_support.c.o [ 28%] Building C object CMakeFiles/snore_java.dir/home/zyan/dsp/sdk/nn/fbank/fbank.c.o [ 42%] Building C object CMakeFiles/snore_java.dir/home/zyan/dsp/sdk/kiss_fft/kiss_float/mobvoi_kiss_fft.c.o [ 57%] Building C object CMakeFiles/snore_java.dir/home/zyan/dsp/sdk/kiss_fft/kiss_float/mobvoi_kiss_fftr.c.o [ 71%] Building C object CMakeFiles/snore_java.dir/snore_lib.c.o [ 85%] Building C object CMakeFiles/snore_java.dir/snore_java_api.c.o /media/hdd2/zyan/snore/c_code/snore_java_api.c:66:58: warning: incompatible pointer types passing 'jfloat ' (aka 'float ') to parameter of type 'jshort ' (aka 'short ') [-Wincompatible-pointer-types] (env)->ReleaseShortArrayElements(env,outArray,score,0); ^~~~~ /media/hdd2/zyan/snore/c_code/snore_java_api.c:71:58: warning: incompatible pointer types passing 'jfloat ' (aka 'float ') to parameter of type 'jshort ' (aka 'short ') [-Wincompatible-pointer-types] (env)->ReleaseShortArrayElements(env,outArray,score,0); ^~~~~ 2 warnings generated. [100%] Linking C shared library libsnore_java.so ld: error: undefined symbol: __cxa_begin_catch

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::AllocatorAlloc(OrtAllocator*, unsigned long, void)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::AllocatorAlloc(OrtAllocator*, unsigned long, void*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::AllocatorAlloc(OrtAllocator, unsigned long, void)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 1838 more times

ld: error: undefined symbol: __cxa_end_catch

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::AllocatorAlloc(OrtAllocator*, unsigned long, void)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::AllocatorAlloc(OrtAllocator*, unsigned long, void*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::AllocatorAlloc(OrtAllocator, unsigned long, void)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 1832 more times

ld: error: undefined symbol: operator delete(void*, unsigned long)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(onnxruntime::IExecutionProvider::~IExecutionProvider()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(onnxruntime::IExecutionProvider::~IExecutionProvider()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::_Sp_counted_deleter<void, void ()(void*), std::allocator, (__gnu_cxx::_Lock_policy)2>::~_Sp_counted_deleter()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 55026 more times

ld: error: undefined symbol: std::exception::~exception()

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(gsl::narrowing_error::~narrowing_error()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(gsl::narrowing_error::~narrowing_error()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(onnxruntime::OnnxRuntimeException::~OnnxRuntimeException()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 109 more times

ld: error: undefined symbol: operator new(unsigned long)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreatePrepackedWeightsContainer(OrtPrepackedWeightsContainer*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(bool absl::lts_20240116::container_internal::HashSetResizeHelper::InitializeSlots<std::allocator, 56ul, false, 8ul>(absl::lts_20240116::container_internal::CommonFields&, void, std::allocator) (.isra.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::unique_ptr<char, Ort::detail::AllocatedFree>& absl::lts_20240116::inlined_vector_internal::Storage<std::unique_ptr<char, Ort::detail::AllocatedFree>, 3ul, std::allocator<std::unique_ptr<char, Ort::detail::AllocatedFree> > >::EmplaceBackSlow<std::unique_ptr<char, Ort::detail::AllocatedFree> >(std::unique_ptr<char, Ort::detail::AllocatedFree>&&) (.isra.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 7108 more times

ld: error: undefined symbol: std::_Sp_make_shared_tag::_S_eq(std::type_info const&)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::_Sp_counted_ptr_inplace<onnxruntime::IAllocatorImplWrappingOrtAllocator, std::allocator, (gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by session_state.cc session_state.cc.o:(std::_Sp_counted_ptr_inplace<std::unordered_map<std::cxx11::basic_string<char, std::char_traits, std::allocator >, onnxruntime::FuncManager::FuncInfo, std::hash<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::equal_to<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, onnxruntime::FuncManager::FuncInfo> > >, std::allocator<std::unordered_map<std::cxx11::basic_string<char, std::char_traits, std::allocator >, onnxruntime::FuncManager::FuncInfo, std::hash<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::equal_to<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, onnxruntime::FuncManager::FuncInfo> > > >, (gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by allocation_planner.cc allocation_planner.cc.o:(std::_Sp_counted_ptr_inplace<nlohmann::detail::output_string_adapter<char, std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<nlohmann::detail::output_string_adapter<char, std::cxx11::basic_string<char, std::char_traits, std::allocator > > >, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 8 more times

ld: error: undefined symbol: operator delete

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::ReleaseAvailableProviders(char**, int)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetAvailableProviders(char**, int)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(CreateTensorImpl(onnxruntime::DataTypeImpl const, long const, unsigned long, OrtAllocator*, OrtValue&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 1978 more times

ld: error: undefined symbol: stderr

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetApi(unsigned int)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetApi(unsigned int)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by common.cc common.cc.o:(google::protobuf::internal::DefaultLogHandler(google::protobuf::LogLevel, char const*, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 163 more times

ld: error: undefined symbol: __cxa_allocate_exception

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(int gsl::narrow<int, unsigned long, (void)0>(unsigned long) (.part.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::UpdateEnvWithCustomLogLevel(OrtEnv, OrtLoggingLevel)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:((anonymous namespace)::ValidateFillInputArgs(OrtValue, onnxruntime::TensorShape const&, OrtMemoryInfo const)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 6397 more times

ld: error: undefined symbol: __cxa_throw

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(int gsl::narrow<int, unsigned long, (void)0>(unsigned long) (.part.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::UpdateEnvWithCustomLogLevel(OrtEnv, OrtLoggingLevel)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:((anonymous namespace)::ValidateFillInputArgs(OrtValue, onnxruntime::TensorShape const&, OrtMemoryInfo const)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 5261 more times

ld: error: undefined symbol: std::__throw_bad_alloc()

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(bool absl::lts_20240116::container_internal::HashSetResizeHelper::InitializeSlots<std::allocator, 56ul, false, 8ul>(absl::lts_20240116::container_internal::CommonFields&, void*, std::allocator) (.isra.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::unique_ptr<char, Ort::detail::AllocatedFree>& absl::lts_20240116::inlined_vector_internal::Storage<std::unique_ptr<char, Ort::detail::AllocatedFree>, 3ul, std::allocator<std::unique_ptr<char, Ort::detail::AllocatedFree> > >::EmplaceBackSlow<std::unique_ptr<char, Ort::detail::AllocatedFree> >(std::unique_ptr<char, Ort::detail::AllocatedFree>&&) (.isra.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::unique_ptr<OrtValue, std::default_delete >& absl::lts_20240116::inlined_vector_internal::Storage<std::unique_ptr<OrtValue, std::default_delete >, 6ul, std::allocator<std::unique_ptr<OrtValue, std::default_delete > > >::EmplaceBackSlow<std::unique_ptr<OrtValue, std::default_delete > >(std::unique_ptr<OrtValue, std::default_delete >&&) (.isra.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 1056 more times

ld: error: undefined symbol: std::terminate()

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(gsl::details::span_iterator::operator++() (.isra.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::RunAsync(OrtSession, OrtRunOptions const, char const const, OrtValue const const, unsigned long, char const const, unsigned long, OrtValue, void ()(void, OrtValue, unsigned long, OrtStatus), void)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::Run(OrtSession, OrtRunOptions const, char const const, OrtValue const const, unsigned long, char const const, unsigned long, OrtValue**)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 3179 more times

ld: error: undefined symbol: operator new[](unsigned long)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetAvailableProviders(char**, int)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by strutil.cc strutil.cc.o:(google::protobuf::UnescapeCEscapeString(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::vector<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::cxx11::basic_string<char, std::char_traits, std::allocator > > >)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by strutil.cc strutil.cc.o:(google::protobuf::UnescapeCEscapeString(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 464 more times

ld: error: undefined symbol: __cxa_throw_bad_array_new_length

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetAvailableProviders(char**, int)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by tensor_shape.cc tensor_shape.cc.o:(onnxruntime::TensorShape::Allocate(unsigned long)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by stream_execution_context.cc stream_execution_context.cc.o:(onnxruntime::StreamExecutionContext::StreamExecutionContext(onnxruntime::SessionState const&, int, gsl::span<unsigned long const, 18446744073709551615ul>, unsigned long, onnxruntime::DeviceStreamCollection const*, gsl::span<int const, 18446744073709551615ul>, gsl::span<OrtValue const, 18446744073709551615ul>, gsl::span<int const, 18446744073709551615ul>, std::vector<OrtValue, std::allocator >&, std::unordered_map<unsigned long, std::function<onnxruntime::common::Status (onnxruntime::TensorShape const&, OrtDevice const&, OrtValue&, bool&)>, std::hash, std::equal_to, std::allocator<std::pair<unsigned long const, std::function<onnxruntime::common::Status (onnxruntime::TensorShape const&, OrtDevice const&, OrtValue&, bool&)> > > > const&, onnxruntime::logging::Logger const&, bool)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 15 more times

ld: error: undefined symbol: std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned long&, unsigned long)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(void std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct<char>(char, char, std::forward_iterator_tag) (.constprop.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string<std::allocator >(char const, std::allocator const&) (.constprop.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::RegisterCustomOpsLibrary_V2(OrtSessionOptions, char const)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 2654 more times

ld: error: undefined symbol: std::__throw_logic_error(char const*)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(void std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct<char>(char, char, std::forward_iterator_tag) (.constprop.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string<std::allocator >(char const, std::allocator const&) (.constprop.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::RegisterCustomOpsLibrary_V2(OrtSessionOptions, char const)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 1425 more times

ld: error: undefined symbol: std::__throw_bad_function_call()

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetBoundOutputNames(OrtIoBinding const, OrtAllocator, char, unsigned long, unsigned long)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetBoundOutputNames(OrtIoBinding const, OrtAllocator, char, unsigned long, unsigned long)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::GetBoundOutputNames(OrtIoBinding const, OrtAllocator, char, unsigned long, unsigned long*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 1550 more times

ld: error: undefined symbol: std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(OrtApis::CreateCustomOpDomain(char const*, OrtCustomOpDomain*)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::__cxx11::basic_string<char, std::char_traits, std::allocator > onnxruntime::detail::MakeStringImpl<char const, char const>(char const const&, char const const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::__cxx11::basic_string<char, std::char_traits, std::allocator > onnxruntime::detail::MakeStringImpl<char const, char const>(char const const&, char const* const&)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 2151 more times

ld: error: undefined symbol: __cxa_rethrow

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::_Rb_tree_node<std::pair<long const, float> > std::_Rb_tree<long, std::pair<long const, float>, std::_Select1st<std::pair<long const, float> >, std::less, std::allocator<std::pair<long const, float> > >::_M_copy<std::_Rb_tree<long, std::pair<long const, float>, std::_Select1st<std::pair<long const, float> >, std::less, std::allocator<std::pair<long const, float> > >::_Alloc_node>(std::_Rb_tree_node<std::pair<long const, float> > const, std::_Rb_tree_node_base, std::_Rb_tree<long, std::pair<long const, float>, std::_Select1st<std::pair<long const, float> >, std::less, std::allocator<std::pair<long const, float> > >::_Alloc_node&) (.isra.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, float> > std::_Rb_tree<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float>, std::_Select1st<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> >, std::less<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> > >::_M_copy<std::_Rb_tree<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float>, std::_Select1st<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> >, std::less<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, float> > >::_Alloc_node>(std::_Rb_tree_node<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> > const, std::_Rb_tree_node_base, std::_Rb_tree<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float>, std::_Select1st<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> >, std::less<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> > >::_Alloc_node&) (.isra.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::_Rb_tree_node<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> > std::_Rb_tree<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float>, std::_Select1st<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> >, std::less<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> > >::_M_copy<std::_Rb_tree<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float>, std::_Select1st<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> >, std::less<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, float> > >::_Alloc_node>(std::_Rb_tree_node<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> > const, std::_Rb_tree_node_base*, std::_Rb_tree<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float>, std::_Select1st<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, float> >, std::less<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, float> > >::_Alloc_node&) (.isra.0)) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 853 more times

ld: error: undefined symbol: vtable for std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >

referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced by onnxruntime_c_api.cc onnxruntime_c_api.cc.o:(std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf()) in archive /media/hdd2/zyan/onnx/onnxruntime-linux-aarch64-static_lib-1.17.3/lib/libonnxruntime.a referenced 3786 more times the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction)

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors) clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [CMakeFiles/snore_java.dir/build.make:177: libsnore_java.so] Error 1 make[1]: [CMakeFiles/Makefile2:83: CMakeFiles/snore_java.dir/all] Error 2 make: *** [Makefile:91: all] Error 2`

csukuangfj commented 7 months ago

Please try to replace

target_link_libraries(snore_java stdc++)

with

target_link_libraries(snore_java -lc++)
csukuangfj commented 4 months ago

Close it since no response has been received so far.