mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

speech-demo build error

Open zhangjiulong opened this issue 10 years ago • 16 comments

After I build kaldi and copied python_wrap to kaldi/src/ and runned make I got the following error msg

ar -cru kaldi-python-wrap.a ctypes.o
ranlib kaldi-python-wrap.a
# Building shared library from static (static was compiled with -fPIC)
g++ -shared -o libkaldi-python-wrap.so -Wl,--no-undefined -Wl,--as-needed  -Wl,-soname=libkaldi-python-wrap.so,--whole-archive kaldi-python-wrap.a -Wl,--no-whole-archive  -rdynamic -Wl,-rpath=/home/mxnet/git/kaldi/tools/openfst/lib -Wl,-rpath=/home/mxnet/git/kaldi/src/lib -L.  -L../util/   -L../matrix/   -L../base/   -L../hmm/   -L../cudamatrix/   -L../nnet/   ../util//libkaldi-util.so   ../matrix//libkaldi-matrix.so   ../base//libkaldi-base.so   ../hmm//libkaldi-hmm.so   ../cudamatrix//libkaldi-cudamatrix.so   ../nnet//libkaldi-nnet.so   -L/home/mxnet/git/kaldi/tools/openfst/lib -lfst /usr/lib/libatlas.so.3 /usr/lib/libf77blas.so.3 /usr/lib/libcblas.so.3 /usr/lib/liblapack_atlas.so.3 -lm -lpthread -ldl  -lkaldi-util   -lkaldi-matrix   -lkaldi-base   -lkaldi-hmm   -lkaldi-cudamatrix   -lkaldi-nnet 
kaldi-python-wrap.a(ctypes.o):在函数‘kaldi::SequentialTableReaderBackgroundImpl<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >::SequentialTableReaderBackgroundImpl(kaldi::SequentialTableReaderImplBase<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >*)’中:
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:721:对‘kaldi::Semaphore::Semaphore(int)’未定义的引用
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:721:对‘kaldi::Semaphore::Semaphore(int)’未定义的引用
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:721:对‘kaldi::Semaphore::~Semaphore()’未定义的引用
kaldi-python-wrap.a(ctypes.o):在函数‘kaldi::SequentialTableReaderBackgroundImpl<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >::Next()’中:
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:823:对‘kaldi::Semaphore::Wait()’未定义的引用
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:836:对‘kaldi::Semaphore::Signal()’未定义的引用
kaldi-python-wrap.a(ctypes.o):在函数‘kaldi::SequentialTableReaderBackgroundImpl<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >::Close()’中:
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:844:对‘kaldi::Semaphore::Wait()’未定义的引用
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:855:对‘kaldi::Semaphore::Signal()’未定义的引用
kaldi-python-wrap.a(ctypes.o):在函数‘kaldi::SequentialTableReaderBackgroundImpl<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >::~SequentialTableReaderBackgroundImpl()’中:
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:870:对‘kaldi::Semaphore::~Semaphore()’未定义的引用
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:870:对‘kaldi::Semaphore::~Semaphore()’未定义的引用
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:870:对‘kaldi::Semaphore::~Semaphore()’未定义的引用
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:870:对‘kaldi::Semaphore::~Semaphore()’未定义的引用
kaldi-python-wrap.a(ctypes.o):在函数‘kaldi::SequentialTableReaderBackgroundImpl<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >::RunInBackground()’中:
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:761:对‘kaldi::Semaphore::Signal()’未定义的引用
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:765:对‘kaldi::Semaphore::Wait()’未定义的引用
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:773:对‘kaldi::Semaphore::Signal()’未定义的引用
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:775:对‘kaldi::Semaphore::Signal()’未定义的引用
/home/mxnet/git/kaldi/src/python_wrap/../util/kaldi-table-inl.h:786:对‘kaldi::Semaphore::Signal()’未定义的引用
collect2: error: ld returned 1 exit status
make: *** [libkaldi-python-wrap.so] 错误 1

