I'm trying to create an acoustic model for a project.
I installed sphinxbase first and it did not return an error so I proceeded to
installing sphinxtrain.
I don't quite understand what is causing the error.
On linking stage linker takes the object files which contain the object binary
code without references resolved and references to external functions and
tries to resolve them. This process is called "linking". Sometimes linker
fails to find the function to call despite it's mentioned in object file. For
example here it fails to find the function referenced in file matrix.o from
the static library libsphinxbase.a
There could be many reasons for that. For example the function can be just
missing in the sources. Usually it's caused by a bug or by a typo. Or the
function can be present in an external library linker doesn't know about or
which is missing. In this particular case you compiled Sphinxbase with support
of external lapack library and due to the bug in Sphinxtrain build this
library is not referenced in Sphinxtrain build. You have two ways to solve
this issue:
add -llapack to LIBS in SphinxTrain/config/config so it will be used in build process
compile sphinxbase without lapack using --without-lapack.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for your help, I tried adding -llapack to LIBS in
sphinxtrain/config/config however I still ran into the same error.
$make
makingin....
make[1]:Enteringdirectory`/cygdrive/d/thesis/sphinxtrain/include'making in include ...make[1]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/include'
make[1]:Enteringdirectory`/cygdrive/d/thesis/sphinxtrain/src'making in src ...make[2]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src/libs'
makinginsrc/libs...
make[3]:Enteringdirectory`/cygdrive/d/thesis/sphinxtrain/src/libs/libcommon'making in src/libs/libcommon ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libcommon'
make[3]:Enteringdirectory`/cygdrive/d/thesis/sphinxtrain/src/libs/libmllr'making in src/libs/libmllr ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libmllr'
make[3]:Enteringdirectory`/cygdrive/d/thesis/sphinxtrain/src/libs/libclust'making in src/libs/libclust ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libclust'
make[3]:Enteringdirectory`/cygdrive/d/thesis/sphinxtrain/src/libs/libio'making in src/libs/libio ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libio'
make[3]:Enteringdirectory`/cygdrive/d/thesis/sphinxtrain/src/libs/libmodinv'making in src/libs/libmodinv ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libmodinv'
make[3]:Enteringdirectory`/cygdrive/d/thesis/sphinxtrain/src/libs/libs2io'making in src/libs/libs2io ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libs2io'
make[2]:Leavingdirectory`/cygdrive/d/thesis/sphinxtrain/src/libs'make[2]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src/programs'
makinginsrc/programs...
make[3]:Enteringdirectory`/cygdrive/d/thesis/sphinxtrain/src/programs/agg_seg
'making in src/programs/agg_seg ...gcc -o ../../../bin.i686-pc-cygwin/agg_seg -L/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxad -L/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase -L/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs -L../../../lib.i686-pc-cygwin obj.i686-pc-cygwin/agg_all_seg.o obj.i686-pc-cygwin/agg_phn_seg.o obj.i686-pc-cygwin/agg_st_seg.o obj.i686-pc-cygwin/cnt_phn_seg.o obj.i686-pc-cygwin/cnt_st_seg.o obj.i686-pc-cygwin/main.o obj.i686-pc-cygwin/mk_seg.o obj.i686-pc-cygwin/parse_cmd_ln.o ../../../lib.i686-pc-cygwin/libcommon.a ../../../lib.i686-pc-cygwin/libmllr.a ../../../lib.i686-pc-cygwin/libio.a ../../../lib.i686-pc-cygwin/libs2io.a ../../../lib.i686-pc-cygwin/libmodinv.a ../../../lib.i686-pc-cygwin/libclust.a -lm -lsphinxbase -llapack ../../../lib.i686-pc-cygwin/libcommon.a ../../../lib.i686-pc-cygwin/libmllr.a ../../../lib.i686-pc-cygwin/libio.a ../../../lib.i686-pc-cygwin/libs2io.a ../../../lib.i686-pc-cygwin/libmodinv.a ../../../lib.i686-pc-cygwin/libclust.a -lm -lsphinxbase -llapack/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphinxbase.a(err.o): In function `_E__abort_error':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:350:multipledefinit
ionof`__E__abort_error'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtrain/src/libs/libcommon/err.c:148: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphinxbase.a(err.o): In function `_E__sys_error':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:331:multipledefinit
ionof`__E__sys_error'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtrain/src/libs/libcommon/err.c:132: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphinxbase.a(err.o): In function `_E__fatal_sys_error':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:305:multipledefinit
ionof`__E__fatal_sys_error'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtrain/src/libs/libcommon/err.c:114: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphinxbase.a(err.o): In function `_E__die_error':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:284:multipledefinit
ionof`__E__die_error'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtrain/src/libs/libcommon/err.c:98: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphinxbase.a(err.o): In function `_E__pr_info':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:268:multipledefinit
ionof`__E__pr_info'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtrain/src/libs/libcommon/err.c:87: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphinxbase.a(err.o): In function `_E__pr_warn':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:252:multipledefinit
ionof`__E__pr_warn'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtrain/src/libs/libcommon/err.c:75: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphinxbase.a(err.o): In function `_E__pr_info_header':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:235:multipledefinit
ionof`__E__pr_info_header'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtrain/src/libs/libcommon/err.c:66: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphinxbase.a(err.o): In function `_E__pr_header':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:219:multipledefinit
ionof`__E__pr_header'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtrain/src/libs/libcommon/err.c:59: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphinxbase.a(pio.o): In function `fread_retry':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/pio.c:345:multipledefinit
ionof`_fread_retry'../../../lib.i686-pc-cygwin/libio.a(fread_retry.o):/cygdrive/d/thesis/sphinxtrain/src/libs/libio/fread_retry.c:59: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphinxbase.a(matrix.o): In function `matrixmultiply':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/matrix.c:272:undefinedref
erenceto`_ssymm_'collect2: ld returned 1 exit statusmake[3]: *** [../../../bin.i686-pc-cygwin/agg_seg] Error 1make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/programs/agg_seg'
make[2]:***[.make_build_dirs]Error2
make[2]:Leavingdirectory`/cygdrive/d/thesis/sphinxtrain/src/programs'make[1]: *** [.make_build_dirs] Error 2make[1]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src'
make:***[.make_build_dirs]Error2
Are there other ways of fixing this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I already checked out sphinxbase and sphinxtrain from trunk and used the new
files to compile in Cygwin, but I always run into the error.
making in . ...
make[1]: Entering directory `/cygdrive/d/thesis/sphinxtrain/include'making in include ...make[1]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/include'
make[1]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src'making in src ...make[2]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src/libs'
making in src/libs ...
make[3]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libcommmaking in src/libs/libcommon ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libcommo
make[3]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libmllrmaking in src/libs/libmllr ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libmllr'
make[3]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libclusmaking in src/libs/libclust ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libclust
make[3]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libio'making in src/libs/libio ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libio'
make[3]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libmodimaking in src/libs/libmodinv ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libmodin
make[3]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libs2iomaking in src/libs/libs2io ...make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs/libs2io'
make[2]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/libs'make[2]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src/programs'
making in src/programs ...
make[3]: Entering directory `/cygdrive/d/thesis/sphinxtrain/src/programs/agg'making in src/programs/agg_seg ...gcc -o ../../../bin.i686-pc-cygwin/agg_seg -L/cygdrive/d/thesis/sphinxtrain/phinxbase/src/libsphinxad -L/cygdrive/d/thesis/sphinxtrain/.hinxbase/src/libsphinxbase -L/cygdrive/d/thesis/sphinxtrain/.hinxbase/src/libsphinxbase/.libs -L../../../lib.i686-pc-cygwin obj.i686-pc-in/agg_all_seg.o obj.i686-pc-cygwin/agg_phn_seg.o obj.i686-pc-cygwin/agg_st_o obj.i686-pc-cygwin/cnt_phn_seg.o obj.i686-pc-cygwin/cnt_st_seg.o obj.i686-ygwin/main.o obj.i686-pc-cygwin/mk_seg.o obj.i686-pc-cygwin/parse_cmd_ln.o ./../lib.i686-pc-cygwin/libcommon.a ../../../lib.i686-pc-cygwin/libmllr.a .././lib.i686-pc-cygwin/libio.a ../../../lib.i686-pc-cygwin/libs2io.a ../../../i686-pc-cygwin/libmodinv.a ../../../lib.i686-pc-cygwin/libclust.a -lm -lsphase -llapack ../../../lib.i686-pc-cygwin/libcommon.a ../../../lib.i686-pc-cy/libmllr.a ../../../lib.i686-pc-cygwin/libio.a ../../../lib.i686-pc-cygwin/lio.a ../../../lib.i686-pc-cygwin/libmodinv.a ../../../lib.i686-pc-cygwin/libt.a -lm -lsphinxbase -llapack/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphise.a(pio.o): In function `fread_retry':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/pio.c:399: multiple def
ion of `_fread_retry'../../../lib.i686-pc-cygwin/libio.a(fread_retry.o):/cygdrive/d/thesis/sphinxn/src/libs/libio/fread_retry.c:59: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphise.a(err.o): In function `_E__abort_error':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:350: multiple def
ion of `__E__abort_error'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtraic/libs/libcommon/err.c:148: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphise.a(err.o): In function `_E__sys_error':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:331: multiple def
ion of `__E__sys_error'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtraic/libs/libcommon/err.c:132: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphise.a(err.o): In function `_E__fatal_sys_error':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:305: multiple def
ion of `__E__fatal_sys_error'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtraic/libs/libcommon/err.c:114: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphise.a(err.o): In function `_E__die_error':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:284: multiple def
ion of `__E__die_error'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtraic/libs/libcommon/err.c:98: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphise.a(err.o): In function `_E__pr_info':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:268: multiple def
ion of `__E__pr_info'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtraic/libs/libcommon/err.c:87: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphise.a(err.o): In function `_E__pr_warn':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:252: multiple def
ion of `__E__pr_warn'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtraic/libs/libcommon/err.c:75: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphise.a(err.o): In function `_E__pr_info_header':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:235: multiple def
ion of `__E__pr_info_header'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtraic/libs/libcommon/err.c:66: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphise.a(err.o): In function `_E__pr_header':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/err.c:219: multiple def
ion of `__E__pr_header'../../../lib.i686-pc-cygwin/libcommon.a(err.o):/cygdrive/d/thesis/sphinxtraic/libs/libcommon/err.c:59: first defined here/cygdrive/d/thesis/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs/libsphise.a(matrix.o): In function `matrixmultiply':
/cygdrive/d/thesis/sphinxbase/src/libsphinxbase/util/matrix.c:272: undefined
erence to `_ssymm_'collect2: ld returned 1 exit statusmake[3]: *** [../../../bin.i686-pc-cygwin/agg_seg] Error 1make[3]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/programs/agg_
make[2]: *** [.make_build_dirs] Error 2
make[2]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src/programs'make[1]: *** [.make_build_dirs] Error 2make[1]: Leaving directory `/cygdrive/d/thesis/sphinxtrain/src'
make: *** [.make_build_dirs] Error 2
Am I doing something wrong? Sorry for asking too many questions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please double check that you are using latest version from subversion and that
you are cleaned everything. In recent trunk there is no such file err.o so
this error definitely says you are using older version.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I try to make my own acoustic model so, I do it following tutorial now I have
finished create my own language model then I try to create my own acoustic
model next but when I make sphinxtrain using cygwin.
I have got the same problem with this topic so I follow the suggestions in
this topic by adding -llapack in sphinxtrain/config/config then I get into the
same problem of this topic in comment #3 so the suggestion say that I have to
download the lastest of sphinxtrain and sphinxbase.
but I have already download that.
sphinxbase-0.7.tar.gz which says modified when 2011-05-16.
sphinxtrain-1.0.7.tar.gz which says modified the same day above.
so anyway to fix this? thank you in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
$ make
making in . ...
make: Entering directory /cygdrive/d/voiceproject/sphinx2/sphinxtrain/includ
e'
making in include ...
make: Leaving directory/cygdrive/d/voiceproject/sphinx2/sphinxtrain/include
'
make: Entering directory /cygdrive/d/voiceproject/sphinx2/sphinxtrain/src'
making in src ...
make: Entering directory/cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/li
bs'
making in src/libs ...
make: Entering directory /cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/li
bs/libcommon'
making in src/libs/libcommon ...
make: Leaving directory/cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/lib
s/libcommon'
make: Entering directory /cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/li
bs/libmllr'
making in src/libs/libmllr ...
make: Leaving directory/cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/lib
s/libmllr'
make: Entering directory /cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/li
bs/libclust'
making in src/libs/libclust ...
make: Leaving directory/cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/lib
s/libclust'
make: Entering directory /cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/li
bs/libio'
making in src/libs/libio ...
make: Leaving directory/cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/lib
s/libio'
make: Entering directory /cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/li
bs/libmodinv'
making in src/libs/libmodinv ...
make: Leaving directory/cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/lib
s/libmodinv'
make: Entering directory /cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/li
bs/libs2io'
making in src/libs/libs2io ...
make: Leaving directory/cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/lib
s/libs2io'
make: Leaving directory /cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/lib
s'
make: Entering directory/cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/pr
ograms'
making in src/programs ...
make: Entering directory /cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/pr
ograms/agg_seg'
making in src/programs/agg_seg ...
gcc -o ../../../bin.i686-pc-cygwin/agg_seg
-L/cygdrive/d/voiceproject/sphinx2/sp
hinxtrain/../sphinxbase/src/libsphinxad -L/cygdrive/d/voicepro
ject/sphinx2/sphinxtrain/../sphinxbase/src/libsphinxbase -L/cyg
drive/d/voiceproject/sphinx2/sphinxtrain/../sphinxbase/src/libsphinxbase/.libs
-
L../../../lib.i686-pc-cygwin obj.i686-pc-cygwin/agg_all_seg.o obj.i686-pc-
cygwi
n/agg_phn_seg.o obj.i686-pc-cygwin/agg_st_seg.o obj.i686-pc-
cygwin/cnt_phn_seg.o
obj.i686-pc-cygwin/cnt_st_seg.o obj.i686-pc-cygwin/main.o obj.i686-pc-
cygwin/mk
_seg.o obj.i686-pc-cygwin/parse_cmd_ln.o ../../../lib.i686-pc-
cygwin/libcommon.a
../../../lib.i686-pc-cygwin/libmllr.a ../../../lib.i686-pc-cygwin/libio.a
../..
/../lib.i686-pc-cygwin/libs2io.a ../../../lib.i686-pc-cygwin/libmodinv.a
../../.
./lib.i686-pc-cygwin/libclust.a -lm -lsphinxbase -llapack -lblas
../../../lib.i
686-pc-cygwin/libcommon.a ../../../lib.i686-pc-cygwin/libmllr.a
../../../lib.i68
6-pc-cygwin/libio.a ../../../lib.i686-pc-cygwin/libs2io.a
../../../lib.i686-pc-c
ygwin/libmodinv.a ../../../lib.i686-pc-cygwin/libclust.a -lm -lsphinxbase
-llap
ack -lblas
/cygdrive/d/voiceproject/sphinx2/sphinxtrain/../sphinxbase/src/libsphinxbase/.
li
bs/libsphinxbase.a(err.o): In function_E__abort_error':
/cygdrive/d/voiceproject/sphinx2/sphinxbase/src/libsphinxbase/util/err.c:350:
mu
ltiple definition of __E__abort_error'
../../../lib.i686-pc-
cygwin/libcommon.a(err.o):/cygdrive/d/voiceproject/sphinx2/
sphinxtrain/src/libs/libcommon/err.c:148: first defined here
/cygdrive/d/voiceproject/sphinx2/sphinxtrain/../sphinxbase/src/libsphinxbase/.
li
bs/libsphinxbase.a(err.o): In function_E__sys_error':
/cygdrive/d/voiceproject/sphinx2/sphinxbase/src/libsphinxbase/util/err.c:331:
mu
ltiple definition of __E__sys_error'
../../../lib.i686-pc-
cygwin/libcommon.a(err.o):/cygdrive/d/voiceproject/sphinx2/
sphinxtrain/src/libs/libcommon/err.c:132: first defined here
/cygdrive/d/voiceproject/sphinx2/sphinxtrain/../sphinxbase/src/libsphinxbase/.
li
bs/libsphinxbase.a(err.o): In function_E__fatal_sys_error':
/cygdrive/d/voiceproject/sphinx2/sphinxbase/src/libsphinxbase/util/err.c:305:
mu
ltiple definition of __E__fatal_sys_error'
../../../lib.i686-pc-
cygwin/libcommon.a(err.o):/cygdrive/d/voiceproject/sphinx2/
sphinxtrain/src/libs/libcommon/err.c:114: first defined here
/cygdrive/d/voiceproject/sphinx2/sphinxtrain/../sphinxbase/src/libsphinxbase/.
li
bs/libsphinxbase.a(err.o): In function_E__die_error':
/cygdrive/d/voiceproject/sphinx2/sphinxbase/src/libsphinxbase/util/err.c:284:
mu
ltiple definition of __E__die_error'
../../../lib.i686-pc-
cygwin/libcommon.a(err.o):/cygdrive/d/voiceproject/sphinx2/
sphinxtrain/src/libs/libcommon/err.c:98: first defined here
/cygdrive/d/voiceproject/sphinx2/sphinxtrain/../sphinxbase/src/libsphinxbase/.
li
bs/libsphinxbase.a(err.o): In function_E__pr_info':
/cygdrive/d/voiceproject/sphinx2/sphinxbase/src/libsphinxbase/util/err.c:268:
mu
ltiple definition of __E__pr_info'
../../../lib.i686-pc-
cygwin/libcommon.a(err.o):/cygdrive/d/voiceproject/sphinx2/
sphinxtrain/src/libs/libcommon/err.c:87: first defined here
/cygdrive/d/voiceproject/sphinx2/sphinxtrain/../sphinxbase/src/libsphinxbase/.
li
bs/libsphinxbase.a(err.o): In function_E__pr_warn':
/cygdrive/d/voiceproject/sphinx2/sphinxbase/src/libsphinxbase/util/err.c:252:
mu
ltiple definition of __E__pr_warn'
../../../lib.i686-pc-
cygwin/libcommon.a(err.o):/cygdrive/d/voiceproject/sphinx2/
sphinxtrain/src/libs/libcommon/err.c:75: first defined here
/cygdrive/d/voiceproject/sphinx2/sphinxtrain/../sphinxbase/src/libsphinxbase/.
li
bs/libsphinxbase.a(err.o): In function_E__pr_info_header':
/cygdrive/d/voiceproject/sphinx2/sphinxbase/src/libsphinxbase/util/err.c:235:
mu
ltiple definition of __E__pr_info_header'
../../../lib.i686-pc-
cygwin/libcommon.a(err.o):/cygdrive/d/voiceproject/sphinx2/
sphinxtrain/src/libs/libcommon/err.c:66: first defined here
/cygdrive/d/voiceproject/sphinx2/sphinxtrain/../sphinxbase/src/libsphinxbase/.
li
bs/libsphinxbase.a(err.o): In function_E__pr_header':
/cygdrive/d/voiceproject/sphinx2/sphinxbase/src/libsphinxbase/util/err.c:219:
mu
ltiple definition of __E__pr_header'
../../../lib.i686-pc-
cygwin/libcommon.a(err.o):/cygdrive/d/voiceproject/sphinx2/
sphinxtrain/src/libs/libcommon/err.c:59: first defined here
/cygdrive/d/voiceproject/sphinx2/sphinxtrain/../sphinxbase/src/libsphinxbase/.
li
bs/libsphinxbase.a(pio.o): In functionfread_retry':
/cygdrive/d/voiceproject/sphinx2/sphinxbase/src/libsphinxbase/util/pio.c:345:
mu
ltiple definition of _fread_retry'
../../../lib.i686-pc-
cygwin/libio.a(fread_retry.o):/cygdrive/d/voiceproject/sphi
nx2/sphinxtrain/src/libs/libio/fread_retry.c:59: first defined here
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory/cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/pro
grams/agg_seg'
make: *** Error 2
make: Leaving directory /cygdrive/d/voiceproject/sphinx2/sphinxtrain/src/pro
grams'
make: *** Error 2
make: Leaving directory/cygdrive/d/voiceproject/sphinx2/sphinxtrain/src'
make: *** Error 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm trying to create an acoustic model for a project.
I installed sphinxbase first and it did not return an error so I proceeded to
installing sphinxtrain.
I ran
and it was okay, the last few lines were:
but when i ran
, I bumped into this error.
Can anyone help me? Thanks. I don't quite understand what is causing the
error.
Hello
On linking stage linker takes the object files which contain the object binary
code without references resolved and references to external functions and
tries to resolve them. This process is called "linking". Sometimes linker
fails to find the function to call despite it's mentioned in object file. For
example here it fails to find the function referenced in file matrix.o from
the static library libsphinxbase.a
You can learn more about linking here
http://en.wikipedia.org/wiki/Linker_(computing)
There could be many reasons for that. For example the function can be just
missing in the sources. Usually it's caused by a bug or by a typo. Or the
function can be present in an external library linker doesn't know about or
which is missing. In this particular case you compiled Sphinxbase with support
of external lapack library and due to the bug in Sphinxtrain build this
library is not referenced in Sphinxtrain build. You have two ways to solve
this issue:
Hello
Thank you for your help, I tried adding -llapack to LIBS in
sphinxtrain/config/config however I still ran into the same error.
Are there other ways of fixing this?
This is a different error if you noticed, it's about duplicated functions.
Cygwin is very strict about that.
Checkout sphinxbase and Sphinxtrain from trunk, this particular issue with
logging functions should be solved now.
From trunk, you mean from
here?
I downloaded the latest .tar.gz for both.
Oops, nevermind. :)
I already checked out sphinxbase and sphinxtrain from trunk and used the new
files to compile in Cygwin, but I always run into the error.
Am I doing something wrong? Sorry for asking too many questions.
Hello
Please double check that you are using latest version from subversion and that
you are cleaned everything. In recent trunk there is no such file err.o so
this error definitely says you are using older version.
I deleted the files with err.o and reinstalled sphinxbase and encountered
this:
When I added -llapack to LIBS in SphinxTrain/config/config, I got this:
Sorry for the inconvenience.
ssym is part of blas, add -lblas
Thank you for all your help! :D
Hello, everyone
I try to make my own acoustic model so, I do it following tutorial now I have
finished create my own language model then I try to create my own acoustic
model next but when I make sphinxtrain using cygwin.
I have got the same problem with this topic so I follow the suggestions in
this topic by adding -llapack in sphinxtrain/config/config then I get into the
same problem of this topic in comment #3 so the suggestion say that I have to
download the lastest of sphinxtrain and sphinxbase.
but I have already download that.
sphinxbase-0.7.tar.gz which says modified when 2011-05-16.
sphinxtrain-1.0.7.tar.gz which says modified the same day above.
so anyway to fix this? thank you in advance
Here is my log,
ok sorry my lack careful i have manage to find the "truck"
Hello,
sorry for inconvenience again
I have to pass the error there but it have some problem in building python
log looks like this
how can I solve this problem? thank you
Install python