This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Error linking with libgfortran version (pardiso and lapack libs)
- From: fcostela <francisco dot costela at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Date: Fri, 6 Nov 2009 04:32:12 -0800 (PST)
- Subject: Error linking with libgfortran version (pardiso and lapack libs)
Hi all,
I am trying to compile a program that requires both LAPACK and Pardiso
libraries on a Centos 4.5 x86_64 using gcc/gfortran. I am linking with the
file libpardiso400_GNU430_IA64.so that was compiled with gcc/gfortran 4.3.
I compiled LAPACK 3.2.1 using my current gfortran version 4.1.2 on my Centos
(I could not update it to 4.2 or higher).
However, when I compiled I got this error:
/root/pardisolib/libpardiso400_GNU430_IA64.so: undefined reference to
`_gfortran_os_error'
I checked that my libgfortran version did not include that reference. Then I
downloaded newer gfortran versions (4.3.1) to link with libgfortran.so.3
This solved the problem about _gfortran_os_error but I got new errors
concerning the LAPACK lib:
/root/lapack-3.2.1/lapack_LINUX.a(dlamch.o)(.text+0xb04): En la funciÃn
`dlamc2_':
: undefined reference to `_gfortran_pow_r8_i4'
/root/lapack-3.2.1/lapack_LINUX.a(ilaenv.o)(.text+0x7a): En la funciÃn
`ilaenv_':
: undefined reference to `_gfortran_copy_string'
These two functions are not included in libgfortran.so.3. I found that the
right version of gfortran that might solve both errors is gfortran.4.2.3
(libgfortran.so.2). However I have not been able to find it for Centos
x86_64. It looks like there is no libgfortran.so.2 compatible for this
machine (or I could not find it!)
Any idea about how to link both libs together? It would be more than
appreciated.
Thanks for the help.
Regards,
Francisco
--
View this message in context: http://old.nabble.com/Error-linking-with-libgfortran-version-%28pardiso-and-lapack-libs%29-tp26230499p26230499.html
Sent from the gcc - fortran mailing list archive at Nabble.com.