Open thkdlflghlsdghilr opened 4 years ago
If fixed this problem. You need to use the submodules of GIT to fetch the exact version of Kaldi.
git submodule init
git submodule update
IMHO A check of the right version should be added to the install script
If fixed this problem. You need to use the submodules of GIT to fetch the exact version of Kaldi.
git submodule init git submodule update
IMHO A check of the right version should be added to the install script
https://github.com/lowerquality/gentle/issues/257 This should be the git clone command and it gets correct version etc. You could upvote it over there if you want
Everything has worked so far up until make in the ext folder aka the last command in install.sh
here is the console output:
Not building with cuda!!! g++ -std=c++11 -I.. -isystem /home/theo/coding/exp/gentle-master/ext/kaldi/tools/openfst-1.6.7/include -O1 -Wno-sign-compare -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_OPENBLAS -I/home/theo/coding/exp/gentle-master/ext/kaldi/tools/OpenBLAS/install/include -msse -msse2 -pthread -g -Ikaldi/src/ -O3 -DNDEBUG -c -o m3.o m3.cc m3.cc: In function ‘int main(int, char*)’: m3.cc:130:3: error: ‘ContextDependency’ was not declared in this scope ContextDependency ctx_dep; ^::Determinize(bool ) [with F = fst::VectorFst<fst::ArcTpl<fst::LogWeightTpl > >]’:
kaldi/src/fstext/determinize-star-inl.h:631:3: required from ‘bool fst::DeterminizeStar(F&, fst::MutableFst, float, bool, int, bool) [with F = fst::VectorFst<fst::ArcTpl<fst::LogWeightTpl > >; typename Impl::Arc = fst::ArcTpl<fst::LogWeightTpl >]’
kaldi/src/fstext/fstext-utils-inl.h:424:70: required from here
kaldi/src/fstext/determinize-star-inl.h:200:21: warning: unused variable ‘cur_id’ [-Wunused-variable]
OutputStateId cur_id = SubsetToStateId(vec);
^::Output(fst::MutableFst, bool) [with F = fst::VectorFst<fst::ArcTpl<fst::LogWeightTpl > >; typename Impl::Arc = fst::ArcTpl<fst::LogWeightTpl >]’:
kaldi/src/fstext/determinize-star-inl.h:632:3: required from ‘bool fst::DeterminizeStar(F&, fst::MutableFst , float, bool, int, bool) [with F = fst::VectorFst<fst::ArcTpl<fst::LogWeightTpl > >; typename Impl::Arc = fst::ArcTpl<fst::LogWeightTpl >]’
kaldi/src/fstext/fstext-utils-inl.h:424:70: required from here
kaldi/src/fstext/determinize-star-inl.h:926:19: warning: unused variable ‘news’ [-Wunused-variable]
OutputStateId news = ofst->AddState();
^~~~
In file included from kaldi/src/fstext/pre-determinize.h:94:0,
from kaldi/src/fstext/fstext-utils-inl.h:29,
from kaldi/src/fstext/fstext-utils.h:425,
from kaldi/src/fstext/deterministic-fst-inl.h:25,
from kaldi/src/fstext/deterministic-fst.h:333,
from kaldi/src/fstext/context-fst.h:62,
from m3.cc:1:
kaldi/src/fstext/pre-determinize-inl.h: In instantiation of ‘void fst::PreDeterminize(fst::MutableFst , typename Arc::Label, std::vector) [with Arc = fst::ArcTpl<fst::LogWeightTpl >; Int = int; typename Arc::Label = int]’:
kaldi/src/fstext/fstext-utils-inl.h:391:17: required from ‘void fst::SafeDeterminizeWrapper(fst::MutableFst , fst::MutableFst, float) [with Arc = fst::ArcTpl<fst::LogWeightTpl >]’
kaldi/src/fstext/fstext-utils-inl.h:455:51: required from here
kaldi/src/fstext/pre-determinize-inl.h:451:16: warning: unused variable ‘inserted’ [-Wunused-variable]
bool inserted = (arc_hash[arc.ilabel].insert(this_pair)).second;
^::OutputStateId fst::DeterminizerStar::SubsetToStateId(const std::vector<fst::DeterminizerStar::Element>&) [with F = fst::VectorFst<fst::ArcTpl<fst::LogWeightTpl > >; fst::DeterminizerStar::OutputStateId = int]’:
kaldi/src/fstext/determinize-star-inl.h:200:45: required from ‘void fst::DeterminizerStar::Determinize(bool ) [with F = fst::VectorFst<fst::ArcTpl<fst::LogWeightTpl > >]’
kaldi/src/fstext/determinize-star-inl.h:631:3: required from ‘bool fst::DeterminizeStar(F&, fst::MutableFst, float, bool, int, bool) [with F = fst::VectorFst<fst::ArcTpl<fst::LogWeightTpl > >; typename Impl::Arc = fst::ArcTpl<fst::LogWeightTpl >]’
kaldi/src/fstext/fstext-utils-inl.h:424:70: required from here
kaldi/src/fstext/determinize-star-inl.h:561:12: warning: unused variable ‘ans’ [-Wunused-variable]
bool ans = hash_.insert(std::pair<const std::vector,
^~~
kaldi/src/fstext/determinize-star-inl.h: In instantiation of ‘void fst::DeterminizerStar::Determinize(bool ) [with F = fst::MutableFst<fst::ArcTpl<fst::LogWeightTpl > >]’:
kaldi/src/fstext/determinize-star-inl.h:631:3: required from ‘bool fst::DeterminizeStar(F&, fst::MutableFst, float, bool, int, bool) [with F = fst::MutableFst<fst::ArcTpl<fst::LogWeightTpl > >; typename Impl::Arc = fst::ArcTpl<fst::LogWeightTpl >]’
kaldi/src/fstext/fstext-utils-inl.h:394:18: required from ‘void fst::SafeDeterminizeWrapper(fst::MutableFst, fst::MutableFst , float) [with Arc = fst::ArcTpl<fst::LogWeightTpl >]’
kaldi/src/fstext/fstext-utils-inl.h:455:51: required from here
kaldi/src/fstext/determinize-star-inl.h:200:21: warning: unused variable ‘cur_id’ [-Wunused-variable]
OutputStateId curid = SubsetToStateId(vec);
^::Output(fst::MutableFst, bool) [with F = fst::MutableFst<fst::ArcTpl<fst::LogWeightTpl > >; typename Impl::Arc = fst::ArcTpl<fst::LogWeightTpl >]’:
kaldi/src/fstext/determinize-star-inl.h:632:3: required from ‘bool fst::DeterminizeStar(F&, fst::MutableFst , float, bool, int, bool) [with F = fst::MutableFst<fst::ArcTpl<fst::LogWeightTpl > >; typename Impl::Arc = fst::ArcTpl<fst::LogWeightTpl >]’
kaldi/src/fstext/fstext-utils-inl.h:394:18: required from ‘void fst::SafeDeterminizeWrapper(fst::MutableFst , fst::MutableFst, float) [with Arc = fst::ArcTpl<fst::LogWeightTpl >]’
kaldi/src/fstext/fstext-utils-inl.h:455:51: required from here
kaldi/src/fstext/determinize-star-inl.h:926:19: warning: unused variable ‘news’ [-Wunused-variable]
OutputStateId news = ofst->AddState();
^~~~
kaldi/src/fstext/determinize-star-inl.h: In instantiation of ‘fst::DeterminizerStar::OutputStateId fst::DeterminizerStar::SubsetToStateId(const std::vector<fst::DeterminizerStar::Element>&) [with F = fst::MutableFst<fst::ArcTpl<fst::LogWeightTpl > >; fst::DeterminizerStar::OutputStateId = int]’:
kaldi/src/fstext/determinize-star-inl.h:200:45: required from ‘void fst::DeterminizerStar::Determinize(bool ) [with F = fst::MutableFst<fst::ArcTpl<fst::LogWeightTpl > >]’
kaldi/src/fstext/determinize-star-inl.h:631:3: required from ‘bool fst::DeterminizeStar(F&, fst::MutableFst, float, bool, int, bool) [with F = fst::MutableFst<fst::ArcTpl<fst::LogWeightTpl > >; typename Impl::Arc = fst::ArcTpl<fst::LogWeightTpl >]’
kaldi/src/fstext/fstext-utils-inl.h:394:18: required from ‘void fst::SafeDeterminizeWrapper(fst::MutableFst, fst::MutableFst , float) [with Arc = fst::ArcTpl<fst::LogWeightTpl >]’
kaldi/src/fstext/fstext-utils-inl.h:455:51: required from here
kaldi/src/fstext/determinize-star-inl.h:561:12: warning: unused variable ‘ans’ [-Wunused-variable]
bool ans = hash .insert(std::pair<const std::vector*,
^~~
~~~~ m3.cc:131:35: error: ‘ctx_dep’ was not declared in this scope ReadKaldiObject(tree_filename, &ctx_dep); ^~~ In file included from kaldi/src/fstext/determinize-star.h:121:0, from kaldi/src/fstext/fstext-utils.h:31, from kaldi/src/fstext/deterministic-fst-inl.h:25, from kaldi/src/fstext/deterministic-fst.h:333, from kaldi/src/fstext/context-fst.h:62, from m3.cc:1: kaldi/src/fstext/determinize-star-inl.h: In instantiation of ‘void fst::DeterminizerStar~kaldi/src/fstext/determinize-star-inl.h: In instantiation of ‘void fst::DeterminizerStar~~~ kaldi/src/fstext/pre-determinize-inl.h:517:15: warning: unused variable ‘val’ [-Wunused-variable] StateId val = siter.Value(); ^~~ In file included from kaldi/src/fstext/determinize-star.h:121:0, from kaldi/src/fstext/fstext-utils.h:31, from kaldi/src/fstext/deterministic-fst-inl.h:25, from kaldi/src/fstext/deterministic-fst.h:333, from kaldi/src/fstext/context-fst.h:62, from m3.cc:1: kaldi/src/fstext/determinize-star-inl.h: In instantiation of ‘fst::DeterminizerStar~kaldi/src/fstext/determinize-star-inl.h: In instantiation of ‘void fst::DeterminizerStar