Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Dominique Dhumieres
Daniel, Thanks for the answer. You need to show us your configure arguments to be sure. I bet you're specifying just --host. You are right, the configure I am using since some time is: ConfigureParams: --prefix=%p/lib/gcc4 --disable-multilib --enable-languages=c,c++,fortran,objc,java

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Dominique Dhumieres
I have written: Would something like --build=%m-apple-darwin`uname -r|cut -f1 -d.` work? Apparently it works. Thanks Dominique

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Paolo Bonzini
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

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Daniel Jacobowitz
On Sat, Feb 10, 2007 at 05:08:10PM +0100, Paolo Bonzini wrote: 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

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Paolo Bonzini
This seems horribly wrong somehow. Aren't we intested in the ${build} - ${host} compiler at this point anyway? So shouldn't we be testing it? I think the whole block can go. Hmm, it says indeed this is going to change when we autoconfiscate. Something like this? Index: configure.ac

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Daniel Jacobowitz
On Sat, Feb 10, 2007 at 06:59:35PM +0100, Paolo Bonzini wrote: This seems horribly wrong somehow. Aren't we intested in the ${build} - ${host} compiler at this point anyway? So shouldn't we be testing it? I think the whole block can go. Hmm, it says indeed this is going to change when

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Dominique Dhumieres
The discussion is becoming to technical for me. Let me just say that adding --build=%m-apple-darwin`uname -r|cut -f1 -d.` to config allowed me to build gcc without further glitch. I guess it will do no harm to keep this addition even if it becomes no longer necessary. Thanks for the help

problem building gcc4-4.3.0-20070209

2007-02-09 Thread Dominique Dhumieres
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

Re: problem building gcc4-4.3.0-20070209

2007-02-09 Thread Daniel Jacobowitz
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