k2-fsa / sherpa-onnx

Speech-to-text, text-to-speech, speaker diarization, and VAD using next-gen Kaldi with onnxruntime without Internet connection. Support embedded systems, Android, iOS, Raspberry Pi, RISC-V, x86_64 servers, websocket server/client, C/C++, Python, Kotlin, C#, Go, NodeJS, Java, Swift, Dart, JavaScript, Flutter, Object Pascal, Lazarus, Rust
https://k2-fsa.github.io/sherpa/onnx/index.html
Apache License 2.0
3.68k stars 427 forks source link

安装Python Package CUDA版本失败 #977

Closed ytc19990517 closed 5 months ago

ytc19990517 commented 5 months ago

-- PYTHON_EXECUTABLE: /home/ytc/anaconda3/envs/kaldi/bin/python3 -- PYTHON_VERSION: 3.8 -- Downloading cargs https://github.com/likle/cargs/archive/refs/tags/v1.0.3.tar.gz -- cargs is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/cargs-src -- CMAKE_CXX_FLAGS: -- CMAKE_CXX_FLAGS: -- Configuring done (2.4s) -- Generating done (0.2s) -- Build files have been written to: /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38 [ 2%] Built target ucd [ 2%] Built target ssentencepiece_core [ 5%] Built target kaldi-native-fbank-core [ 8%] Built target fst [ 9%] Built target cargs [ 13%] Built target portaudio [ 14%] Built target fstfar [ 22%] Built target espeak-ng [ 25%] Built target kaldifst_core [ 27%] Built target piper_phonemize [ 29%] Built target kaldi-decoder-core [ 64%] Built target sherpa-onnx-core [ 64%] Linking CXX executable ../../bin/sherpa-onnx-offline [ 66%] Linking CXX executable ../../bin/sherpa-onnx-offline-audio-tagging [ 66%] Linking CXX executable ../../bin/sherpa-onnx [ 66%] Linking CXX executable ../../bin/sherpa-onnx-keyword-spotter /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcublasLt.so.11, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcublas.so.11, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcudnn.so.8, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcufft.so.10, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcudart.so.11.0, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcublasLt.so.11, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcublas.so.11, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcudnn.so.8, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcufft.so.10, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcudart.so.11.0, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcublasLt.so.11, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcublas.so.11, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcudnn.so.8, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcufft.so.10, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcudart.so.11.0, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcublasLt.so.11, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcublas.so.11, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcudnn.so.8, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcufft.so.10, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcudart.so.11.0, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found (try using -rpath or -rpath-link) /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudaMalloc@libcudart.so.11.0' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocublasLtMatmulAlgoGetHeuristic@libcublasLt.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudnnPoolingForward@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference toVTT for std::cxx11::basic_stringstream<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cublasLtMatrixLayoutDestroy@libcublasLt.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocublasLtMatmulPreferenceCreate@libcublasLt.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudnnActivationForward@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudnnBatchNormalizationForwardInference@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudnnCreate@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::logic_error::logic_error(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudnnConvolutionBackwardData@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::thread::_State::~_State()@GLIBCXX_3.4.22' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudaMemGetInfo@libcudart.so.11.0' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tooperator delete(void*, std::align_val_t)@CXXABI_1.3.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudaGetDeviceCount@libcudart.so.11.0' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocublasLtMatrixLayoutCreate@libcublasLt.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cublasScopy_v2@libcublas.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocublasLtMatmulPreferenceDestroy@libcublasLt.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudaStreamBeginCapture@libcudart.so.11.0' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudaGetDevice@libcudart.so.11.0/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld' : /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudnnDestroyActivationDescriptor@libcudnn.so.8: undefined reference to' cudaMalloc@libcudart.so.11.0/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld' : ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cublasDgeam@libcublas.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to: undefined reference to `cublasLtMatmulAlgoGetHeuristic@libcublasLt.so.11' cudaUnregisterFatBinary@libcudart.so.11.0/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudnnPoolingForward@libcudnn.so.8' ' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference toVTT for std::__cxx11::basic_stringstream<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: : undefined reference to ../../_deps/onnxruntime-src/lib/libonnxruntime.socublasLtMatrixLayoutDestroy@libcublasLt.so.11' : undefined reference to/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cublasLtMatmulPreferenceCreate@libcublasLt.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudnnActivationForward@libcudnn.so.8' std::cxx11::basic_string<char, std::char_traits, std::allocator >::substr(unsigned long, unsigned long) const@GLIBCXX_3.4.21/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ' ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudnnBatchNormalizationForwardInference@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudnnCreate@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::logic_error::logic_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudnnConvolutionBackwardData@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::thread::_State::~_State()@GLIBCXX_3.4.22' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudaMemGetInfo@libcudart.so.11.0' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to operator delete(void*, std::align_val_t)@CXXABI_1.3.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudaGetDeviceCount@libcudart.so.11.0' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cublasLtMatrixLayoutCreate@libcublasLt.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocublasScopy_v2@libcublas.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cublasLtMatmulPreferenceDestroy@libcublasLt.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudaStreamBeginCapture@libcudart.so.11.0' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudaGetDevice@libcudart.so.11.0' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudnnDestroyActivationDescriptor@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cublasDgeam@libcublas.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudaUnregisterFatBinary@libcudart.so.11.0' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::substr(unsigned long, unsigned long) const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudnnCreateLRNDescriptor@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocublasLtMatrixTransformDescCreate@libcublasLt.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudaMallocHost@libcudart.so.11.0' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocufftXtExec@libcufft.so.10' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cublasSgeam@libcublas.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tostd::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >::basic_ostringstream(std::_Ios_Openmode)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to `std::range_error::range_error(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld' : ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: undefined reference to : ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudnnSetDropoutDescriptor@libcudnn.so.8cudnnCreateLRNDescriptor@libcudnn.so.8'

ytc19990517 commented 5 months ago

cuda版本如下 [ytc@localhost ~]$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2023 NVIDIA Corporation Built on Tue_Feb__7_19:32:13_PST_2023 Cuda compilation tools, release 12.1, V12.1.66 Build cuda_12.1.r12.1/compiler.32415258_0

ytc19990517 commented 5 months ago

' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudnnCreateDropoutDescriptor@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudnnSetConvolutionGroupCount@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cublasDgemmBatched@libcublas.so.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::rfind(char, unsigned long) const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to cudnnCreateDropoutDescriptor@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tocudnnSetConvolutionGroupCount@libcudnn.so.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `cublasDgemmBatched@libcublas.so.11' make[2]: [bin/sherpa-onnx-offline] 错误 1 make[1]: [sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-offline.dir/all] 错误 2 collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status make[2]: [bin/sherpa-onnx] 错误 1 make[1]: [sherpa-onnx/csrc/CMakeFiles/sherpa-onnx.dir/all] 错误 2 make[2]: [bin/sherpa-onnx-keyword-spotter] 错误 1 make[1]: [sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-keyword-spotter.dir/all] 错误 2 make: * [all] 错误 2 Traceback (most recent call last): File "setup.py", line 53, in setuptools.setup( File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/init.py", line 104, in setup return distutils.core.setup(attrs) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 184, in setup return run_commands(dist) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 200, in run_commands dist.run_commands() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/install.py", line 87, in run self.do_egg_install() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/install.py", line 139, in do_egg_install self.run_command('bdist_egg') File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 167, in run cmd = self.call_command('install_lib', warn_dir=0) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 153, in call_command self.run_command(cmdname) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/install_lib.py", line 11, in run self.build() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/install_lib.py", line 110, in build self.run_command('build_ext') File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 91, in run _build_ext.run(self) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run self.build_extensions() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions self._build_extensions_serial() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial self.build_extension(ext) File "/home/ytc/sherpa-onnx/cmake/cmake_extension.py", line 202, in build_extension raise Exception( Exception: Build sherpa-onnx failed. Please check the error message. You can ask for help by creating an issue on GitHub.

Click: https://github.com/k2-fsa/sherpa-onnx/issues/new

csukuangfj commented 5 months ago

According to https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html

Please use cudatoolkit 11.8 since we are using onnxruntime 1.17.1

ytc19990517 commented 5 months ago

Is this because my cuda version is too high?

ytc19990517 commented 5 months ago

According to https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html

Please use cudatoolkit 11.8 since we are using onnxruntime 1.17.1

I install cudatoolkit 11.8 but got the same error

(kaldi) [ytc@localhost sherpa-onnx]$ which nvcc /usr/local/cuda-11.8/bin/nvcc (kaldi) [ytc@localhost sherpa-onnx]$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Sep_21_10:33:58_PDT_2022 Cuda compilation tools, release 11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0

csukuangfj commented 5 months ago

/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcublasLt.so.11, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found

Please find where libcublasLt.so.11 is located on your computer.

ytc19990517 commented 5 months ago

/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: warning: libcublasLt.so.11, needed by ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, not found

Please find where libcublasLt.so.11 is located on your computer.

I solved the problem that libcublasLt.so.11 not found after adding the dir where libcublasLt.so.11 is located to the environment variables. The remaining errors are all like these@GLIBCXX_3.4.21.What are the reasons for these?

/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::logic_error::logic_error(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::thread::_State::~_State()@GLIBCXX_3.4.22' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tooperator delete(void*, std::align_val_t)@CXXABI_1.3.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned long, unsigned long) const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tostd::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >::basic_ostringstream(std::_Ios_Openmode)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to `std::range_error::range_error(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'

csukuangfj commented 5 months ago

What is the output of

gcc --version
ytc19990517 commented 5 months ago

What is the output of

gcc --version

(pad) [ytc@localhost ~]$ gcc --version gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

ytc19990517 commented 5 months ago

What is the output of

gcc --version

The previous gcc version was 4.8.5. I upgraded it to 11.2.1 when installing cmake.

csukuangfj commented 5 months ago

which gcc are you using to build sherpa-onnx?And how do you know it?

ytc19990517 commented 5 months ago

which gcc are you using to build sherpa-onnx?And how do you know it?

Requirements: CMake >= 3.13 A compiler that supports at least C++14

I read this, so I upgraded gcc before building

csukuangfj commented 5 months ago

please remove your build directory, re-build it, and post all the logs printed in the terminal.

ytc19990517 commented 5 months ago

please remove your build directory, re-build it, and post all the logs printed in the terminal.

please remove your build directory, re-build it, and post all the logs printed in the terminal.

(kaldi) [ytc@localhost ~]$ export SHERPA_ONNX_CMAKE_ARGS="-DSHERPA_ONNX_ENABLE_GPU=ON"
(kaldi) [ytc@localhost ~]$ cd sherpa-onnx/
(kaldi) [ytc@localhost sherpa-onnx]$ python3 setup.py install
running install
/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
running bdist_egg
running egg_info
writing sherpa_onnx.egg-info/PKG-INFO
writing dependency_links to sherpa_onnx.egg-info/dependency_links.txt
writing entry points to sherpa_onnx.egg-info/entry_points.txt
writing top-level names to sherpa_onnx.egg-info/top_level.txt
reading manifest file 'sherpa_onnx.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'android'
no previously-included directories found matching 'ios-swift'
no previously-included directories found matching 'ios-swiftui'
adding license file 'LICENSE'
writing manifest file 'sherpa_onnx.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/sherpa_onnx
copying sherpa-onnx/python/sherpa_onnx/__init__.py -> build/lib.linux-x86_64-cpython-38/sherpa_onnx
copying sherpa-onnx/python/sherpa_onnx/cli.py -> build/lib.linux-x86_64-cpython-38/sherpa_onnx
copying sherpa-onnx/python/sherpa_onnx/keyword_spotter.py -> build/lib.linux-x86_64-cpython-38/sherpa_onnx
copying sherpa-onnx/python/sherpa_onnx/offline_recognizer.py -> build/lib.linux-x86_64-cpython-38/sherpa_onnx
copying sherpa-onnx/python/sherpa_onnx/online_recognizer.py -> build/lib.linux-x86_64-cpython-38/sherpa_onnx
copying sherpa-onnx/python/sherpa_onnx/utils.py -> build/lib.linux-x86_64-cpython-38/sherpa_onnx
running build_ext
Setting PYTHON_EXECUTABLE to /home/ytc/anaconda3/envs/kaldi/bin/python3
for fast compilation, run:
export SHERPA_ONNX_MAKE_ARGS="-j"; python setup.py install
Setting make_args to "-j4"
build command is:

                    cd build/temp.linux-x86_64-cpython-38

                    cmake -DSHERPA_ONNX_ENABLE_GPU=ON -DPYTHON_EXECUTABLE=/home/ytc/anaconda3/envs/kaldi/bin/python3 -DCMAKE_INSTALL_PREFIX=/home/ytc/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx  -DBUILD_SHARED_LIBS=ON  -DBUILD_PIPER_PHONMIZE_EXE=OFF  -DBUILD_PIPER_PHONMIZE_TESTS=OFF  -DBUILD_ESPEAK_NG_EXE=OFF  -DBUILD_ESPEAK_NG_TESTS=OFF  -DSHERPA_ONNX_ENABLE_CHECK=OFF  -DSHERPA_ONNX_ENABLE_PYTHON=ON  -DSHERPA_ONNX_ENABLE_PORTAUDIO=ON  -DSHERPA_ONNX_ENABLE_WEBSOCKET=ON  /home/ytc/sherpa-onnx

                    make -j4 install/strip

-- The C compiler identification is GNU 11.2.1
-- The CXX compiler identification is GNU 11.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/rh/devtoolset-11/root/usr/bin/cc - 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: /opt/rh/devtoolset-11/root/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No CMAKE_BUILD_TYPE given, default to Release
CMake Warning at CMakeLists.txt:77 (message):
  Compiling for NVIDIA GPU is enabled.  Please make sure cudatoolkit

  is installed on your system.  Otherwise, you will get errors at runtime.

  Hint: You don't need sudo permission to install CUDA toolkit.  Please refer
  to

    https://k2-fsa.github.io/k2/installation/cuda-cudnn.html

  to install CUDA toolkit if you have not installed it.

-- CMAKE_BUILD_TYPE: Release
-- CMAKE_INSTALL_PREFIX: /home/ytc/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx
-- BUILD_SHARED_LIBS ON
-- SHERPA_ONNX_ENABLE_PYTHON ON
-- SHERPA_ONNX_ENABLE_TESTS OFF
-- SHERPA_ONNX_ENABLE_CHECK OFF
-- SHERPA_ONNX_ENABLE_PORTAUDIO ON
-- SHERPA_ONNX_ENABLE_JNI OFF
-- SHERPA_ONNX_ENABLE_C_API ON
-- SHERPA_ONNX_ENABLE_WEBSOCKET ON
-- SHERPA_ONNX_ENABLE_GPU ON
-- SHERPA_ONNX_ENABLE_WASM OFF
-- SHERPA_ONNX_ENABLE_WASM_TTS OFF
-- SHERPA_ONNX_ENABLE_WASM_ASR OFF
-- SHERPA_ONNX_ENABLE_WASM_KWS OFF
-- SHERPA_ONNX_ENABLE_WASM_NODEJS OFF
-- SHERPA_ONNX_ENABLE_BINARY ON
-- SHERPA_ONNX_ENABLE_TTS ON
-- SHERPA_ONNX_LINK_LIBSTDCPP_STATICALLY ON
-- SHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE ON
-- SHERPA_ONNX_ENABLE_SANITIZER: OFF
-- TTS is enabled
-- C++ Standard version: 14
-- Looking for C++ include alsa/asoundlib.h
-- Looking for C++ include alsa/asoundlib.h - found
-- With Alsa
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Downloading kaldi-native-fbank from https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.19.1.tar.gz
-- kaldi-native-fbank is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/kaldi_native_fbank-src
-- kaldi-native-fbank's binary dir is /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/kaldi_native_fbank-build
CMake Deprecation Warning at build/temp.linux-x86_64-cpython-38/_deps/kaldi_native_fbank-src/CMakeLists.txt:24 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- CMAKE_BUILD_TYPE: Release
-- CMAKE_EXPORT_COMPILE_COMMANDS: 
-- BUILD_SHARED_LIBS: ON
-- KALDI_NATIVE_FBANK_BUILD_TESTS: OFF
-- KALDI_NATIVE_FBANK_BUILD_PYTHON: OFF
-- KALDI_NATIVE_FBANK_ENABLE_CHECK: OFF
-- KALDI_NATIVE_FBANK_ENABLE_CHECK: OFF
-- CMAKE_CXX_FLAGS: 
-- CMAKE_INSTALL_PREFIX: /home/ytc/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Disable building Python
-- Downloading kaldi-decoder from https://github.com/k2-fsa/kaldi-decoder/archive/refs/tags/v0.2.5.tar.gz
-- kaldi-decoder is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/kaldi_decoder-src
-- kaldi-decoder's binary dir is /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/kaldi_decoder-build
-- CMAKE_BUILD_TYPE: Release
-- Downloading kaldifst from https://github.com/k2-fsa/kaldifst/archive/refs/tags/v1.7.10.tar.gz
-- kaldifst is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/kaldifst-src
-- kaldifst's binary dir is /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/kaldifst-build
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_INSTALL_PREFIX: /home/ytc/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx
-- BUILD_SHARED_LIBS ON
-- C++ Standard version: 14
-- CMAKE_CXX_FLAGS: 
-- Downloading openfst from https://github.com/csukuangfj/openfst/archive/refs/tags/sherpa-onnx-2024-05-22-2.tar.gz
-- openfst is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/openfst-src
-- The following ICU libraries were not found:
--   data (required)
--   i18n (required)
--   io (required)
--   test (required)
--   tu (required)
--   uc (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND) 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
CMake Deprecation Warning at build/temp.linux-x86_64-cpython-38/_deps/openfst-src/CMakeLists.txt:15 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Downloading eigen from https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
-- eigen is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/eigen-src
-- eigen's binary dir is /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/eigen-build
-- Performing Test EIGEN_COMPILER_SUPPORT_CPP11
-- Performing Test EIGEN_COMPILER_SUPPORT_CPP11 - Success
-- Performing Test COMPILER_SUPPORT_std=cpp03
-- Performing Test COMPILER_SUPPORT_std=cpp03 - Success
-- Performing Test standard_math_library_linked_to_automatically
-- Performing Test standard_math_library_linked_to_automatically - Success
-- Standard libraries to link to explicitly: none
-- Performing Test COMPILER_SUPPORT_WERROR
-- Performing Test COMPILER_SUPPORT_WERROR - Success
-- Performing Test COMPILER_SUPPORT_pedantic
-- Performing Test COMPILER_SUPPORT_pedantic - Success
-- Performing Test COMPILER_SUPPORT_Wall
-- Performing Test COMPILER_SUPPORT_Wall - Success
-- Performing Test COMPILER_SUPPORT_Wextra
-- Performing Test COMPILER_SUPPORT_Wextra - Success
-- Performing Test COMPILER_SUPPORT_Wundef
-- Performing Test COMPILER_SUPPORT_Wundef - Success
-- Performing Test COMPILER_SUPPORT_Wcastalign
-- Performing Test COMPILER_SUPPORT_Wcastalign - Success
-- Performing Test COMPILER_SUPPORT_Wcharsubscripts
-- Performing Test COMPILER_SUPPORT_Wcharsubscripts - Success
-- Performing Test COMPILER_SUPPORT_Wnonvirtualdtor
-- Performing Test COMPILER_SUPPORT_Wnonvirtualdtor - Success
-- Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs
-- Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs - Success
-- Performing Test COMPILER_SUPPORT_Wpointerarith
-- Performing Test COMPILER_SUPPORT_Wpointerarith - Success
-- Performing Test COMPILER_SUPPORT_Wwritestrings
-- Performing Test COMPILER_SUPPORT_Wwritestrings - Success
-- Performing Test COMPILER_SUPPORT_Wformatsecurity
-- Performing Test COMPILER_SUPPORT_Wformatsecurity - Success
-- Performing Test COMPILER_SUPPORT_Wshorten64to32
-- Performing Test COMPILER_SUPPORT_Wshorten64to32 - Failed
-- Performing Test COMPILER_SUPPORT_Wlogicalop
-- Performing Test COMPILER_SUPPORT_Wlogicalop - Success
-- Performing Test COMPILER_SUPPORT_Wenumconversion
-- Performing Test COMPILER_SUPPORT_Wenumconversion - Success
-- Performing Test COMPILER_SUPPORT_Wcpp11extensions
-- Performing Test COMPILER_SUPPORT_Wcpp11extensions - Failed
-- Performing Test COMPILER_SUPPORT_Wdoublepromotion
-- Performing Test COMPILER_SUPPORT_Wdoublepromotion - Success
-- Performing Test COMPILER_SUPPORT_Wshadow
-- Performing Test COMPILER_SUPPORT_Wshadow - Success
-- Performing Test COMPILER_SUPPORT_Wnopsabi
-- Performing Test COMPILER_SUPPORT_Wnopsabi - Success
-- Performing Test COMPILER_SUPPORT_Wnovariadicmacros
-- Performing Test COMPILER_SUPPORT_Wnovariadicmacros - Success
-- Performing Test COMPILER_SUPPORT_Wnolonglong
-- Performing Test COMPILER_SUPPORT_Wnolonglong - Success
-- Performing Test COMPILER_SUPPORT_fnochecknew
-- Performing Test COMPILER_SUPPORT_fnochecknew - Success
-- Performing Test COMPILER_SUPPORT_fnocommon
-- Performing Test COMPILER_SUPPORT_fnocommon - Success
-- Performing Test COMPILER_SUPPORT_fstrictaliasing
-- Performing Test COMPILER_SUPPORT_fstrictaliasing - Success
-- Performing Test COMPILER_SUPPORT_wd981
-- Performing Test COMPILER_SUPPORT_wd981 - Failed
-- Performing Test COMPILER_SUPPORT_wd2304
-- Performing Test COMPILER_SUPPORT_wd2304 - Failed
-- Performing Test COMPILER_SUPPORT_STRICTANSI
-- Performing Test COMPILER_SUPPORT_STRICTANSI - Failed
-- Performing Test COMPILER_SUPPORT_Qunusedarguments
-- Performing Test COMPILER_SUPPORT_Qunusedarguments - Failed
-- Performing Test COMPILER_SUPPORT_ansi
-- Performing Test COMPILER_SUPPORT_ansi - Success
-- Performing Test COMPILER_SUPPORT_OPENMP
-- Performing Test COMPILER_SUPPORT_OPENMP - Success
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - /usr/bin/f95
-- The Fortran compiler identification is GNU 4.8.5
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/f95 - skipped
-- Found unsuitable Qt version "" from NOTFOUND
-- Qt4 not found, so disabling the mandelbrot and opengl demos
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES) 
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES) 
-- Could NOT find KLU (missing: KLU_INCLUDES KLU_LIBRARIES) 
-- Could NOT find SuperLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK) (Required is at least version "4.0")
-- Checking for one of the modules 'hwloc'
-- A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend.
-- 
-- Configured Eigen 3.4.0
ytc19990517 commented 5 months ago

please remove your build directory, re-build it, and post all the logs printed in the terminal.

Available targets (use: make TARGET):
-- ---------+--------------------------------------------------------------
-- Target   |   Description
-- ---------+--------------------------------------------------------------
-- install  | Install Eigen. Headers will be installed to:
--          |     <CMAKE_INSTALL_PREFIX>/<INCLUDE_INSTALL_DIR>
--          |   Using the following values:
--          |     CMAKE_INSTALL_PREFIX: /home/ytc/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx
--          |     INCLUDE_INSTALL_DIR:  include/eigen3
--          |   Change the install location of Eigen headers using:
--          |     cmake . -DCMAKE_INSTALL_PREFIX=yourprefix
--          |   Or:
--          |     cmake . -DINCLUDE_INSTALL_DIR=yourdir
-- doc      | Generate the API documentation, requires Doxygen & LaTeX
-- blas     | Build BLAS library (not the same thing as Eigen)
-- uninstall| Remove files installed by the install target
-- ---------+--------------------------------------------------------------
-- 
-- CMAKE_SYSTEM_NAME: Linux
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- location_onnxruntime_header_dir: location_onnxruntime_header_dir-NOTFOUND
-- location_onnxruntime_lib: location_onnxruntime_lib-NOTFOUND
-- location_onnxruntime_cuda_lib: location_onnxruntime_cuda_lib-NOTFOUND
-- Could not find a pre-installed onnxruntime.
-- Downloading pre-compiled onnxruntime
-- CMAKE_SYSTEM_NAME: Linux
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- CMAKE_SYSTEM_NAME: Linux
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- Downloading onnxruntime from https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-gpu-1.17.1.tgz
-- onnxruntime is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src
-- location_onnxruntime: /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib/libonnxruntime.so
-- location_onnxruntime_cuda_lib: /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so
-- location_onnxruntime_providers_shared_lib: /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib/libonnxruntime_providers_shared.so
-- onnxruntime lib files: /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib/libonnxruntime.so;/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib/libonnxruntime.so.1.17.1;/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so;/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib/libonnxruntime_providers_shared.so;/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib/libonnxruntime_providers_tensorrt.so
-- Downloading simple-sentencepiece https://github.com/pkufool/simple-sentencepiece/archive/refs/tags/v0.7.tar.gz
-- simple-sentencepiece is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/simple-sentencepiece-src
-- Performing Test SBPE_COMPILER_SUPPORTS_CXX14
-- Performing Test SBPE_COMPILER_SUPPORTS_CXX14 - Success
-- C++ Standard version: 14
-- ONNXRUNTIME_DIR: /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src
-- Downloading portaudio from http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz
-- portaudio is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/portaudio-src
-- portaudio's binary dir is /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/portaudio-build
CMake Deprecation Warning at build/temp.linux-x86_64-cpython-38/_deps/portaudio-src/CMakeLists.txt:7 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at /usr/local/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (jack) does
  not match the name of the calling package (Jack).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  build/temp.linux-x86_64-cpython-38/_deps/portaudio-src/cmake_support/FindJack.cmake:34 (find_package_handle_standard_args)
  build/temp.linux-x86_64-cpython-38/_deps/portaudio-src/CMakeLists.txt:277 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find jack (missing: JACK_LIBRARY JACK_INCLUDE_DIR) 
