lowerquality / gentle

gentle forced aligner
https://lowerquality.com/gentle/
MIT License
1.41k stars 292 forks source link

recipe for target 'k3' failed #239

Open mausamsion opened 4 years ago

mausamsion commented 4 years ago

OS version: Ubuntu 14.04.5 LTS Docker version: 17.03.1-ce, build c6d412e

I already ran ./install.sh It failed in the last step.

cd ext && make depend && make

Here is the output:

Not building with cuda!!! g++ -M -std=c++11 -I.. -I/gentle/ext/kaldi/tools/openfst/include -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/gentle/ext/kaldi/tools/OpenBLAS/install/include -msse -msse2 -pthread -g -Ikaldi/src/ -O3 -DNDEBUG .cc > .depend.mk Not building with cuda!!! g++ -rdynamic k3.o kaldi/src/online2/kaldi-online2.a kaldi/src/ivector/kaldi-ivector.a kaldi/src/nnet3/kaldi-nnet3.a kaldi/src/chain/kaldi-chain.a kaldi/src/nnet2/kaldi-nnet2.a kaldi/src/lat/kaldi-lat.a kaldi/src/decoder/kaldi-decoder.a kaldi/src/cudamatrix/kaldi-cudamatrix.a kaldi/src/feat/kaldi-feat.a kaldi/src/transform/kaldi-transform.a kaldi/src/gmm/kaldi-gmm.a kaldi/src/hmm/kaldi-hmm.a kaldi/src/tree/kaldi-tree.a kaldi/src/matrix/kaldi-matrix.a kaldi/src/fstext/kaldi-fstext.a kaldi/src/util/kaldi-util.a kaldi/src/base/kaldi-base.a /gentle/ext/kaldi/tools/openfst/lib/libfst.a /gentle/ext/kaldi/tools/OpenBLAS/install/lib/libopenblas.a -lgfortran -lm -lpthread -ldl -o k3 k3.o: In function kaldi::SingleUtteranceNnet3Decoder::~SingleUtteranceNnet3Decoder()': /gentle/ext/kaldi/src/online2/online-nnet3-decoding.h:92: undefined reference tokaldi::LatticeFasterOnlineDecoder::~LatticeFasterOnlineDecoder()' k3.o: In function main': /gentle/ext/k3.cc:160: undefined reference tokaldi::SingleUtteranceNnet3Decoder::SingleUtteranceNnet3Decoder(kaldi::LatticeFasterDecoderConfig const&, kaldi::TransitionModel const&, kaldi::nnet3::DecodableNnetSimpleLoopedInfo const&, fst::Fst<fst::ArcTpl<fst::TropicalWeightTpl > > const&, kaldi::OnlineNnet2FeaturePipeline)' /gentle/ext/k3.cc:182: undefined reference to kaldi::SingleUtteranceNnet3Decoder::SingleUtteranceNnet3Decoder(kaldi::LatticeFasterDecoderConfig const&, kaldi::TransitionModel const&, kaldi::nnet3::DecodableNnetSimpleLoopedInfo const&, fst::Fst<fst::ArcTpl<fst::TropicalWeightTpl<float> > > const&, kaldi::OnlineNnet2FeaturePipeline*)' /gentle/ext/k3.cc:212: undefined reference tokaldi::SingleUtteranceNnet3Decoder::AdvanceDecoding()' /gentle/ext/k3.cc:218: undefined reference to kaldi::SingleUtteranceNnet3Decoder::AdvanceDecoding()' /gentle/ext/k3.cc:219: undefined reference tokaldi::SingleUtteranceNnet3Decoder::FinalizeDecoding()' /gentle/ext/k3.cc:222: undefined reference to kaldi::SingleUtteranceNnet3Decoder::GetBestPath(bool, fst::VectorFst<fst::ArcTpl<fst::LatticeWeightTpl<float> >, fst::VectorState<fst::ArcTpl<fst::LatticeWeightTpl<float> >, std::allocator<fst::ArcTpl<fst::LatticeWeightTpl<float> > > > >*) const' /gentle/ext/k3.cc:206: undefined reference tokaldi::OnlineSilenceWeighting::ComputeCurrentTraceback(kaldi::LatticeFasterOnlineDecoder const&)' /gentle/ext/k3.cc:207: undefined reference to kaldi::OnlineSilenceWeighting::GetDeltaWeights(int, std::vector<std::pair<int, float>, std::allocator<std::pair<int, float> > >*)' kaldi/src/decoder/kaldi-decoder.a(lattice-faster-decoder.o): In functionkaldi::LatticeFasterDecoderTpl<fst::Fst<fst::ArcTpl<fst::TropicalWeightTpl > >, kaldi::decoder::StdToken>::GetLattice(fst::VectorFst<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> >, fst::VectorState<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> >, std::allocator<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> > > > >, bool) const': /kaldi/src/decoder/lattice-faster-decoder.cc:209: undefined reference to `bool fst::DeterminizeLatticePruned<fst::LatticeWeightTpl, int>(fst::ExpandedFst<fst::ArcTpl<fst::LatticeWeightTpl > > const&, double, fst::MutableFst<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> > >, fst::DeterminizeLatticePrunedOptions)' kaldi/src/decoder/kaldi-decoder.a(lattice-faster-decoder.o): In function kaldi::LatticeFasterDecoderTpl<fst::VectorFst<fst::ArcTpl<fst::TropicalWeightTpl<float> >, fst::VectorState<fst::ArcTpl<fst::TropicalWeightTpl<float> >, std::allocator<fst::ArcTpl<fst::TropicalWeightTpl<float> > > > >, kaldi::decoder::StdToken>::GetLattice(fst::VectorFst<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl<float>, int> >, fst::VectorState<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl<float>, int> >, std::allocator<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl<float>, int> > > > >*, bool) const': /kaldi/src/decoder/lattice-faster-decoder.cc:209: undefined reference tobool fst::DeterminizeLatticePruned<fst::LatticeWeightTpl, int>(fst::ExpandedFst<fst::ArcTpl<fst::LatticeWeightTpl > > const&, double, fst::MutableFst<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> > >, fst::DeterminizeLatticePrunedOptions)' kaldi/src/decoder/kaldi-decoder.a(lattice-faster-decoder.o): In function `kaldi::LatticeFasterDecoderTpl<fst::ConstFst<fst::ArcTpl<fst::TropicalWeightTpl >, unsigned int>, kaldi::decoder::StdToken>::GetLattice(fst::VectorFst<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> >, fst::VectorState<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> >, std::allocator<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> > > > >, bool) const': /kaldi/src/decoder/lattice-faster-decoder.cc:209: undefined reference to bool fst::DeterminizeLatticePruned<fst::LatticeWeightTpl<float>, int>(fst::ExpandedFst<fst::ArcTpl<fst::LatticeWeightTpl<float> > > const&, double, fst::MutableFst<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl<float>, int> > >*, fst::DeterminizeLatticePrunedOptions)' kaldi/src/decoder/kaldi-decoder.a(lattice-faster-decoder.o): In functionkaldi::LatticeFasterDecoderTpl<fst::GrammarFst, kaldi::decoder::StdToken>::GetLattice(fst::VectorFst<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> >, fst::VectorState<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> >, std::allocator<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> > > > >, bool) const': /kaldi/src/decoder/lattice-faster-decoder.cc:209: undefined reference to `bool fst::DeterminizeLatticePruned<fst::LatticeWeightTpl, int>(fst::ExpandedFst<fst::ArcTpl<fst::LatticeWeightTpl > > const&, double, fst::MutableFst<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> > >, fst::DeterminizeLatticePrunedOptions)' kaldi/src/decoder/kaldi-decoder.a(lattice-faster-decoder.o): In function kaldi::LatticeFasterDecoderTpl<fst::Fst<fst::ArcTpl<fst::TropicalWeightTpl<float> > >, kaldi::decoder::BackpointerToken>::GetLattice(fst::VectorFst<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl<float>, int> >, fst::VectorState<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl<float>, int> >, std::allocator<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl<float>, int> > > > >*, bool) const': /kaldi/src/decoder/lattice-faster-decoder.cc:209: undefined reference tobool fst::DeterminizeLatticePruned<fst::LatticeWeightTpl, int>(fst::ExpandedFst<fst::ArcTpl<fst::LatticeWeightTpl > > const&, double, fst::MutableFst<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> > >, fst::DeterminizeLatticePrunedOptions)' kaldi/src/decoder/kaldi-decoder.a(lattice-faster-decoder.o):/kaldi/src/decoder/lattice-faster-decoder.cc:209: more undefined references to `bool fst::DeterminizeLatticePruned<fst::LatticeWeightTpl, int>(fst::ExpandedFst<fst::ArcTpl<fst::LatticeWeightTpl > > const&, double, fst::MutableFst<fst::ArcTpl<fst::CompactLatticeWeightTpl<fst::LatticeWeightTpl, int> > >, fst::DeterminizeLatticePrunedOptions)' follow kaldi/src/matrix/kaldi-matrix.a(kaldi-vector.o): In function kaldi::VectorBase<float>::Pow(kaldi::VectorBase<float> const&, float)': /kaldi/src/matrix/kaldi-vector.cc:458: undefined reference tovsPowx' kaldi/src/matrix/kaldi-matrix.a(kaldi-vector.o): In function kaldi::VectorBase<double>::Pow(kaldi::VectorBase<double> const&, double)': /kaldi/src/matrix/kaldi-vector.cc:462: undefined reference tovdPowx' kaldi/src/matrix/kaldi-matrix.a(kaldi-vector.o): In function kaldi::VectorBase<float>::Tanh(kaldi::VectorBase<float> const&)': /kaldi/src/matrix/kaldi-vector.cc:891: undefined reference tovsTanh' kaldi/src/matrix/kaldi-matrix.a(kaldi-vector.o): In function kaldi::VectorBase<double>::Tanh(kaldi::VectorBase<double> const&)': /kaldi/src/matrix/kaldi-vector.cc:896: undefined reference tovdTanh' kaldi/src/matrix/kaldi-matrix.a(kaldi-vector.o): In function kaldi::VectorBase<float>::Sigmoid(kaldi::VectorBase<float> const&)': /kaldi/src/matrix/kaldi-vector.cc:923: undefined reference tovsTanh' kaldi/src/matrix/kaldi-matrix.a(kaldi-vector.o): In function kaldi::VectorBase<double>::Sigmoid(kaldi::VectorBase<double> const&)': /kaldi/src/matrix/kaldi-vector.cc:932: undefined reference tovdTanh' collect2: error: ld returned 1 exit status

: recipe for target 'k3' failed make: *** [k3] Error 1

I found this issue quite relevant but there is no error with 'k3' there. Any help really appreciated. Thank you!

slavekjurkowski2 commented 4 years ago

Any update on this? I've stuck in the same spot trying to compile this project.

RechieKho commented 4 years ago

Ok, I also face this kind of stupid stuff just now and I fix it. In my case, you need to use openblas when configure the kaldi because k3 uses the openblas stuff (maybe)

lilgandhi1199 commented 4 years ago

You guys may find help in my thread https://github.com/lowerquality/gentle/issues/257

Got it working after 3 weeks of failure