sherpa-onnx: compiler error from source in linux cluster
I want to run your tts model, I compiler sherpa-onnx follow the steps:
cd sherpa-onnx
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j6
however, when I run this command: cmake -DCMAKE_BUILD_TYPE=Release .. ,it occurs the below errors:
-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /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: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_INSTALL_PREFIX: /usr/local
-- BUILD_SHARED_LIBS OFF
-- SHERPA_ONNX_ENABLE_PYTHON OFF
-- 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 OFF
-- C++ Standard version: 14
-- Looking for C++ include alsa/asoundlib.h
-- Looking for C++ include alsa/asoundlib.h - not found
-- 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
-- Link libstdc++ statically
-- Downloading kaldi-native-fbank from https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.18.5.tar.gz
-- kaldi-native-fbank is downloaded to /mntnfs/lee_data1/maduo/eggs_exp_audiodata/sherpa-onnx/build/_deps/kaldi_native_fbank-src
-- kaldi-native-fbank's binary dir is /mntnfs/lee_data1/maduo/eggs_exp_audiodata/sherpa-onnx/build/_deps/kaldi_native_fbank-build
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_EXPORT_COMPILE_COMMANDS:
-- BUILD_SHARED_LIBS: OFF
-- 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: -static-libstdc++ -static-libgcc
-- CMAKE_INSTALL_PREFIX: /usr/local
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - not found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - not found
-- Disable building Python
-- Downloading kaldi-decoder from https://github.com/k2-fsa/kaldi-decoder/archive/refs/tags/v0.2.3.tar.gz
-- kaldi-decoder is downloaded to /mntnfs/lee_data1/maduo/eggs_exp_audiodata/sherpa-onnx/build/_deps/kaldi_decoder-src
-- kaldi-decoder's binary dir is /mntnfs/lee_data1/maduo/eggs_exp_audiodata/sherpa-onnx/build/_deps/kaldi_decoder-build
-- CMAKE_BUILD_TYPE: Release
-- Downloading kaldifst from https://github.com/k2-fsa/kaldifst/archive/refs/tags/v1.7.9.tar.gz
-- kaldifst is downloaded to /mntnfs/lee_data1/maduo/eggs_exp_audiodata/sherpa-onnx/build/_deps/kaldifst-src
-- kaldifst's binary dir is /mntnfs/lee_data1/maduo/eggs_exp_audiodata/sherpa-onnx/build/_deps/kaldifst-build
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_INSTALL_PREFIX: /usr/local
-- BUILD_SHARED_LIBS OFF
-- C++ Standard version: 14
-- CMAKE_CXX_FLAGS: -static-libstdc++ -static-libgcc
-- Downloading openfst from https://github.com/kkm000/openfst/archive/refs/tags/win/1.6.5.1.tar.gz
-- openfst is downloaded to /mntnfs/lee_data1/maduo/eggs_exp_audiodata/sherpa-onnx/build/_deps/openfst-src
-- Found the following ICU libraries:
-- data (required)
-- i18n (required)
-- io (required)
-- test (required)
-- tu (required)
-- uc (required)
-- Found ICU: /usr/include (found version "60.3")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
-- Downloading eigen from https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
-- eigen is downloaded to /mntnfs/lee_data1/maduo/eggs_exp_audiodata/sherpa-onnx/build/_deps/eigen-src
-- eigen's binary dir is /mntnfs/lee_data1/maduo/eggs_exp_audiodata/sherpa-onnx/build/_deps/eigen-build
-- Performing Test EIGEN_COMPILER_SUPPORT_CPP11
-- Performing Test EIGEN_COMPILER_SUPPORT_CPP11 - Failed
-- Performing Test COMPILER_SUPPORT_std=cpp03
-- Performing Test COMPILER_SUPPORT_std=cpp03 - Failed
-- Performing Test standard_math_library_linked_to_automatically
-- Performing Test standard_math_library_linked_to_automatically - Failed
-- Performing Test standard_math_library_linked_to_as_m
-- Performing Test standard_math_library_linked_to_as_m - Failed
CMake Error at build/_deps/eigen-src/CMakeLists.txt:108 (message):
Can't link to the standard math library. Please report to the Eigen
developers, telling them about your platform.
-- Configuring incomplete, errors occurred!
See also "/mntnfs/lee_data1/maduo/eggs_exp_audiodata/sherpa-onnx/build/CMakeFiles/CMakeOutput.log".
See also "/mntnfs/lee_data1/maduo/eggs_exp_audiodata/sherpa-onnx/build/CMakeFiles/CMakeError.log".
cmake version is as follows:
cmake --version
cmake version 3.18.6
CMake suite maintained and supported by Kitware (kitware.com/cmake).
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 32
hi @csukuangfj I had no problems from the very beginning and everything compiled and worked without problems. I was simply giving advice to those users who had errors during compilation. Thanks again for the support.
@shanguanma @magicse @xiayezi2013 @deyiluobo
Could you try the latest master?
It should be fixed via #587
I suggest that you select a model that you prefer.
There are no WERs for TTS models. So it is hard to say whether a model is better or worse.
You can try all of the models at the following huggingface space. https://huggingface.co/spaces/k2-fsa/text-to-speech
yes, solved it. thanks a lot @csukuangfj