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: In-tree build



> 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


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