This is the mail archive of the
mailing list for the GCC project.
RE: gfortan requires old directory in LD_LIBRARY_PATH or else gmp error
- From: "Rupert Wood" <me at rupey dot net>
- To: "'Poor Yorick'" <org dot gnu dot gcc dot help at pooryorick dot com>
- Cc: <gcc-help at gnu dot org>
- Date: Mon, 19 Nov 2007 13:01:06 -0000
- Subject: RE: gfortan requires old directory in LD_LIBRARY_PATH or else gmp error
- References: <firstname.lastname@example.org>
Poor Yorick wrote:
> Why does the newly-compiled gfortran need this old path in
> LD_LIBRARY_PATH to function?
It looks like it's because you built shared-library-only versions of GMP and MPFR with the old compiler which now depend on the old compiler's runtime libraries. gfortran depends on GMP and MPFR and so you must have the old compiler's runtime libraries in your path to run gfortran.
One solution might be to replace your GMP and MPFR .sos with new versions built with your new compiler. Alternatively you could make sure you have static versions of them and rebuild GCC 4.2, checking it picks up the static versions not the shared libraries which should not have the dependence.
(This guesswork based on the error messages, I'm not familiar with how GCC links against GMP and MPFR - apologies if I'm wrong!)
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email