Skip to content

[Build] building ONNX fail with error "undefined" #24467

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

Open
xiaowu326-hub opened this issue Apr 18, 2025 · 0 comments
Open

[Build] building ONNX fail with error "undefined" #24467

xiaowu326-hub opened this issue Apr 18, 2025 · 0 comments
Labels
build build issues; typically submitted using template

Comments

@xiaowu326-hub
Copy link

xiaowu326-hub commented Apr 18, 2025

Describe the issue

Hello All,

I would like to report this issue when building the ONNX application to run some models supported by ONNX.

System information:

  • Kylin Linux Advanced Server V10 (Halberd)
  • Nmae: TaiShan 200(Model 2280)
  • GPU : RTX 3090
  • Architecture:aarch64
  • Libraries:
    CUDA: 11.8
    cudnn: 8.9
    GCC: 9.3.0

So if there are anyone known this issue, Please help me to fix it.
Thank

Urgency

No response

Target platform

Kylin Linux Advanced Server V10 (Halberd)

Build script

./build.sh --config Release --build_shared_lib --build_wheel --cuda_home /usr/local/cuda-11.8 --cudnn /usr/local/cuda-11.8 --use_cuda --allow_running_as_root --skip_tests

Error / output

/usr/bin/ld: checker.cc:(.text._ZN4onnx7checker29check_sparse_tensor_indices_2ERKNS_11TensorProtoERKNS_17SparseTensorProtoEm+0x454): undefined reference to std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream()' /usr/bin/ld: _deps/onnx-build/libonnx.a(checker.cc.o): in function onnx::checker::check_sparse_tensor_indices_1(onnx::TensorProto const&, onnx::SparseTensorProto const&, unsigned long)':
checker.cc:(.text._ZN4onnx7checker29check_sparse_tensor_indices_1ERKNS_11TensorProtoERKNS_17SparseTensorProtoEm+0xfc): undefined reference to std::__cxx11::basic_stringstream&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::basic_stringstream()' /usr/bin/ld: _deps/onnx-build/libonnx.a(checker.cc.o):checker.cc:(.text._ZN4onnx7checker29check_sparse_tensor_indices_1ERKNS_11TensorProtoERKNS_17SparseTensorProtoEm+0x20c): more undefined references to std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream()' follow

Visual Studio Version

No response

GCC / Compiler Version

9.3.0

@xiaowu326-hub xiaowu326-hub added the build build issues; typically submitted using template label Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template
Projects
None yet
Development

No branches or pull requests

1 participant