This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error linking with libgfortran version (pardiso and lapack libs)


On Fri, Nov 06, 2009 at 05:24:26PM +0100, Francisco Costela wrote:
> 
> I already tried to compile LAPACK with a newer version of gfortran but
> I got the next message:
> 
> make[1]: Entering directory `/root/lapack-3.2.1/SRC'
> /root/gcc-4.3/bin/gfortran -O -m64 -c sgbbrd.f -o sgbbrd.o
> /root/gcc-4.3/bin/../libexec/
> gcc/x86_64-unknown-linux-gnu/4.3.5/f951: /lib64/tls/libc.so.6: version
> `GLIBC_2.4' not found (required by
> /root/gcc-4.3/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.3.5/f951)
> 
> The maximum version of GLIBC in my Centos 4.5 is 2.3.4, so it looks
> like I could not compile with a GCC version higher than 4.1.2.
> I also tried to compile a source gcc-4.2.3 package by myself but I got
> stuck with this error during 'make': "usr/bin/ld: cannot find lc" that
> I am still trying to solve. I think this has to do with the
> architecture.
> 
> Finally I linked with both libgfortran.so.3 and libgfortran.so.1 in
> this order but it looks like they create mutual exclusion as all the
> errors involving gfortran references appear.
> 
> My very desperate option would be installing Centos 5, that includes
> GLIBC_2.4 to compile LAPACK again with the last version of gfortran.
> Any more ideas?
> 

At this point, it appears you have really munged up your system. 
It may be best to delete all of the gcc distributions that you 
have tried to install and the version of gfortran that comes 
with CentOS.  You definitely do not want to use 4.1.2.

First, read the installation instruction at http://gcc.gnu.org/install/
An important detail to get correct is to have the correct versions
of GMP/MPFR/MPC installed on your system.  If you don't have the correct
versions on your system, then remove the old versions and install GMP,
MPFR, and/or MPC.

Now, download gcc-4.4.2, and following the installation instructions.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]