This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building GNU GCC 4.3.2 on Mac OS X (10.6.2)


On Fri, Apr 9, 2010 at 6:30 AM, Marc Glisse
<marc.glisse+gcc@normalesup.org> wrote:
> On Fri, 9 Apr 2010, Tiago Maluta wrote:
>
> [...]
>>
>> ld: warning: in /Users/maluta/Software/install-gmp/lib/libgmp.dylib,
>> file is not of required architecture
>
> It is likely that by default GMP was built for 64 bits, while GCC is built
> for 32 bits. You can change that by setting ABI=32 for GMP (you will also
> need to reinstall mpfr and mpc afterwards).
>

I switched to ABI=32 and compiled gmp and mpfr

../gcc-4.3.4/configure --prefix=$(cd ../install-gcc-32 && pwd)
--with-gmp=/Users/maluta/Software/install-gmp-32
--with-mpfr=/Users/maluta/Software/install-mpfr-32 --disable-checking
--enable-werror --enable-languages=c
(...)
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no

I returned to ABI=64 and compiled gmp, the GCC configure pass throught
this check and back to error point in the first message.

--tm


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]