Read the tutorial: there are known issues with GCC 3.3.x
If you want an older GCC version, try 3.4.4 or 3.4.6
Developing OS under Mac OS X
Re: Developing OS under Mac OS X
I just built a static GCC cross compiler in OSX with great success. All I had to do was copy the newlib and libgloss folders (from newlib-1.17.0.tar.bz2) into gcc-4.3.2/newlib and gcc-4.3.2/libgloss and the GCC source folder, and extract the GMP and MPFR sources into gcc-4.3.2/gmp and gcc-4.3.2/mpfr.
Here's my configure command:
If you want to build a non-static version, you can compile GMP (I used version 4.2.4) then MPFR (version 2.3.2 here), but use the parameter ABI=32 (without the -- before it) if you're using Leopard, or GCC will complain when building MPFR. Point to their locations using --with-gmp= and --with-mpfr= when you build GCC.
Hope it helps!
Here's my configure command:
Code: Select all
../gcc-4.3.2/configure --prefix=/gcc-arm --target=arm-elf --with-newlib --with-gnu-as --with-gnu-ld --without-headers --disable-shared --disable-nls --enable-languages=c --enable-mpfr --enable-gmp --enable-static
Hope it helps!
Re: Developing OS under Mac OS X
Hmm, I tried to build the i386-elf cross-tools in macports over the weekend. It seems they're broken currently and have been for a number of weeks. There's various workarounds to build them, but what is the point of having to work around things that should build fine in macports?Srowen wrote:i've got some problem with the mac ports.