This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: In-tree build
- From: "Manfred Schwarb" <manfred99 at gmx dot ch>
- To: "Rouson, Damian" <rouson at sandia dot gov>, fortran at gcc dot gnu dot org
- Date: Wed, 05 May 2010 22:08:10 +0200
- Subject: Re: In-tree build
- References: <C806E768.10702%rouson@sandia.gov>
> Can someone send me a configure line for doing in-tree builds of mpc,
> mpfr,
> and gmp with gcc 4.6.0? I¹m using the following line:
>
> /Users/rouson/gcc-4.6.0/configure --program-suffix=-4.6 \
> --enable-checking=release --prefix=/usr/local/gfortran \
> --enable-languages=c,fortran --enable-version-specific-runtime-libs \
> --build=x86_64-apple-darwin9 --host=x86_64-apple-darwin9 \
> --target=x86_64-apple-darwin9 --disable-bootstrap --disable-multilib \
> --with-libiconv-prefix=/opt/local \
> --with-gmp=/Users/rouson/gcc-4.6.0/gmp-4-3-1 \
> --with-mpfr=/Users/rouson/gcc-4.6.0/mpfr-2-4-1 \
> --with-mpc=/Users/rouson/gcc-4.6.0/mpc-0.8
>
You have then to
1) omit all these --with-gmp etc.
2) copy these libraries into the source and rename them to gmp, mpfr, etc.
I.e strip the version information from the directory names
However, when I last tried it, it did not work out for me, somehow.
I don't remember the exact error messages any more (Might have been
bug 42424 or so).
> but configure doesn't seem to find gmp, mpfr, and mpc. The error message
> is
> below.
>
> checking for the correct version of gmp.h... buggy but acceptable
> checking for the correct version of mpfr.h... buggy but acceptable
It finds your system headers/libraries which seem to be too old?
The most bullet-proof build is to install these libraries first and
then point to them with --with-gmp etc.
You have to pay attention however, that gmp needs "--enable-cxx"
and cloog-ppl needs "--with-ppl" as configure options.
Cheers,
Manfred
--
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/chbrowser