Re: [Lapackpp-devel] Error configuring with externally compiled Blas & Lapack
Status: Beta
Brought to you by:
cstim
From: Sonia S. <son...@gm...> - 2007-01-25 14:28:29
|
Hi, I gave the full path, and the config.log looks like this ----------------------------------------------------------------- | } configure:22227: result: no configure:22237: checking for sgemm_ configure:22302: gcc -o conftest -g -O2 conftest.c -L/afs/ece.cmu.edu/support/gcc/4.1.1/4.1.1-1/i386_suse93/image/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1 -L/afs/ece.cmu.edu/support/gcc/4.1.1/4.1.1-1/i386_suse93/image/usr/local/bin/../lib/gcc -L/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.1 -L/afs/ece.cmu.edu/support/gcc/4.1.1/4.1.1-1/i386_suse93/image/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../.. -L/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.1/../../.. -lgfortranbegin -lgfortran -lm -lgcc_s >&5 /tmp/ccUC6VD8.o: In function `main': /ux0/soniasin/packages/lapackpp-2.5.0/conftest.c:81: undefined reference to `sgemm_' /tmp/ccUC6VD8.o:(.data+0x0): undefined reference to `sgemm_' collect2: ld returned 1 exit status configure:22308: $? = 1 configure: failed program was: ------------------------------------------------------------------------------------- Its not linking the blas lib that I have given in the config command line. ./configure --with-blas=/scratch2/sonia/packages/mkl/lib/32/libmkl_ia32.a --with-lapack=/scratch2/sonia/packages/mkl/lib/32/libmkl_lapack.a ~ Sonia On 1/25/07, Christian Stimming <sti...@tu...> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > Sonia Singhal schrieb: > > I am trying to compile lapackpp-2.5.0 on Suse Linux. > > I am using Intel's MKL library containing Blas and Lapack libraries. > > When I run configure giving the path to these libraries, it gives the > > error of not finding functions in the blas/lapack libraries. > > --------------------------------------------------------------------------------------------------------- > >> ./configure --with-blas=~/pacakages/mkl/lib/32/libmkl_ia32.a --with-lapack=~/pacakages/mkl/lib/32/libmkl_lapack.a > > . > > . > > checking for dummy main to link with Fortran libraries... none > > checking for Fortran name-mangling scheme... lower case, underscore, > > no extra underscore > > checking for sgemm_ in ~/pacakages/mkl/lib/32/libmkl_ia32.a... no > > This is the important error in the configure result -- according to the > "nm" output below, this check should have succeeded instead: > > >> nm ~/pacakages/mkl/lib/32/libmkl_ia32.a | grep sgemm_ > > ... > > _sgemm_fb.o: > > 00000000 T sgemm_ > > Can you open the file "config.log" that was created during configure, > and look for the exact (compiler/linker) error message on the failed > test? To find this place, search for the string "checking for sgemm_" in > that file. Maybe the compiler doesn't like the tilde ("~"), in which > case you should specify a complete absolute path name instead. > > Regards, > > Christian > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.1 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iQCVAwUBRbi3mmXAi+BfhivFAQL5AwQAhD9+flxjEMyfZj3y42F248uDy94nVuD3 > r8y+sKzhYRWizuIGvHFeaibqHoZlE1gMTnT8K9V50nwYllc8NhU028Zm+K3z1yGM > JTtNMt6IKCOBwQveOKQH1Rktxy6f1LVOCxyvGcQ/dvuDHqRc12h9McDKNNNZLUjh > bPlHY0+KVlk= > =6x2V > -----END PGP SIGNATURE----- > |