Still when i compile my script, i cannot recognize the blas/lapack function. Still get: undefined reference to `G_matrix_init'
I have already reconfigured my grass files --with-blas and --with-lapack option but nothing changed!
Any idea?There's nothing i can do?
Thanks
PS: here is a part of my config.log file:
configure:10037: checking whether to use BLAS
configure:10059: checking for location of BLAS library
configure:10086: checking for dnrm2_ in -lblas
configure:10103: gcc -o conftest -O3 -march=pentium4 -Wall -s conftest.c -lblas -lm 1>&5
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libblas.so: undefined reference to `e_wsfe'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libblas.so: undefined reference to `z_abs'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libblas.so: undefined reference to `do_fio'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libblas.so: undefined reference to `s_stop'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libblas.so: undefined reference to `c_abs'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libblas.so: undefined reference to `s_wsfe'
collect2: ld returned 1 exit status
configure: failed program was:
#line 10092 "configure"
#include "confdefs.h"
* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dnrm2_();
int main() {
dnrm2_()
; return 0; }
configure:10122: checking for dnrm2_ in -lblas
configure:10139: gcc -o conftest -O3 -march=pentium4 -Wall -s conftest.c -lblas -lm -lg2c 1>&5
configure:10192: checking whether to use LAPACK
configure:10214: checking for location of LAPACK library
configure:10241: checking for dgesv_ in -llapack
configure:10258: gcc -o conftest -O3 -march=pentium4 -Wall -s conftest.c -llapack -lblas -lg2c -lm 1>&5
Thanks !
--------------------------------------
Eng. Massimiliano Cannata
Phd student
www.supsi.ch
Cannata, Massimiliano wrote:
Still when i compile my script, i cannot recognize the
blas/lapack function. Still get: undefined reference to
`G_matrix_init'
Did you do "make distclean" first?
I have already reconfigured my grass files --with-blas and
--with-lapack option but nothing changed!
Any idea?There's nothing i can do?
Thanks
PS: here is a part of my config.log file:
The configure checks succeeded, so there is no need to look at
config.log.
--
Glynn Clements <glynn.clements@virgin.net>
Glynn Clements wrote:
Cannata, Massimiliano wrote:
Still when i compile my script, i cannot recognize the
blas/lapack function. Still get: undefined reference to
`G_matrix_init’
Did you do “make distclean” first?
Yes, I’ve done more than once this steps:- make distclean
- ./configure --with-blas --with-lapack …etc. etc…
- make
- make install
I have already reconfigured my grass files --with-blas and
–with-lapack option but nothing changed!
Any idea?There’s nothing i can do?
Thanks
PS: here is a part of my config.log file:
The configure checks succeeded, so there is no need to look at
config.log.
–
Glynn Clements glynn.clements@virgin.net
I’ve read somewhere that there are some problem in interfacing fortran with C…
but if you all can run this library…
there should be a solution…
Thanks a lot.
Massimiliano
–
Ing. Massimiliano Cannata
Istituto di Scienze della Terra - SUPSI
C.P. 72 - CH-6952 Canobbio (Ticino, Switzerland)
Tel +41 91 /935 12 25 - Fax +41 91 /935 12 09
eMail: massimiliano.cannata@ist.supsi.ch
Internet: http://www.ist.supsi.ch
Massimiliano Cannata wrote:
I've read somewhere that there are some problem in interfacing
fortran with C...
but if you all can run this library....
there should be a solution...
Does your gcc installation include FORTRAN support?
You need the file g2c.h in order to use FORTRAN libraries such as BLAS
and LAPACK. The body of the file src/libes/gmath/la.c (which defines
the various G_matrix_* functions) is conditionalised with:
#if defined(HAVE_LIBLAPACK) && defined(HAVE_LIBBLAS) && defined(HAVE_G2C_H)
so those functions won't be defined if you don't have g2c.h.
--
Glynn Clements <glynn.clements@virgin.net>