zhangjiulong avatar Aug 08 '16 10:08 zhangjiulong

you are missing some libraries. Check Kaldi version and follow the instructions closely

piiswrong avatar Aug 08 '16 17:08 piiswrong

I followed strictly and no use.

zhangjiulong avatar Aug 09 '16 01:08 zhangjiulong

kaldi I tried the latest version and 5.1 version all build error.

zhangjiulong avatar Aug 09 '16 01:08 zhangjiulong

I did not follow the instruction and do as follows:

编译kaldi

编译tools

进入tools,运行

make

编译src

进入src(不需要按照mxnet说明 ./configure --shared),运行

./configure
make depend
make

and the following build passed. But I don't know whether is there any bad side effect.

zhangjiulong avatar Aug 09 '16 01:08 zhangjiulong

@yzhang87 do you think is this due to kaldi version too old or too new?

pluskid avatar Aug 11 '16 18:08 pluskid

@zhangjiulong , ./configure --shared is necessary. If you don't do that, there is no shared lib to call.

yzhang87 avatar Aug 11 '16 22:08 yzhang87

@yzhang87 @pluskid @piiswrong Do you have any suggestion on kaldi verison?

zhangjiulong avatar Aug 12 '16 01:08 zhangjiulong

I tried today with the latest kaldi on git, it compiles without any issue. Can you double check kaldi's document to make sure you can compile it and run its own example scripts properly?

pluskid avatar Aug 12 '16 18:08 pluskid

@zhangjiulong please make sure you compile it with "--share" flag.

"进入src(不需要按照mxnet说明 ./configure --shared),运行"

yzhang87 avatar Aug 12 '16 19:08 yzhang87

Hi @yzhang87 @pluskid @piiswrong I compile the project again as the documents mentioned. I get the same error msg. I do the compiling as follows: install kaldi

clone kaldi

git clone https://github.com/kaldi-asr/kaldi.git

编译tools

cd kaldi/tools dir and run

make -j8

编译src

cd kaldi/src dir and run

./configure --shared

the result is likd this

Configuring ...
Checking OpenFST library in /home/mxnet/aiGit/kaldi/tools/openfst ...
Checking OpenFst library was patched.
Doing OS specific configurations ...
On Linux: Checking for linear algebra header files ...
Using ATLAS as the linear algebra library.
Successfully configured for Debian/Ubuntu Linux [dynamic libraries] with ATLASLIBS =/usr/lib/libatlas.so.3  /usr/lib/libf77blas.so.3 /usr/lib/libcblas.so.3  /usr/lib/liblapack_atlas.so.3
Using CUDA toolkit /usr/local/cuda (nvcc compiler and runtime libraries)
Info: configuring Kaldi not to link with Speex (don't worry, it's only needed if you
intend to use 'compress-uncompress-speex', which is very unlikely)
SUCCESS

Then run

make depend
make -j8

copy python_wrap from mxnet to kaldi/src

cd kaldi/src/python_wrap dir and run

make

gets error msg as follows

