-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errors about installing clif #269
Comments
Thank you for reporting this bug. Can you please give more details about
your OS, distro, gcc/g++ and Python version?
Recommend python version is 3.8, but we are trying to make it compatible
with all recent python versions (3.7/3.8/3.9). We had some problems with
gcc > 7, but those should be fixed now.
…On Sun, May 30, 2021, 7:19 AM v-yunbin ***@***.***> wrote:
when i run the script install_clif.sh , I get follows errors:
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/SmallVector.h:340:5:
error: ‘class llvm::SmallVectorImpl<std::basic_string<char> >’ has no
member named ‘destroy_range’ this->destroy_range(this->begin(),
this->end()); ^
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/SmallVector.h:340:5:
error: ‘class llvm::SmallVectorImpl<std::basic_string<char> >’ has no
member named ‘begin’
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/SmallVector.h:340:5:
error: ‘class llvm::SmallVectorImpl<std::basic_string<char> >’ has no
member named ‘end’
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/SmallVector.h:343:9:
error: ‘class llvm::SmallVectorImpl<std::basic_string<char> >’ has no
member named ‘isSmall’ if (!this->isSmall()) ^
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/SmallVector.h:344:11:
error: ‘class llvm::SmallVectorImpl<std::basic_string<char> >’ has no
member named ‘begin’ free(this->begin()); ^ In file included from
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/StringExtras.h:18:0,
from
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/Error.h:19,
from
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/BinaryStreamError.h:14,
from
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/BinaryStream.h:14,
from
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/BinaryStreamRef.h:14,
from
/home/ybZhang/pykaldi/tools/clif_backend/llvm/lib/Support/BinaryStreamRef.cpp:10:
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/SmallString.h:
In instantiation of ‘llvm::StringRef llvm::SmallString<InternalLen>::str()
const [with unsigned int InternalLen = 128u]’:
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/SmallString.h:277:42:
required from ‘llvm::SmallString<InternalLen>::operator llvm::StringRef()
const [with unsigned int InternalLen = 128u]’
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/FileOutputBuffer.h:61:12:
required from here
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/SmallString.h:267:71:
error: ‘const class llvm::SmallString<128u>’ has no member named ‘begin’
StringRef str() const { return StringRef(this->begin(), this->size()); } ^
/home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/SmallString.h:267:71:
error: ‘const class llvm::SmallString<128u>’ has no member named ‘size’
ninja: build stopped: subcommand failed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#269>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACKGA6RRQUKQ3JTHP4M3ATLTQHDGVANCNFSM45Y6YQQQ>
.
|
|
Your gcc version is unusually old, please update gcc/g++ to atleast version 7. |
Unfortunately,I try gcc 8.4.0 version,it still fail. |
Did you start from scratch with gcc 8.4? Fresh copy from git?
Am Mo., 31. Mai 2021 um 12:10 Uhr schrieb v-yunbin ***@***.***
…:
version
Unfortunately,I try gcc 8.4.0 version,it still fail.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#269 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACKGA6TTYEB6BVULGBWGXTLTQNOB5ANCNFSM45Y6YQQQ>
.
|
whether have a centos pykaldi docker? find that pykaldi all provided are ubuntu mirror image but pykaldi building |
when i run the script install_clif.sh , I get follows errors:
-- Generating done -- Build files have been written to: /home/ybZhang/pykaldi/tools/clif_backend/build_matcher [2/1786] Building CXX objec...port.dir/LineIterator.cpp.o FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/LineIterator.cpp.o /usr/bin/g++ -std=c++11 -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_GLOBAL_ISEL -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Support -I/home/ybZhang/pykaldi/tools/clif_backend/llvm/lib/Support -Iinclude -I/home/ybZhang/pykaldi/tools/clif_backend/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/LineIterator.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/LineIterator.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/LineIterator.cpp.o -c /home/ybZhang/pykaldi/tools/clif_backend/llvm/lib/Support/LineIterator.cpp In file included from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/Optional.h:22:0, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/STLExtras.h:31, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/StringRef.h:13, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/LineIterator.h:13, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/lib/Support/LineIterator.cpp:10: /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/type_traits.h:38:29: error: ‘is_trivially_copyable’ is not a member of ‘std’ static const bool value = std::is_trivially_copyable<T>::value; ^ /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/type_traits.h:38:57: error: expected primary-expression before ‘>’ token static const bool value = std::is_trivially_copyable<T>::value; ^ /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/type_traits.h:38:58: error: ‘::value’ has not been declared static const bool value = std::is_trivially_copyable<T>::value; ^ In file included from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/MemoryBuffer.h:19:0, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/lib/Support/LineIterator.cpp:11: /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/Twine.h: In member function ‘llvm::StringRef llvm::Twine::getSingleStringRef() const’: /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/Twine.h:456:43: error: ‘const class llvm::SmallVectorImpl<char>’ has no member named ‘data’ return StringRef(LHS.smallString->data(), LHS.smallString->size()); ^ /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/Twine.h:456:68: error: ‘const class llvm::SmallVectorImpl<char>’ has no member named ‘size’ return StringRef(LHS.smallString->data(), LHS.smallString->size()); ^ /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/Twine.h: In member function ‘llvm::StringRef llvm::Twine::toStringRef(llvm::SmallVectorImpl<char>&) const’: /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/Twine.h:467:28: error: ‘class llvm::SmallVectorImpl<char>’ has no member named ‘data’ return StringRef(Out.data(), Out.size()); ^ /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/Twine.h:467:40: error: ‘class llvm::SmallVectorImpl<char>’ has no member named ‘size’ return StringRef(Out.data(), Out.size()); ^ [3/1786] Building CXX objec...LLVMSupport.dir/APInt.cpp.o FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o /usr/bin/g++ -std=c++11 -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_GLOBAL_ISEL -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Support -I/home/ybZhang/pykaldi/tools/clif_backend/llvm/lib/Support -Iinclude -I/home/ybZhang/pykaldi/tools/clif_backend/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o -c /home/ybZhang/pykaldi/tools/clif_backend/llvm/lib/Support/APInt.cpp In file included from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/Optional.h:22:0, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/STLExtras.h:31, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/StringRef.h:13, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/StringMap.h:17, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/Host.h:17, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/Hashing.h:49, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/ADT/ArrayRef.h:13, from /home/ybZhang/pykaldi/tools/clif_backend/llvm/lib/Support/APInt.cpp:16: /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/type_traits.h:38:29: error: ‘is_trivially_copyable’ is not a member of ‘std’ static const bool value = std::is_trivially_copyable<T>::value; ^ /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/type_traits.h:38:57: error: expected primary-expression before ‘>’ token static const bool value = std::is_trivially_copyable<T>::value; ^ /home/ybZhang/pykaldi/tools/clif_backend/llvm/include/llvm/Support/type_traits.h:38:58: error: ‘::value’ has not been declared .
The text was updated successfully, but these errors were encountered: