------- Comment #2 from petermorgan at grapevine dot net dot au 2008-09-01 22:22 ------- Subject: Re: gfortran errors in compilation and the making for upgraded compilers
Thanks for the mail message below. I have checked my system as suggested. The gmp-development is installed see [EMAIL PROTECTED] Fedora 9 x86_64 DVD]# cd Packages [EMAIL PROTECTED] Packages]# ls *gmp* gmp-4.2.2-7.fc9.i386.rpm gmp-4.2.2-7.fc9.x86_64.rpm gmp-devel-4.2.2-7.fc9.i386.rpm gmp-devel-4.2.2-7.fc9.x86_64.rpm [EMAIL PROTECTED] Packages]# rpm -Uvh gmp-devel-4.2.2-7.fc9.x86_64.rpm Preparing... ########################################### [100%] package gmp-devel-4.2.2-7.fc9.x86_64 is already installed [EMAIL PROTECTED] Packages]# ls *mpfr* mpfr-2.3.0-3.fc9.x86_64.rpm There is no development package for mpfr, see http://www.mpfr.org/ Perhaps I am wrong but I did do a full, new, install from a tar file to try and beet the header file issue. On the matter of using an object and source directory structure. This is my standard approach. Apologies I should have also included that line. Here is the full invocation which shows the object and source directory separation. [EMAIL PROTECTED] gcc-4.3.1]$ ../gcc-4.3.1.source/configure --prefix=/opt checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for gnatbind... no checking for gnatmake... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2 checking for correct version of gmp.h... yes checking for correct version of mpfr.h... no configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+. Try the --with-gmp and/or --with-mpfr options to specify their locations. Copies of these libraries' source code can be found at their respective hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also http://gcc.gnu.org/install/prerequisites.html for additional info. If you obtained GMP and/or MPFR from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages. Regards jvdelisle at gcc dot gnu dot org wrote: > ------- Comment #1 from jvdelisle at gcc dot gnu dot org 2008-09-01 14:00 > ------- > Try seeing if you need to install mpfr-devel and gmp-devel packages for your > distribution. This will install the headers needed for those libraries. > > Also, make sure you are building in a separate directory away from the source > tree for gcc. > > The aforementioned are probably the most common problems I have seen. > > > -- *************************************** * * * Peter and Carol Morgan * * 20 Goodparla St * * Hawker, ACT, 2614 * * Australia * * * * Home Phone +61 (0)2 6254 0137 * * Peter's Mobile +61 (0)4 1854 0137 * * * * * *************************************** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37310