g++ -msse -msse2 -Wall -I.. -pthread -DKALDI_DOUBLEPRECISION=0 -Wno-sign-compare -Wno-unused-local-typedefs -Winit-self -DHAVE_EXECINFO_H=1 -rdynamic -DHAVE_CXXABI_H -DHAVE_ATLAS -I/home/mxnet/aiGit/kaldi/tools/ATLAS/include -I/home/mxnet/aiGit/kaldi/tools/openfst/include  -g  -fPIC -DHAVE_CUDA -I/usr/local/cuda/include   -c -o ctypes.o ctypes.cc
ar -cru kaldi-python-wrap.a ctypes.o
ranlib kaldi-python-wrap.a
# Building shared library from static (static was compiled with -fPIC)
g++ -shared -o libkaldi-python-wrap.so -Wl,--no-undefined -Wl,--as-needed  -Wl,-soname=libkaldi-python-wrap.so,--whole-archive kaldi-python-wrap.a -Wl,--no-whole-archive  -rdynamic -Wl,-rpath=/home/mxnet/aiGit/kaldi/tools/openfst/lib -Wl,-rpath=/home/mxnet/aiGit/kaldi/src/lib -L.  -L../util/   -L../matrix/   -L../base/   -L../hmm/   -L../cudamatrix/   -L../nnet/   ../util//libkaldi-util.so   ../matrix//libkaldi-matrix.so   ../base//libkaldi-base.so   ../hmm//libkaldi-hmm.so   ../cudamatrix//libkaldi-cudamatrix.so   ../nnet//libkaldi-nnet.so   -L/home/mxnet/aiGit/kaldi/tools/openfst/lib -lfst /usr/lib/libatlas.so.3 /usr/lib/libf77blas.so.3 /usr/lib/libcblas.so.3 /usr/lib/liblapack_atlas.so.3 -lm -lpthread -ldl  -lkaldi-util   -lkaldi-matrix   -lkaldi-base   -lkaldi-hmm   -lkaldi-cudamatrix   -lkaldi-nnet
kaldi-python-wrap.a(ctypes.o): In function `kaldi::SequentialTableReaderBackgroundImpl<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >::SequentialTableReaderBackgroundImpl(kaldi::SequentialTableReaderImplBase<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >*)':
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:709: undefined reference to `kaldi::Semaphore::Semaphore(int)'
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:709: undefined reference to `kaldi::Semaphore::Semaphore(int)'
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:709: undefined reference to `kaldi::Semaphore::~Semaphore()'
kaldi-python-wrap.a(ctypes.o): In function `kaldi::SequentialTableReaderBackgroundImpl<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >::Next()':
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:811: undefined reference to `kaldi::Semaphore::Wait()'
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:824: undefined reference to `kaldi::Semaphore::Signal()'
kaldi-python-wrap.a(ctypes.o): In function `kaldi::SequentialTableReaderBackgroundImpl<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >::Close()':
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:832: undefined reference to `kaldi::Semaphore::Wait()'
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:843: undefined reference to `kaldi::Semaphore::Signal()'
kaldi-python-wrap.a(ctypes.o): In function `kaldi::SequentialTableReaderBackgroundImpl<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >::~SequentialTableReaderBackgroundImpl()':
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:858: undefined reference to `kaldi::Semaphore::~Semaphore()'
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:858: undefined reference to `kaldi::Semaphore::~Semaphore()'
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:858: undefined reference to `kaldi::Semaphore::~Semaphore()'
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:858: undefined reference to `kaldi::Semaphore::~Semaphore()'
kaldi-python-wrap.a(ctypes.o): In function `kaldi::SequentialTableReaderBackgroundImpl<kaldi::KaldiObjectHolder<kaldi::Matrix<float> > >::RunInBackground()':
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:749: undefined reference to `kaldi::Semaphore::Signal()'
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:753: undefined reference to `kaldi::Semaphore::Wait()'
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:761: undefined reference to `kaldi::Semaphore::Signal()'
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:763: undefined reference to `kaldi::Semaphore::Signal()'
/home/mxnet/aiGit/kaldi/src/python_wrap/../util/kaldi-table-inl.h:774: undefined reference to `kaldi::Semaphore::Signal()'
collect2: error: ld returned 1 exit status
make: *** [libkaldi-python-wrap.so] Error 1

zhangjiulong avatar Aug 15 '16 02:08 zhangjiulong

I runned timit got the following msg and still running I think the kaldi installing is ok

 warnings in exp/tri1/log/compile_questions.log
44 warnings in exp/tri1/log/update.*.log
exp/tri1: nj=30 align prob=-95.29 over 3.12h [retry=0.0%, fail=0.0%] states=1888 gauss=15032 tree-impr=5.42
steps/train_deltas.sh: Done training system with delta+delta-delta features in exp/tri1
tree-info exp/tri1/tree
tree-info exp/tri1/tree
fstcomposecontext --context-size=3 --central-position=1 --read-disambig-syms=data/lang_test_bg/phones/disambig.int --write-disambig-syms=data/lang_test_bg/tmp/disambig_ilabels_3_1.int data/lang_test_bg/tmp/ilabels_3_1
fstisstochastic data/lang_test_bg/tmp/CLG_3_1.fst
0 -0.00929615
make-h-transducer --disambig-syms-out=exp/tri1/graph/disambig_tid.int --transition-scale=1.0 data/lang_test_bg/tmp/ilabels_3_1 exp/tri1/tree exp/tri1/final.mdl
fstrmepslocal
fsttablecompose exp/tri1/graph/Ha.fst data/lang_test_bg/tmp/CLG_3_1.fst
fstrmsymbols exp/tri1/graph/disambig_tid.int
fstdeterminizestar --use-log=true
fstminimizeencoded
fstisstochastic exp/tri1/graph/HCLGa.fst
0.000449717 -0.0171462
HCLGa is not stochastic
add-self-loops --self-loop-scale=0.1 --reorder=true exp/tri1/final.mdl
steps/decode.sh --nj 5 --cmd run.pl --mem 4G exp/tri1/graph data/dev exp/tri1/decode_dev
decode.sh: feature type is delta
steps/diagnostic/analyze_lats.sh --cmd run.pl --mem 4G exp/tri1/graph exp/tri1/decode_dev
steps/diagnostic/analyze_lats.sh: see stats in exp/tri1/decode_dev/log/analyze_alignments.log
Overall, lattice depth (10,50,90-percentile)=(3,12,43) and mean=19.7
steps/diagnostic/analyze_lats.sh: see stats in exp/tri1/decode_dev/log/analyze_lattice_depth_stats.log

zhangjiulong avatar Aug 15 '16 03:08 zhangjiulong

i got the same problem. my system is ubuntu 15.04+cuda 7.5

f151@f151-ThinkPad-Edge-E530:~/kaldi_0815/src/python_wrap$ sudo make g++ -msse -msse2 -Wall -I.. -pthread -DKALDI_DOUBLEPRECISION=0 -Wno-sign-compare -Wno-unused-local-typedefs -Winit-self -DHAVE_EXECINFO_H=1 -rdynamic -DHAVE_CXXABI_H -DHAVE_ATLAS -I/home/f151/kaldi_0815/tools/ATLAS/include -I/home/f151/kaldi_0815/tools/openfst/include -g -fPIC -DHAVE_CUDA -I/usr/local/cuda/include -c -o ctypes.o ctypes.cc ar -cru kaldi-python-wrap.a ctypes.o ranlib kaldi-python-wrap.a

Building shared library from static (static was compiled with -fPIC)

g++ -shared -o libkaldi-python-wrap.so -Wl,--no-undefined -Wl,--as-needed -Wl,-soname=libkaldi-python-wrap.so,--whole-archive kaldi-python-wrap.a -Wl,--no-whole-archive -rdynamic -Wl,-rpath=/home/f151/kaldi_0815/tools/openfst/lib -Wl,-rpath=/home/f151/kaldi_0815/src/lib -L. -L../util/ -L../matrix/ -L../base/ -L../hmm/ -L../cudamatrix/ -L../nnet/ ../util//libkaldi-util.so ../matrix//libkaldi-matrix.so ../base//libkaldi-base.so ../hmm//libkaldi-hmm.so ../cudamatrix//libkaldi-cudamatrix.so ../nnet//libkaldi-nnet.so -L/home/f151/kaldi_0815/tools/openfst/lib -lfst /usr/lib/libatlas.so.3 /usr/lib/libf77blas.so.3 /usr/lib/libcblas.so.3 /usr/lib/liblapack_atlas.so.3 -lm -lpthread -ldl -lkaldi-util -lkaldi-matrix -lkaldi-base -lkaldi-hmm -lkaldi-cudamatrix -lkaldi-nnet kaldi-python-wrap.a(ctypes.o):在函数‘kaldi::SequentialTableReaderBackgroundImplkaldi::KaldiObjectHolder<kaldi::Matrix >::SequentialTableReaderBackgroundImpl(kaldi::SequentialTableReaderImplBasekaldi::KaldiObjectHolder<kaldi::Matrix >)’中: /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:709:对‘kaldi::Semaphore::Semaphore(int)’未定义的引用 /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:709:对‘kaldi::Semaphore::Semaphore(int)’未定义的引用 /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:709:对‘kaldi::Semaphore::~Semaphore()’未定义的引用 kaldi-python-wrap.a(ctypes.o):在函数‘kaldi::SequentialTableReaderBackgroundImplkaldi::KaldiObjectHolder<kaldi::Matrix >::Next()’中: /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:811:对‘kaldi::Semaphore::Wait()’未定义的引用 /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:824:对‘kaldi::Semaphore::Signal()’未定义的引用 kaldi-python-wrap.a(ctypes.o):在函数‘kaldi::SequentialTableReaderBackgroundImplkaldi::KaldiObjectHolder<kaldi::Matrix >::Close()’中: /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:832:对‘kaldi::Semaphore::Wait()’未定义的引用 /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:843:对‘kaldi::Semaphore::Signal()’未定义的引用 kaldi-python-wrap.a(ctypes.o):在函数‘kaldi::SequentialTableReaderBackgroundImplkaldi::KaldiObjectHolder<kaldi::Matrix >::~SequentialTableReaderBackgroundImpl()’中: /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:858:对‘kaldi::Semaphore::~Semaphore()’未定义的引用 /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:858:对‘kaldi::Semaphore::~Semaphore()’未定义的引用 /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:858:对‘kaldi::Semaphore::~Semaphore()’未定义的引用 /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:858:对‘kaldi::Semaphore::~Semaphore()’未定义的引用 kaldi-python-wrap.a(ctypes.o):在函数‘kaldi::SequentialTableReaderBackgroundImplkaldi::KaldiObjectHolder<kaldi::Matrix >::RunInBackground()’中: /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:749:对‘kaldi::Semaphore::Signal()’未定义的引用 /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:753:对‘kaldi::Semaphore::Wait()’未定义的引用 /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:761:对‘kaldi::Semaphore::Signal()’未定义的引用 /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:763:对‘kaldi::Semaphore::Signal()’未定义的引用 /home/f151/kaldi_0815/src/python_wrap/../util/kaldi-table-inl.h:774:对‘kaldi::Semaphore::Signal()’未定义的引用 collect2: error: ld returned 1 exit status ../makefiles/default_rules.mk:35: recipe for target 'libkaldi-python-wrap.so' failed make: ** [libkaldi-python-wrap.so] Error 1

felixchen0113 avatar Aug 15 '16 06:08 felixchen0113

I runned timit demo and runns ok, the results is like this:

============================================================================
                    Getting Results [see RESULTS file]
============================================================================
%WER 31.7 | 400 15057 | 71.4 19.1 9.4 3.1 31.7 100.0 | -0.271 | exp/mono/decode_dev/score_6/ctm_39phn.filt.sys
%WER 24.4 | 400 15057 | 79.8 15.5 4.7 4.2 24.4 99.8 | -0.220 | exp/tri1/decode_dev/score_9/ctm_39phn.filt.sys
%WER 22.6 | 400 15057 | 80.9 14.2 4.8 3.6 22.6 99.5 | -0.259 | exp/tri2/decode_dev/score_10/ctm_39phn.filt.sys
%WER 20.4 | 400 15057 | 82.7 12.7 4.6 3.1 20.4 99.5 | -0.600 | exp/tri3/decode_dev/score_10/ctm_39phn.filt.sys
%WER 23.6 | 400 15057 | 80.1 14.9 4.9 3.7 23.6 99.8 | -0.271 | exp/tri3/decode_dev.si/score_9/ctm_39phn.filt.sys
%WER 18.0 | 400 15057 | 84.7 11.2 4.1 2.7 18.0 99.5 | -0.361 | exp/sgmm2_4/decode_dev/score_8/ctm_39phn.filt.sys
%WER 18.2 | 400 15057 | 84.9 11.4 3.7 3.1 18.2 99.0 | -0.362 | exp/sgmm2_4_mmi_b0.1/decode_dev_it1/score_8/ctm_39phn.filt.sys
%WER 18.2 | 400 15057 | 84.7 11.3 4.0 2.9 18.2 99.3 | -0.268 | exp/sgmm2_4_mmi_b0.1/decode_dev_it2/score_9/ctm_39phn.filt.sys
%WER 18.4 | 400 15057 | 84.9 11.4 3.7 3.2 18.4 99.0 | -0.385 | exp/sgmm2_4_mmi_b0.1/decode_dev_it3/score_8/ctm_39phn.filt.sys
%WER 18.4 | 400 15057 | 84.9 11.4 3.7 3.2 18.4 99.0 | -0.402 | exp/sgmm2_4_mmi_b0.1/decode_dev_it4/score_8/ctm_39phn.filt.sys
%WER 17.4 | 400 15057 | 85.3 10.5 4.2 2.7 17.4 99.0 | -1.130 | exp/dnn4_pretrain-dbn_dnn/decode_dev/score_4/ctm_39phn.filt.sys
%WER 17.1 | 400 15057 | 85.4 10.5 4.1 2.5 17.1 99.0 | -0.751 | exp/dnn4_pretrain-dbn_dnn_smbr/decode_dev_it1/score_5/ctm_39phn.filt.sys
%WER 17.2 | 400 15057 | 85.8 10.5 3.8 2.9 17.2 99.3 | -0.547 | exp/dnn4_pretrain-dbn_dnn_smbr/decode_dev_it6/score_6/ctm_39phn.filt.sys
%WER 16.9 | 400 15057 | 85.9 11.0 3.1 2.8 16.9 99.3 | -0.158 | exp/combine_2/decode_dev_it1/score_6/ctm_39phn.filt.sys
%WER 17.0 | 400 15057 | 85.9 11.0 3.1 2.9 17.0 99.3 | -0.150 | exp/combine_2/decode_dev_it2/score_6/ctm_39phn.filt.sys
%WER 17.0 | 400 15057 | 85.9 11.1 3.1 2.9 17.0 99.3 | -0.142 | exp/combine_2/decode_dev_it3/score_6/ctm_39phn.filt.sys
%WER 16.9 | 400 15057 | 85.7 11.0 3.3 2.6 16.9 99.3 | -0.056 | exp/combine_2/decode_dev_it4/score_7/ctm_39phn.filt.sys
%WER 32.5 | 192 7215 | 70.3 19.4 10.3 2.7 32.5 100.0 | -0.255 | exp/mono/decode_test/score_6/ctm_39phn.filt.sys
%WER 26.0 | 192 7215 | 77.8 16.8 5.4 3.8 26.0 100.0 | -0.122 | exp/tri1/decode_test/score_10/ctm_39phn.filt.sys
%WER 24.0 | 192 7215 | 79.7 14.9 5.4 3.7 24.0 99.5 | -0.250 | exp/tri2/decode_test/score_10/ctm_39phn.filt.sys
%WER 21.4 | 192 7215 | 81.6 13.5 5.0 2.9 21.4 98.4 | -0.585 | exp/tri3/decode_test/score_10/ctm_39phn.filt.sys
%WER 23.6 | 192 7215 | 79.6 15.3 5.1 3.3 23.6 99.5 | -0.302 | exp/tri3/decode_test.si/score_9/ctm_39phn.filt.sys
%WER 19.7 | 192 7215 | 82.9 12.0 5.0 2.6 19.7 99.0 | -0.201 | exp/sgmm2_4/decode_test/score_10/ctm_39phn.filt.sys
%WER 19.5 | 192 7215 | 83.7 12.0 4.2 3.2 19.5 99.0 | -0.355 | exp/sgmm2_4_mmi_b0.1/decode_test_it1/score_8/ctm_39phn.filt.sys
%WER 19.7 | 192 7215 | 83.6 12.2 4.2 3.3 19.7 99.0 | -0.360 | exp/sgmm2_4_mmi_b0.1/decode_test_it2/score_8/ctm_39phn.filt.sys
%WER 19.8 | 192 7215 | 83.1 12.2 4.6 2.9 19.8 98.4 | -0.244 | exp/sgmm2_4_mmi_b0.1/decode_test_it3/score_10/ctm_39phn.filt.sys
%WER 19.7 | 192 7215 | 83.4 12.2 4.4 3.1 19.7 99.0 | -0.332 | exp/sgmm2_4_mmi_b0.1/decode_test_it4/score_9/ctm_39phn.filt.sys
%WER 18.3 | 192 7215 | 84.0 11.1 4.9 2.3 18.3 99.0 | -0.852 | exp/dnn4_pretrain-dbn_dnn/decode_test/score_5/ctm_39phn.filt.sys
%WER 18.3 | 192 7215 | 84.6 11.0 4.4 2.9 18.3 99.5 | -1.205 | exp/dnn4_pretrain-dbn_dnn_smbr/decode_test_it1/score_4/ctm_39phn.filt.sys
%WER 18.2 | 192 7215 | 85.3 10.9 3.8 3.5 18.2 99.5 | -1.242 | exp/dnn4_pretrain-dbn_dnn_smbr/decode_test_it6/score_4/ctm_39phn.filt.sys
%WER 18.2 | 192 7215 | 84.2 11.9 3.8 2.4 18.2 99.5 | 0.026 | exp/combine_2/decode_test_it1/score_8/ctm_39phn.filt.sys
%WER 18.2 | 192 7215 | 84.2 12.0 3.8 2.5 18.2 99.5 | 0.023 | exp/combine_2/decode_test_it2/score_8/ctm_39phn.filt.sys
%WER 18.3 | 192 7215 | 83.9 12.0 4.2 2.2 18.3 99.0 | 0.073 | exp/combine_2/decode_test_it3/score_9/ctm_39phn.filt.sys
%WER 18.2 | 192 7215 | 84.3 11.9 3.8 2.4 18.2 99.5 | 0.025 | exp/combine_2/decode_test_it4/score_8/ctm_39phn.filt.sys
============================================================================
Finished successfully on Mon Aug 15 15:42:54 CST 2016
============================================================================

so kaldi build is ok.

zhangjiulong avatar Aug 15 '16 07:08 zhangjiulong

I tried on ubuntu14.04 and centos 7.0 all the built is failed with the same error. I think if the kaldi is ok, maybe something is error with the demo.

zhangjiulong avatar Aug 16 '16 06:08 zhangjiulong

I build ok. Modify the Makefile of the speech demo: Change the following line

ADDLIBS = ../util/kaldi-util.a ../matrix/kaldi-matrix.a ../base/kaldi-base.a  ../hmm/kaldi-hmm.a ../cudamatrix/kaldi-cudamatrix.a ../nnet/kaldi-nnet.a

to

ADDLIBS = ../util/kaldi-util.a ../matrix/kaldi-matrix.a ../base/kaldi-base.a  ../hmm/kaldi-hmm.a ../cudamatrix/kaldi-cudamatrix.a ../nnet/kaldi-nnet.a ../thread/kaldi-thread.a

Then make is ok Can @yzhang87 @pluskid @piiswrong help to confirm? Thanks

zhangjiulong avatar Aug 16 '16 07:08 zhangjiulong

Hi @zhangjiulong! Nice catch! I guess that is the issue. I can confirm adding kaldi-thread.a still compiles correctly on my side. I have created a PR to add this.

pluskid avatar Aug 16 '16 17:08 pluskid