Hi, I am able to successfully build cross compiler toolchain using gcc-4.3 after installing mpfr-2.3.1 libraries on host system. Thank you for all your help and support.
Regards, Dilip -----Original Message----- From: Mike Frysinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2008 9:56 AM To: [email protected] Cc: Ned Ludd; Christopher Friedt Subject: Re: [gentoo-embedded] GCC 4.3 fails on mpfr On Tuesday 06 May 2008, Ned Ludd wrote: > On Tue, 2008-05-06 at 17:24 -0400, Mike Frysinger wrote: > > On Tuesday 06 May 2008, Christopher Friedt wrote: > > > This is a 'chicken / egg' problem. In order to build a cross compiler > > > for arch X you need mpfr compiled for arch X. In order to build mpfr > > > for arch X you need a toolchain for arch X. > > > > > > Try building the cross-compiler without mpfr first, then build libmpfr, > > > and then rebuild the cross compiler. > > > > you cant build gcc-4.3 without gmp and mpfr. they're hard requirements. > > but they're requirements that the host system has it, not that they are > > cross-compiled for the target. > > this might pose a problem at Gentoo as I don't think mpfr can even be > cross compiled in the first place. I might be wrong but I seem to recall > fighting with it in the last week using ( arm-softfloat-linux-uclibc || > arm*-softloat-linux-gnueabi). i said they are host libraries, not target libraries. gcc itself uses them in order to even execute in the first place starting with gcc-4.3. what Christopher is probably referring to is gfortran support ... it requires mpfr/gmp to be cross-compiled. but to address your question, they both do cross-compile fine. i just did it two days ago for mingw32 target so that i could build up a gfortran cross-compiler. -mike -- [email protected] mailing list
