Kirill Katsnelson
unread,Aug 17, 2015, 3:24:34 PM8/17/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to kaldi-developers
Not likely a kaldi problem; looks like I am having a wrong dependency
somewhere. I am getting a few undefined symbols when compiling against
OpenBLAS. I thought these were defined in libgfortran, but it is
certainly referenced in the command line. Has anyone seen that?
kkm@yupana:~/work/travis-temp/src[master *]$ make
. . . . .
g++ -msse -msse2 -Wall -I.. -pthread -DKALDI_DOUBLEPRECISION=0
-DHAVE_POSIX_MEMALIGN -Wno-sign-compare -Wno-unused-local-typedefs
-Winit-self -DHAVE_EXECINFO_H=1 -rdynamic -DHAVE_CXXABI_H
-DHAVE_OPENBLAS -I /usr/include -I
/home/kkm/work/travis-temp/tools/openfst/include -Wno-sign-compare -g
-rdynamic -Wl,-rpath=/home/kkm/work/travis-temp/tools/openfst/lib
align-equal.cc ../lm/kaldi-lm.a ../decoder/kaldi-decoder.a
../lat/kaldi-lat.a ../hmm/kaldi-hmm.a ../transform/kaldi-transform.a
../gmm/kaldi-gmm.a ../tree/kaldi-tree.a ../matrix/kaldi-matrix.a
../util/kaldi-util.a ../base/kaldi-base.a ../thread/kaldi-thread.a
-L/home/kkm/work/travis-temp/tools/openfst/lib -lfst -L/usr/lib
-lopenblas -lgfortran -Wl,-rpath=/usr/lib -lm -lpthread -ldl -o align-equal
../matrix/kaldi-matrix.a(kaldi-matrix.o): In function
`kaldi::clapack_Xgetrf2(int*, int*, float*, int*, int*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:395:
undefined reference to `sgetrf_'
../matrix/kaldi-matrix.a(kaldi-matrix.o): In function
`kaldi::clapack_Xgetrf2(int*, int*, double*, int*, int*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:400:
undefined reference to `dgetrf_'
../matrix/kaldi-matrix.a(kaldi-matrix.o): In function
`kaldi::clapack_Xgetri2(int*, float*, int*, int*, float*, int*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:407:
undefined reference to `sgetri_'
../matrix/kaldi-matrix.a(kaldi-matrix.o): In function
`kaldi::clapack_Xgetri2(int*, double*, int*, int*, double*, int*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:412:
undefined reference to `dgetri_'
../matrix/kaldi-matrix.a(kaldi-matrix.o): In function
`kaldi::clapack_Xgesvd(char*, char*, int*, int*, float*, int*, float*,
float*, int*, float*, int*, float*, int*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:423:
undefined reference to `sgesvd_'
../matrix/kaldi-matrix.a(kaldi-matrix.o): In function
`kaldi::clapack_Xgesvd(char*, char*, int*, int*, double*, int*, double*,
double*, int*, double*, int*, double*, int*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:433:
undefined reference to `dgesvd_'
../matrix/kaldi-matrix.a(sp-matrix.o): In function
`kaldi::clapack_Xsptri(int*, float*, int*, float*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:438:
undefined reference to `ssptri_'
../matrix/kaldi-matrix.a(sp-matrix.o): In function
`kaldi::clapack_Xsptri(int*, double*, int*, double*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:442:
undefined reference to `dsptri_'
../matrix/kaldi-matrix.a(sp-matrix.o): In function
`kaldi::clapack_Xsptrf(int*, float*, int*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:447:
undefined reference to `ssptrf_'
../matrix/kaldi-matrix.a(sp-matrix.o): In function
`kaldi::clapack_Xsptrf(int*, double*, int*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:451:
undefined reference to `dsptrf_'
../matrix/kaldi-matrix.a(tp-matrix.o): In function
`kaldi::clapack_Xtptri(int*, float*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:386:
undefined reference to `stptri_'
../matrix/kaldi-matrix.a(tp-matrix.o): In function
`kaldi::clapack_Xtptri(int*, double*, int*)':
/home/kkm/work/travis-temp/src/matrix/../matrix/cblas-wrappers.h:389:
undefined reference to `dtptri_'
. . . . .
kkm@yupana:~/work/travis-temp/src[master *]$ find /usr -name 'libgfortran*'
/usr/lib/x86_64-linux-gnu/libgfortran.so.3
/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
/usr/lib/gcc/x86_64-linux-gnu/4.9/libgfortran.spec
/usr/lib/gcc/x86_64-linux-gnu/4.9/libgfortran.so
/usr/lib/gcc/x86_64-linux-gnu/4.9/libgfortran.a
/usr/lib/gcc/x86_64-linux-gnu/4.9/libgfortranbegin.a
/usr/share/doc/libgfortran-4.9-dev
/usr/share/doc/libgfortran3