This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37310] gfortran errors in compilation and the making for upgraded compilers
- From: "petermorgan at grapevine dot net dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Sep 2008 23:12:47 -0000
- Subject: [Bug fortran/37310] gfortran errors in compilation and the making for upgraded compilers
- References: <bug-37310-16653@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from petermorgan at grapevine dot net dot au 2008-09-01 23:12 -------
Subject: Re: gfortran errors in compilation and the making
for upgraded compilers
Dear All
thanks for the reply
I have brought up the configure help pages of GNU.
While I had tried the inclusion of the --with they failed because I did
not understand that I needed to be one directory above the lib and the
include directories to use --with-mpfr=DIRECTORY option
Here below where I have explicity included the mpfr library and the
include headers all seems to be fixed. I have also tested the generic
include and it too works.
I will continue with compilation make.
ths
[peterm@currawong gcc-4.3.1]$ ../gcc-4.3.1.source/configure
--prefix=/opt --with-mpfr-lib=/opt/lib --with-mpfr-include=/opt/include
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... yes
The following languages will be built: c,c++,fortran,java,objc
kargl at gcc dot gnu dot org wrote:
> ------- Comment #3 from kargl at gcc dot gnu dot org 2008-09-01 22:38 -------
> (In reply to comment #2)
>
>
>> checking for correct version of gmp.h... yes
>> checking for correct version of mpfr.h... no
>>
>
> Clearly, configure can't find your installation of MPFR.
>
>
>
>> 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.
>>
>
> Re-read the last sentence above. It appears you forgot to try
> the --with-mpfr configure option.
>
>
>
--
***************************************
* *
* 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 *
* *
* *
***************************************
kargl at gcc dot gnu dot org wrote:
> ------- Comment #3 from kargl at gcc dot gnu dot org 2008-09-01 22:38 -------
> (In reply to comment #2)
>
>
>> checking for correct version of gmp.h... yes
>> checking for correct version of mpfr.h... no
>>
>
> Clearly, configure can't find your installation of MPFR.
>
>
>
>> 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.
>>
>
> Re-read the last sentence above. It appears you forgot to try
> the --with-mpfr configure option.
>
>
>
--
***************************************
* *
* 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