-- Found ALSA: /usr/lib64/libasound.so (found version "1.1.8")
-- Downloading pybind11 from https://github.com/pybind/pybind11/archive/refs/tags/v2.10.2.tar.gz
-- pybind11 is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/pybind11-src
CMake Deprecation Warning at build/temp.linux-x86_64-cpython-38/_deps/pybind11-src/CMakeLists.txt:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- pybind11 v2.10.2 
CMake Warning (dev) at build/temp.linux-x86_64-cpython-38/_deps/pybind11-src/tools/FindPythonLibsNew.cmake:98 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  build/temp.linux-x86_64-cpython-38/_deps/pybind11-src/tools/pybind11Tools.cmake:50 (find_package)
  build/temp.linux-x86_64-cpython-38/_deps/pybind11-src/tools/pybind11Common.cmake:180 (include)
  build/temp.linux-x86_64-cpython-38/_deps/pybind11-src/CMakeLists.txt:208 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /home/ytc/anaconda3/envs/kaldi/bin/python3 (found suitable version "3.8.19", minimum required is "3.6")
-- Found PythonLibs: /home/ytc/anaconda3/envs/kaldi/lib/libpython3.8.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Downloading websocketpp from https://github.com/zaphoyd/websocketpp/archive/b9aeec6eaf3d5610503439b4fae3581d9aff08e8.zip
-- websocketpp is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/websocketpp-src
-- Downloading asio https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-24-0.tar.gz
-- asio is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/asio-src
-- Downloading espeak-ng from https://github.com/csukuangfj/espeak-ng/archive/69bf6927964fb042aeb827cfdf6082a30f5802eb.zip
-- espeak-ng is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/espeak_ng-src
-- espeak-ng binary dir is /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/espeak_ng-build
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Configuration:
--   shared: ON
--   mbrola: OFF (MBROLA_BIN-NOTFOUND)
--   libsonic: OFF (SONIC_LIB-NOTFOUND SONIC_INC-NOTFOUND)
--   libpcaudio: OFF (PCAUDIO_LIB-NOTFOUND PCAUDIO_INC-NOTFOUND)
--   klatt: OFF
--   speech-player: OFF
--   async: OFF
-- ESPEAK_NG_DIR: /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/espeak_ng-src
-- Downloading piper-phonemize from https://github.com/csukuangfj/piper-phonemize/archive/dc6b5f4441bffe521047086930b0fc12686acd56.zip
-- piper-phonemize is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/piper_phonemize-src
-- piper-phonemize binary dir is /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/piper_phonemize-build
-- ESPEAK_NG_DIR: /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/espeak_ng-src
-- ONNXRUNTIME_DIR: /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src
-- Downloading cppjieba https://github.com/csukuangfj/cppjieba/archive/refs/tags/sherpa-onnx-2024-04-19.tar.gz
-- cppjieba is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/cppjieba-src
CMake Deprecation Warning at build/temp.linux-x86_64-cpython-38/_deps/cppjieba-src/CMakeLists.txt:3 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
ytc19990517 commented 5 months ago

please remove your build directory, re-build it, and post all the logs printed in the terminal.

-- PYTHON_EXECUTABLE: /home/ytc/anaconda3/envs/kaldi/bin/python3
-- PYTHON_VERSION: 3.8
-- Downloading cargs https://github.com/likle/cargs/archive/refs/tags/v1.0.3.tar.gz
-- cargs is downloaded to /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/cargs-src
-- CMAKE_CXX_FLAGS: 
-- CMAKE_CXX_FLAGS: 
-- Configuring done (499.8s)
-- Generating done (0.3s)
-- Build files have been written to: /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38
[  0%] Building CXX object _deps/openfst-build/src/lib/CMakeFiles/fst.dir/compat.cc.o
[  0%] Building CXX object _deps/simple-sentencepiece-build/ssentencepiece/csrc/CMakeFiles/ssentencepiece_core.dir/ssentencepiece.cc.o
[  0%] Building C object _deps/espeak_ng-build/src/ucd-tools/CMakeFiles/ucd.dir/src/case.c.o
[  0%] Building CXX object _deps/kaldi_native_fbank-build/kaldi-native-fbank/csrc/CMakeFiles/kaldi-native-fbank-core.dir/feature-fbank.cc.o
[  1%] Building C object _deps/espeak_ng-build/src/ucd-tools/CMakeFiles/ucd.dir/src/categories.c.o
[  1%] Building C object _deps/espeak_ng-build/src/ucd-tools/CMakeFiles/ucd.dir/src/ctype.c.o
[  1%] Building C object _deps/espeak_ng-build/src/ucd-tools/CMakeFiles/ucd.dir/src/proplist.c.o
[  1%] Building CXX object _deps/openfst-build/src/lib/CMakeFiles/fst.dir/flags.cc.o
[  3%] Building CXX object _deps/kaldi_native_fbank-build/kaldi-native-fbank/csrc/CMakeFiles/kaldi-native-fbank-core.dir/feature-functions.cc.o
[  3%] Building CXX object _deps/kaldi_native_fbank-build/kaldi-native-fbank/csrc/CMakeFiles/kaldi-native-fbank-core.dir/feature-window.cc.o
[  3%] Building C object _deps/espeak_ng-build/src/ucd-tools/CMakeFiles/ucd.dir/src/scripts.c.o
[  3%] Building C object _deps/espeak_ng-build/src/ucd-tools/CMakeFiles/ucd.dir/src/tostring.c.o
[  4%] Linking C shared library ../../../../lib/libucd.so
[  4%] Built target ucd
[  4%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/common/pa_allocation.c.o
[  6%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/common/pa_converters.c.o
[  6%] Building CXX object _deps/kaldi_native_fbank-build/kaldi-native-fbank/csrc/CMakeFiles/kaldi-native-fbank-core.dir/fftsg.cc.o
[  6%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/common/pa_cpuload.c.o
[  6%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/common/pa_debugprint.c.o
[  6%] Building CXX object _deps/openfst-build/src/lib/CMakeFiles/fst.dir/fst.cc.o
[  6%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/common/pa_dither.c.o
[  6%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/common/pa_front.c.o
[  7%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/common/pa_process.c.o
[  7%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/common/pa_ringbuffer.c.o
[  7%] Building CXX object _deps/kaldi_native_fbank-build/kaldi-native-fbank/csrc/CMakeFiles/kaldi-native-fbank-core.dir/kaldi-math.cc.o
[  7%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/common/pa_stream.c.o
[  7%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/common/pa_trace.c.o
[  7%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/hostapi/skeleton/pa_hostapi_skeleton.c.o
[  7%] Building CXX object _deps/kaldi_native_fbank-build/kaldi-native-fbank/csrc/CMakeFiles/kaldi-native-fbank-core.dir/mel-computations.cc.o
[  7%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/os/unix/pa_unix_hostapis.c.o
[  9%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/os/unix/pa_unix_util.c.o
[  9%] Building C object _deps/portaudio-build/CMakeFiles/portaudio.dir/src/hostapi/alsa/pa_linux_alsa.c.o
[  9%] Building CXX object _deps/kaldi_native_fbank-build/kaldi-native-fbank/csrc/CMakeFiles/kaldi-native-fbank-core.dir/online-feature.cc.o
[ 10%] Linking CXX shared library ../../../../lib/libssentencepiece_core.so
[ 10%] Built target ssentencepiece_core
[ 10%] Building C object _deps/cargs-build/CMakeFiles/cargs.dir/src/cargs.c.o
[ 10%] Linking C shared library ../../lib/libcargs.so
[ 10%] Linking C shared library ../../lib/libsherpa-onnx-portaudio.so
[ 10%] Built target cargs
[ 12%] Building CXX object _deps/openfst-build/src/lib/CMakeFiles/fst.dir/properties.cc.o
[ 12%] Built target portaudio
[ 14%] Building CXX object _deps/kaldi_native_fbank-build/kaldi-native-fbank/csrc/CMakeFiles/kaldi-native-fbank-core.dir/rfft.cc.o
[ 14%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/common.c.o
[ 14%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/mnemonics.c.o
[ 14%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/error.c.o
[ 14%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/ieee80.c.o
[ 14%] Building CXX object _deps/kaldi_native_fbank-build/kaldi-native-fbank/csrc/CMakeFiles/kaldi-native-fbank-core.dir/whisper-feature.cc.o
[ 14%] Building CXX object _deps/openfst-build/src/lib/CMakeFiles/fst.dir/symbol-table.cc.o
[ 15%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/compiledata.c.o
[ 15%] Linking CXX shared library ../../../../lib/libkaldi-native-fbank-core.so
[ 15%] Built target kaldi-native-fbank-core
[ 15%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/compiledict.c.o
[ 15%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/dictionary.c.o
[ 15%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/encoding.c.o
[ 15%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/intonation.c.o
[ 17%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/langopts.c.o
[ 17%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/numbers.c.o
[ 17%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/phoneme.c.o
[ 17%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/phonemelist.c.o
[ 17%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/readclause.c.o
[ 17%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/setlengths.c.o
[ 18%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/soundicon.c.o
[ 18%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/spect.c.o
[ 18%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/ssml.c.o
[ 18%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/synthdata.c.o
[ 18%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/synthesize.c.o
[ 20%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/tr_languages.c.o
[ 20%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/translate.c.o
[ 20%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/translateword.c.o
[ 20%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/voices.c.o
[ 20%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/wavegen.c.o
[ 20%] Building CXX object _deps/openfst-build/src/lib/CMakeFiles/fst.dir/util.cc.o
[ 20%] Building CXX object _deps/openfst-build/src/lib/CMakeFiles/fst.dir/symbol-table-ops.cc.o
[ 20%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/speech.c.o
[ 21%] Building C object _deps/espeak_ng-build/src/libespeak-ng/CMakeFiles/espeak-ng.dir/espeak_api.c.o
[ 21%] Building CXX object _deps/openfst-build/src/lib/CMakeFiles/fst.dir/mapped-file.cc.o
[ 21%] Linking C shared library ../../../../lib/libespeak-ng.so
[ 21%] Built target espeak-ng
[ 21%] Building CXX object _deps/openfst-build/src/lib/CMakeFiles/fst.dir/weight.cc.o
[ 23%] Building CXX object _deps/piper_phonemize-build/CMakeFiles/piper_phonemize.dir/src/phonemize.cpp.o
[ 23%] Building CXX object _deps/piper_phonemize-build/CMakeFiles/piper_phonemize.dir/src/phoneme_ids.cpp.o
[ 23%] Building CXX object _deps/piper_phonemize-build/CMakeFiles/piper_phonemize.dir/src/tashkeel.cpp.o
/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/piper_phonemize-src/src/tashkeel.cpp:39:13: warning: unpaired UTF-8 bidirectional control character detected [-Wbidi-chars=]
   39 |     {U'\u202b', 94},  {U'\u202c', 108}, {U'\u2030', 115}, {U'\ufb90', 53},
      |             ^
[ 23%] Building CXX object _deps/piper_phonemize-build/CMakeFiles/piper_phonemize.dir/src/shared.cpp.o
[ 23%] Linking CXX shared library ../../lib/libpiper_phonemize.so
[ 23%] Built target piper_phonemize
[ 25%] Linking CXX shared library ../../../../lib/libsherpa-onnx-fst.so
[ 25%] Built target fst
[ 25%] Building CXX object _deps/kaldifst-build/kaldifst/csrc/CMakeFiles/kaldifst_core.dir/kaldi-fst-io.cc.o
[ 26%] Building CXX object _deps/kaldifst-build/kaldifst/csrc/CMakeFiles/kaldifst_core.dir/kaldi-holder.cc.o
[ 26%] Building CXX object _deps/kaldifst-build/kaldifst/csrc/CMakeFiles/kaldifst_core.dir/context-fst.cc.o
[ 26%] Building CXX object _deps/openfst-build/src/extensions/far/CMakeFiles/fstfar.dir/sttable.cc.o
[ 26%] Building CXX object _deps/openfst-build/src/extensions/far/CMakeFiles/fstfar.dir/stlist.cc.o
[ 26%] Building CXX object _deps/kaldifst-build/kaldifst/csrc/CMakeFiles/kaldifst_core.dir/kaldi-io.cc.o
[ 26%] Linking CXX shared library ../../../../../lib/libsherpa-onnx-fstfar.so
[ 26%] Built target fstfar
[ 26%] Building CXX object _deps/kaldifst-build/kaldifst/csrc/CMakeFiles/kaldifst_core.dir/kaldi-math.cc.o
[ 26%] Building CXX object _deps/kaldifst-build/kaldifst/csrc/CMakeFiles/kaldifst_core.dir/kaldi-semaphore.cc.o
[ 26%] Building CXX object _deps/kaldifst-build/kaldifst/csrc/CMakeFiles/kaldifst_core.dir/kaldi-table.cc.o
[ 26%] Building CXX object _deps/kaldifst-build/kaldifst/csrc/CMakeFiles/kaldifst_core.dir/parse-options.cc.o
[ 28%] Building CXX object _deps/kaldifst-build/kaldifst/csrc/CMakeFiles/kaldifst_core.dir/text-normalizer.cc.o
[ 28%] Building CXX object _deps/kaldifst-build/kaldifst/csrc/CMakeFiles/kaldifst_core.dir/text-utils.cc.o
[ 28%] Linking CXX shared library ../../../../lib/libsherpa-onnx-kaldifst-core.so
[ 28%] Built target kaldifst_core
[ 28%] Building CXX object _deps/kaldi_decoder-build/kaldi-decoder/csrc/CMakeFiles/kaldi-decoder-core.dir/eigen.cc.o
[ 28%] Building CXX object _deps/kaldi_decoder-build/kaldi-decoder/csrc/CMakeFiles/kaldi-decoder-core.dir/decodable-ctc.cc.o
[ 28%] Building CXX object _deps/kaldi_decoder-build/kaldi-decoder/csrc/CMakeFiles/kaldi-decoder-core.dir/faster-decoder.cc.o
[ 29%] Building CXX object _deps/kaldi_decoder-build/kaldi-decoder/csrc/CMakeFiles/kaldi-decoder-core.dir/lattice-faster-decoder.cc.o
[ 29%] Building CXX object _deps/kaldi_decoder-build/kaldi-decoder/csrc/CMakeFiles/kaldi-decoder-core.dir/lattice-simple-decoder.cc.o
[ 29%] Building CXX object _deps/kaldi_decoder-build/kaldi-decoder/csrc/CMakeFiles/kaldi-decoder-core.dir/simple-decoder.cc.o
[ 29%] Linking CXX shared library ../../../../lib/libkaldi-decoder-core.so
[ 29%] Built target kaldi-decoder-core
[ 29%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/base64-decode.cc.o
[ 29%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/cat.cc.o
[ 29%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/circular-buffer.cc.o
[ 31%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/context-graph.cc.o
[ 31%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/endpoint.cc.o
[ 31%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/features.cc.o
[ 31%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/file-utils.cc.o
[ 31%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/hypothesis.cc.o
[ 32%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/keyword-spotter-impl.cc.o
[ 32%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/keyword-spotter.cc.o
[ 32%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-ctc-fst-decoder-config.cc.o
[ 32%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-ctc-fst-decoder.cc.o
[ 32%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-ctc-greedy-search-decoder.cc.o
[ 32%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-ctc-model.cc.o
[ 34%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-lm-config.cc.o
[ 34%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-lm.cc.o
[ 34%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-model-config.cc.o
[ 34%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-nemo-enc-dec-ctc-model-config.cc.o
[ 34%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-nemo-enc-dec-ctc-model.cc.o
[ 34%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-paraformer-greedy-search-decoder.cc.o
[ 35%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-paraformer-model-config.cc.o
[ 35%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-paraformer-model.cc.o
[ 35%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-recognizer-impl.cc.o
[ 35%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-recognizer.cc.o
[ 35%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-rnn-lm.cc.o
[ 37%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-stream.cc.o
[ 37%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-tdnn-ctc-model.cc.o
[ 37%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-tdnn-model-config.cc.o
[ 37%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-transducer-greedy-search-decoder.cc.o
[ 37%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-transducer-greedy-search-nemo-decoder.cc.o
[ 37%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-transducer-model-config.cc.o
[ 39%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-transducer-model.cc.o
[ 39%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-transducer-modified-beam-search-decoder.cc.o
[ 39%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-transducer-nemo-model.cc.o
[ 39%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-wenet-ctc-model-config.cc.o
[ 39%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-wenet-ctc-model.cc.o
[ 40%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-whisper-greedy-search-decoder.cc.o
[ 40%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-whisper-model-config.cc.o
[ 40%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-whisper-model.cc.o
[ 40%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-zipformer-ctc-model-config.cc.o
[ 40%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-zipformer-ctc-model.cc.o
[ 40%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-conformer-transducer-model.cc.o
[ 42%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-ctc-fst-decoder-config.cc.o
[ 42%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-ctc-fst-decoder.cc.o
[ 42%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-ctc-greedy-search-decoder.cc.o
[ 42%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-ctc-model.cc.o
[ 42%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-lm-config.cc.o
[ 43%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-lm.cc.o
[ 43%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-lstm-transducer-model.cc.o
[ 43%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-model-config.cc.o
[ 43%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-nemo-ctc-model-config.cc.o
[ 43%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-nemo-ctc-model.cc.o
[ 43%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-paraformer-model-config.cc.o
[ 45%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-paraformer-model.cc.o
[ 45%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-recognizer-impl.cc.o
[ 45%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-recognizer.cc.o
[ 45%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-rnn-lm.cc.o
[ 45%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-stream.cc.o
[ 46%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-transducer-decoder.cc.o
[ 46%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-transducer-greedy-search-decoder.cc.o
[ 46%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-transducer-model-config.cc.o
[ 46%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-transducer-model.cc.o
[ 46%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-transducer-modified-beam-search-decoder.cc.o
[ 46%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-transducer-nemo-model.cc.o
[ 48%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-transducer-greedy-search-nemo-decoder.cc.o
[ 48%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-wenet-ctc-model-config.cc.o
[ 48%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-wenet-ctc-model.cc.o
[ 48%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-zipformer-transducer-model.cc.o
[ 48%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-zipformer2-ctc-model-config.cc.o
[ 50%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-zipformer2-ctc-model.cc.o
[ 50%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/online-zipformer2-transducer-model.cc.o
[ 50%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/onnx-utils.cc.o
[ 50%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/packed-sequence.cc.o
[ 50%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/pad-sequence.cc.o
[ 50%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/parse-options.cc.o
[ 51%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/provider.cc.o
[ 51%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/resample.cc.o
[ 51%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/session.cc.o
[ 51%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/silero-vad-model-config.cc.o
[ 51%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/silero-vad-model.cc.o
[ 53%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/slice.cc.o
[ 53%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/spoken-language-identification-impl.cc.o
[ 53%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/spoken-language-identification.cc.o
[ 53%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/stack.cc.o
[ 53%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/symbol-table.cc.o
[ 53%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/text-utils.cc.o
[ 54%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/transducer-keyword-decoder.cc.o
[ 54%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/transpose.cc.o
[ 54%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/unbind.cc.o
[ 54%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/utils.cc.o
[ 54%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/vad-model-config.cc.o
[ 56%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/vad-model.cc.o
[ 56%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/voice-activity-detector.cc.o
[ 56%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/wave-reader.cc.o
[ 56%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/wave-writer.cc.o
[ 56%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/speaker-embedding-extractor-impl.cc.o
[ 56%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/speaker-embedding-extractor-model.cc.o
[ 57%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/speaker-embedding-extractor-nemo-model.cc.o
[ 57%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/speaker-embedding-extractor.cc.o
[ 57%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/speaker-embedding-manager.cc.o
[ 57%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/audio-tagging-impl.cc.o
[ 57%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/audio-tagging-label-file.cc.o
[ 59%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/audio-tagging-model-config.cc.o
[ 59%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/audio-tagging.cc.o
[ 59%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-ced-model.cc.o
[ 59%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-zipformer-audio-tagging-model-config.cc.o
[ 59%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-zipformer-audio-tagging-model.cc.o
[ 59%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-ct-transformer-model.cc.o
[ 60%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-punctuation-impl.cc.o
[ 60%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-punctuation-model-config.cc.o
[ 60%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-punctuation.cc.o
[ 60%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/jieba-lexicon.cc.o
[ 60%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/lexicon.cc.o
[ 60%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-tts-character-frontend.cc.o
[ 62%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-tts-impl.cc.o
[ 62%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-tts-model-config.cc.o
[ 62%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-tts-vits-model-config.cc.o
[ 62%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-tts-vits-model.cc.o
[ 62%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/offline-tts.cc.o
[ 64%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/piper-phonemize-lexicon.cc.o
[ 64%] Linking CXX shared library ../../lib/libsherpa-onnx-core.so
[ 64%] Built target sherpa-onnx-core
[ 64%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx.dir/sherpa-onnx.cc.o
[ 64%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-offline-audio-tagging.dir/sherpa-onnx-offline-audio-tagging.cc.o
[ 65%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-offline.dir/sherpa-onnx-offline.cc.o
[ 65%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-keyword-spotter.dir/sherpa-onnx-keyword-spotter.cc.o
[ 65%] Linking CXX executable ../../bin/sherpa-onnx-offline-audio-tagging
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `logf@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `log2f@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to `powf@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `expf@GLIBC_2.27'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/sherpa-onnx-offline-audio-tagging] 错误 1
make[1]: *** [sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-offline-audio-tagging.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 65%] Linking CXX executable ../../bin/sherpa-onnx-offline
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `logf@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `log2f@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to `powf@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `expf@GLIBC_2.27'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/sherpa-onnx-offline] 错误 1
make[1]: *** [sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-offline.dir/all] 错误 2
[ 65%] Linking CXX executable ../../bin/sherpa-onnx-keyword-spotter
[ 65%] Linking CXX executable ../../bin/sherpa-onnx
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `logf@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `log2f@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to `powf@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `expf@GLIBC_2.27'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/sherpa-onnx-keyword-spotter] 错误 1
make[1]: *** [sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-keyword-spotter.dir/all] 错误 2
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `logf@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `log2f@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to `powf@GLIBC_2.27'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `expf@GLIBC_2.27'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/sherpa-onnx] 错误 1
make[1]: *** [sherpa-onnx/csrc/CMakeFiles/sherpa-onnx.dir/all] 错误 2
make: *** [all] 错误 2
Traceback (most recent call last):
  File "setup.py", line 53, in <module>
    setuptools.setup(
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/__init__.py", line 104, in setup
    return distutils.core.setup(**attrs)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 184, in setup
    return run_commands(dist)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
    dist.run_commands()
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
    super().run_command(command)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/install.py", line 87, in run
    self.do_egg_install()
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/install.py", line 139, in do_egg_install
    self.run_command('bdist_egg')
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
    super().run_command(command)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 167, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 153, in call_command
    self.run_command(cmdname)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
    super().run_command(command)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/install_lib.py", line 110, in build
    self.run_command('build_ext')
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
    super().run_command(command)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 91, in run
    _build_ext.run(self)
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
    self.build_extensions()
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
    self._build_extensions_serial()
  File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/ytc/sherpa-onnx/cmake/cmake_extension.py", line 202, in build_extension
    raise Exception(
Exception: 
Build sherpa-onnx failed. Please check the error message.
You can ask for help by creating an issue on GitHub.

Click:
    https://github.com/k2-fsa/sherpa-onnx/issues/new
ytc19990517 commented 5 months ago

please remove your build directory, re-build it, and post all the logs printed in the terminal.

I reinstalled gcc and solved the problem about GLIBC3.4.21

csukuangfj commented 5 months ago

Great! So are you able to build sherpa-onnx with GPU support?

ytc19990517 commented 5 months ago

Great! So are you able to build sherpa-onnx with GPU support?

No, as you can see, I have a problem with GLIBC2.27

csukuangfj commented 5 months ago

Could you run

export SHERPA_ONNX_MAKE_ARGS="VERBOSE=1"
python3 setup.py bdist_wheel

and post the logs about linking?

ytc19990517 commented 5 months ago

Could you run

export SHERPA_ONNX_MAKE_ARGS="VERBOSE=1"
python3 setup.py bdist_wheel

and post the logs about linking? Consolidate compiler generated dependencies of target sherpa-onnx make[2]: 离开目录“/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38” make -f sherpa-onnx/csrc/CMakeFiles/sherpa-onnx.dir/build.make sherpa-onnx/csrc/CMakeFiles/sherpa-onnx.dir/build make[2]: 进入目录“/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38” [ 59%] Linking CXX executable ../../bin/sherpa-onnx cd /home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/sherpa-onnx/csrc && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/sherpa-onnx.dir/link.txt --verbose=1 /opt/rh/devtoolset-11/root/usr/bin/c++ -O3 -DNDEBUG "CMakeFiles/sherpa-onnx.dir/sherpa-onnx.cc.o" -o ../../bin/sherpa-onnx -L/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib -Wl,-rpath,"\$ORIGIN:/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib:/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38/lib:" ../../lib/libsherpa-onnx-core.so -Wl,-rpath,$ORIGIN/../lib -Wl,-rpath,$ORIGIN/../../../sherpa_onnx/lib -Wl,-rpath,$ORIGIN/../lib/python3.8/site-packages/sherpa_onnx/lib ../../lib/libkaldi-native-fbank-core.so ../../lib/libkaldi-decoder-core.so ../../lib/libsherpa-onnx-kaldifst-core.so ../../lib/libssentencepiece_core.so -lpthread ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_shared.so -lm ../../lib/libpiper_phonemize.so.1.2.0 ../../_deps/onnxruntime-src/lib/libonnxruntime.so ../../lib/libespeak-ng.so ../../lib/libucd.so ../../lib/libsherpa-onnx-fstfar.so ../../lib/libsherpa-onnx-fst.so -pthread /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::logic_error::logic_error(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference to std::thread::_State::~_State()@GLIBCXX_3.4.22' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tooperator delete(void, std::align_val_t)@CXXABI_1.3.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference to `std::codecvt_utf8_base::do_length(mbstate_t&, char const, char const*, unsigned long) const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference to `std::codecvt_utf8_base::do_encoding() const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned long, unsigned long) const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libssentencepiece_core.so: undefined reference tocxa_init_primary_exception@CXXABI_1.3.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to `std::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >::basic_ostringstream(std::_Ios_Openmode)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::range_error::range_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libpiper_phonemize.so.1.2.0: undefined reference tostd::string::reserve()@GLIBCXX_3.4.29' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::length_error::length_error(char const*)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tostd::out_of_range::out_of_range(char const)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference to `std::runtime_error::runtime_error(char const)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tovtable for std::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::logic_error::logic_error(char const*)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::overflow_error::overflow_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::runtime_error::runtime_error(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libssentencepiece_core.so: undefined reference to std::__exception_ptr::exception_ptr::_M_release()@CXXABI_1.3.13' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::cxx11::numpunct const& std::use_facet<std::cxx11::numpunct >(std::locale const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference to `std::codecvt_utf8_base::do_in(__mbstate_t&, char const, char const, char const&, char32_t, char32_t, char32_t&) const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::invalid_argument::invalid_argument(char const*)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference tostd::throw_out_of_range_fmt(char const, ...)@GLIBCXX_3.4.20' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::out_of_range::out_of_range(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference tostd::codecvt_utf8_base::~codecvt_utf8_base()@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to logf@GLIBC_2.27' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tooperator new(unsigned long, std::align_val_t)@CXXABI_1.3.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference to std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()@GLIBCXX_3.4.26' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::cxx11::basic_stringstream<char, std::char_traits, std::allocator >::basic_stringstream(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libssentencepiece_core.so: undefined reference to std::__exception_ptr::exception_ptr::_M_addref()@CXXABI_1.3.13' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference totypeinfo for std::thread::_State@GLIBCXX_3.4.22' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long) const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tolog2f@GLIBC_2.27' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libssentencepiece_core.so: undefined reference tostd::runtime_error::runtime_error(char const)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct(unsigned long, char)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-kaldifst-core.so: undefined reference tostd::basic_string<char, std::char_traits, std::allocator >::basic_string(std::string const&, unsigned long, std::allocator const&)@GLIBCXX_3.4.23' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference to std::__codecvt_utf8_base<char32_t>::do_always_noconv() const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference tostd::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete >, void ()())@GLIBCXX_3.4.22' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libssentencepiece_core.so: undefined reference to __cxa_throw_bad_array_new_length@CXXABI_1.3.8' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::runtime_error::runtime_error(std::runtime_error const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libssentencepiece_core.so: undefined reference tostd::__atomic_futex_unsigned_base::_M_futex_notify_all(unsigned int)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::overflow_error::overflow_error(char const*)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tovtable for std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference tostd::codecvt_utf8_base::do_out(mbstate_t&, char32_t const, char32_t const, char32_t const&, char, char, char&) const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::range_error::range_error(char const*)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::runtime_error::runtime_error(std::runtime_error const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference to `typeinfo for std::codecvt_utf8_base@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::domain_error::domain_error(char const*)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::length_error::length_error(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to `std::basic_istream<char, std::char_traits >& std::getline<char, std::char_traits, std::allocator >(std::basic_istream<char, std::char_traits >&, std::cxx11::basic_string<char, std::char_traits, std::allocator >&, char)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >::basic_istringstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tostd::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::_M_sync(char*, unsigned long, unsigned long)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::uncaught_exceptions()@GLIBCXX_3.4.22' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference to `std::throw_bad_array_new_length()@GLIBCXX_3.4.29' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference tostd::codecvt_utf8_base::do_unshift(mbstate_t&, char, char, char&) const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to vtable for std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference tostd::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::str() const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::domain_error::domain_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference toVTT for std::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_istringstream()@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference toVTT for std::cxx11::basic_istringstream<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libssentencepiece_core.so: undefined reference to std::__future_base::_State_baseV2::_Make_ready::_M_set()@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference tostd::codecvt_utf8_base::do_max_length() const@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to std::logic_error::logic_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libssentencepiece_core.so: undefined reference tostd::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int, unsigned int, bool, std::chrono::duration<long, std::ratio<1l, 1l> >, std::chrono::duration<long, std::ratio<1l, 1000000000l> >)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::underflow_error::underflow_error(char const*)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libsherpa-onnx-core.so: undefined reference tooperator delete(void, unsigned long)@CXXABI_1.3.9' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::underflow_error::underflow_error(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to std::invalid_argument::invalid_argument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference topowf@GLIBC_2.27' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: undefined reference to expf@GLIBC_2.27' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference tostd::runtime_error::runtime_error(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../lib/libssentencepiece_core.so: undefined reference to `std::__exception_ptr::exception_ptr::exception_ptr(void)@CXXABI_1.3.11' /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../_deps/onnxruntime-src/lib/libonnxruntime.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits, std::allocator >::rfind(char, unsigned long) const@GLIBCXX_3.4.21' collect2: error: ld returned 1 exit status make[2]: [bin/sherpa-onnx] 错误 1 make[2]: 离开目录“/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38” make[1]: [sherpa-onnx/csrc/CMakeFiles/sherpa-onnx.dir/all] 错误 2 make[1]: 离开目录“/home/ytc/sherpa-onnx/build/temp.linux-x86_64-cpython-38” make: * [all] 错误 2 Traceback (most recent call last): File "setup.py", line 53, in setuptools.setup( File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/init.py", line 104, in setup return distutils.core.setup(attrs) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 184, in setup return run_commands(dist) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 200, in run_commands dist.run_commands() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 368, in run self.run_command("build") File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 132, in run self.run_command(cmd_name) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 91, in run _build_ext.run(self) File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run self.build_extensions() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions self._build_extensions_serial() File "/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial self.build_extension(ext) File "/home/ytc/sherpa-onnx/cmake/cmake_extension.py", line 202, in build_extension raise Exception( Exception: Build sherpa-onnx failed. Please check the error message. You can ask for help by creating an issue on GitHub.

Click: https://github.com/k2-fsa/sherpa-onnx/issues/new

ytc19990517 commented 5 months ago

Could you run

export SHERPA_ONNX_MAKE_ARGS="VERBOSE=1"
python3 setup.py bdist_wheel

and post the logs about linking?

The previous part looks normal, but why does GLIBCXX3.4.21 appear again?

ytc19990517 commented 5 months ago

Great! So are you able to build sherpa-onnx with GPU support?

No, as you can see, I have a problem with GLIBC2.27

My glibc version is 2.17, should I upgrade to 2.27? Is this necessary for this project?

csukuangfj commented 5 months ago

It is necessary for onnxruntime > 1.16.

We don't have such a constraint. However, onnxruntime does have. For the CPU version, we have provided pre-built onnxruntime libs for glibc 2.17.

Howerver, for the GPU version, you need glibc > 2.17 for onnxruntime > 1.16.

To fix this issue, please change https://github.com/k2-fsa/sherpa-onnx/blob/master/cmake/onnxruntime-linux-x86_64-gpu.cmake#L21 to use onnxruntime < 1.17

ytc19990517 commented 5 months ago

It is necessary for onnxruntime > 1.16.

We don't have such a constraint. However, onnxruntime does have. For the CPU version, we have provided pre-built onnxruntime libs for glibc 2.17.

Howerver, for the GPU version, you need glibc > 2.17 for onnxruntime > 1.16.

To fix this issue, please change https://github.com/k2-fsa/sherpa-onnx/blob/master/cmake/onnxruntime-linux-x86_64-gpu.cmake#L21 to use onnxruntime < 1.17

Thank you, it worked after I reinstalled the gcc and glibc .