wenet
wenet copied to clipboard
errs in make when using libtorch1.9
the code i use is the latest wenet code; the libraries like fst,glog etc. are the same as previous version (the previous code and libraries can run rightly); I only chg the libtorch to cxx-1.9-cpu downloaded by my self from official-website; now, when I make, it report errs like below. I think maybe you have met the err before. If you have some knowledge about the err, please give me some suggestions. Thank a lot.
/home/fc_base/glog-build/libglog.a(logging.cc.o): In function google::(anonymous namespace)::LogFileObject::Write(bool, long, char const*, int)': logging.cc:(.text+0x1443): undefined reference to
std::__cxx11::basic_ostringstream<char, std::char_traitsstd::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()' /home/fc_base/glog-build/libglog.a(logging.cc.o): In function
google::CheckstrcmptrueImpl[abi:cxx11](char const*, char const*, char const*)':
logging.cc:(.text+0x5f07): undefined reference to std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()' /home/fc_base/glog-build/libglog.a(logging.cc.o): In function
google::CheckstrcmpfalseImpl[abi:cxx11](char const*, char const*, char const*)':
logging.cc:(.text+0x60f3): undefined reference to std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()' /home/fc_base/glog-build/libglog.a(logging.cc.o): In function
google::CheckstrcasecmptrueImpl[abi:cxx11](char const*, char const*, char const*)':
logging.cc:(.text+0x62e0): undefined reference to std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()' /home/fc_base/glog-build/libglog.a(logging.cc.o):logging.cc:(.text+0x64cc): more undefined references to
std::__cxx11::basic_ostringstream<char, std::char_traits
please refer https://github.com/wenet-e2e/wenet/issues/188