This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: building fortran
- From: Vadim Gutnik <gutnik at impinj dot com>
- To: "tprince at myrealbox dot com" <tprince at myrealbox dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 23 Aug 2006 08:43:56 -0700
- Subject: Re: building fortran
- References: <20060822231255.GA28382@impinj.com> <44EC57B5.9030901@sbcglobal.net>
On Wed, Aug 23, 2006 at 06:27:17AM -0700, Tim Prince wrote:
> > ldd /impinj/uns/amd64_2.4/libexec/gcc/x86_64-unknown-linux-gnu/4.1.1/f951
> > libgmp.so.3 => /usr/lib64/libgmp.so.3 (0x0000002a95682000)
> > libc.so.6 => /lib64/libc.so.6 (0x0000002a957ba000)
> > /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
> >
> IIRC, gmp and mpfr must be built with --enable-shared. It definitely
> doesn't work to have gfortran picking up .so from a different version
> from the one you installed and attempted to specify for configure.
ls -l /impinj/uns/amd64_2.4/lib/*gmp*
-rw-r--r-- 1 gutnik users 777376 Aug 21 17:17 /impinj/uns/amd64_2.4/lib/libgmp.a
-rwxr-xr-x 1 gutnik users 794 Aug 21 17:17 /impinj/uns/amd64_2.4/lib/libgmp.la*
lrwxrwxrwx 1 gutnik users 15 Aug 21 17:17 /impinj/uns/amd64_2.4/lib/libgmp.so -> libgmp.so.3.4.1*
lrwxrwxrwx 1 gutnik users 15 Aug 21 17:17 /impinj/uns/amd64_2.4/lib/libgmp.so.3 -> libgmp.so.3.4.1*
-rwxr-xr-x 1 gutnik users 294146 Aug 21 17:17 /impinj/uns/amd64_2.4/lib/libgmp.so.3.4.1*
> ls -l /impinj/uns/amd64_2.4/lib/*mpfr*
-rw-r--r-- 1 gutnik users 1807076 Aug 21 21:30 /impinj/uns/amd64_2.4/lib/libmpfr.a
-rwxr-xr-x 1 gutnik users 827 Aug 21 21:30 /impinj/uns/amd64_2.4/lib/libmpfr.la*
As I understand it, gmp does build a shared library. Further, things
work with LD_LIBRARY_PATH set correctly, so I don't think the problem
is the libraries that get built, it's something about the runtime linking.
If you think it'll help, sure, I'll rebuild mpfr and gmp.
Vadim