Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker error when building with XNNPACK #306

Closed
cyanic-selkie opened this issue Oct 20, 2024 · 0 comments
Closed

Linker error when building with XNNPACK #306

cyanic-selkie opened this issue Oct 20, 2024 · 0 comments

Comments

@cyanic-selkie
Copy link

Hi, when I build the onnxruntime with the following command on linux (x86_64):

./build.sh --config Release --parallel --compile_no_warning_as_error --skip_submodule_sync --update --build --build_dir build/linux --use_xnnpack

I get this error:

  = note: mold: error: undefined symbol: onnxruntime::XnnpackProviderFactoryCreator::Create(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, onnxruntime::SessionOptions const*)
          >>> referenced by provider_registration.cc
          >>>               /tmp/rustcDCoIrQ/libort_sys-651d7bc33f33a6dc.rlib(provider_registration.cc.o):(OrtApis::SessionOptionsAppendExecutionProvider(OrtSessionOptions*, char const*, char const* const*, char const* const*, unsigned long))
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant