This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problem building gcc4-4.3.0-20070209
- From: Daniel Jacobowitz <drow at false dot org>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 9 Feb 2007 21:24:51 -0500
- Subject: Re: problem building gcc4-4.3.0-20070209
- References: <20070209235613.324625BB9A@mailhost.lps.ens.fr>
On Sat, Feb 10, 2007 at 12:56:13AM +0100, Dominique Dhumieres wrote:
> While building the gcc4-4.3.0-20070209 snapshot, I got the error
>
> ...
> checking for correct version of gmp.h... no
> configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
> ...
>
> I am using the same script that worked last week and I have
> gmp 4.2.1 and mpfr 2.2.1 since several builds. I am using
> a Mac OSX 10.3.9. Can someone give me a pointer the change(s)
> that might explain the breakage.
You need to show us your configure arguments to be sure. I bet
you're specifying just --host.
I don't know exactly what to do about this. It's caused by:
if test ${build} != ${host}; then
some defaults
else
AC_PROG_CC
fi
AC_TRY_COMPILE
ac_objext is set at the expansion of AC_PROG_CC and if you take the if
branch, it never gets set.
Does anyone reading this know what the right thing to do is? Is there
anything in the autoconf documentation about not using some macros
inside conditional statements?
--
Daniel Jacobowitz
CodeSourcery