Skip to content
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

<builtin>: recipe for target 'm3.o' failed #247

Open
thkdlflghlsdghilr opened this issue Apr 24, 2020 · 2 comments
Open

<builtin>: recipe for target 'm3.o' failed #247

thkdlflghlsdghilr opened this issue Apr 24, 2020 · 2 comments

Comments

@thkdlflghlsdghilr
Copy link

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;
^~~~~~~~~~~~~~~~~
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::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);
^~~~~~
kaldi/src/fstext/determinize-star-inl.h: In instantiation of ‘void fst::DeterminizerStar::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;
^~~~~~~~
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::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 cur_id = SubsetToStateId(vec);
^~~~~~
kaldi/src/fstext/determinize-star-inl.h: In instantiation of ‘void fst::DeterminizerStar::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*,
^~~
: recipe for target 'm3.o' failed
make: *** [m3.o] Error 1

@Mistobaan
Copy link
Contributor

Mistobaan commented May 13, 2020

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

@lilgandhi1199
Copy link

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

#257
This should be the git clone command and it gets correct version etc.
You could upvote it over there if you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants