Problem building gcc with OSX
Tilo Lutz
TiloLutz@gmx.de
Fri Dec 25 15:20:00 GMT 2009
Hi
I use an intel macbook with snow leopard (OS X 10.6). I have installed the latest version of XCode (3.2.1). I haven't installed any other programms or tools. I want to develop code for arm7 mikrocontroller. I'm unable to build gcc for the target system. I had no problems with OSX 10.5. Here is what I did:
compiled and installed binutils to /usr/local/arm
compiled and installed gmp to /usr/local/arm
compiled and installed mpfr to /usr/local/arm
I read there are problems with correct system identification with snow leopard. Therefore I added information about the host system:
../configure --host=x86_64-apple-darwin10 ....
After that I tried to compile gcc-4.4.2 with target=arm-elf:
../configure --host=x86_64-apple-darwin10 --target=arm-elf --enable-interwork --enable-multilib --enable-languages="c,c++" --with-newlib --with-gmp=/usr/local/arm --with-mpfr=/usr/local/arm --build=x86_64-apple-darwin10
Unfortunately gcc fails to build. I get this error during make:
checking for long... no
checking size of long... 0
checking for int... no
checking size of int... 0
checking for short... no
checking size of short... 0
checking for char... no
checking size of char... 0
checking for type equivalent to int8_t... configure: error: no 8-bit type
/Users/tilolutz/build/gcc-4.4.2/libstdc++-v3/configure: line 116577: exit: please: numeric argument required
/Users/tilolutz/build/gcc-4.4.2/libstdc++-v3/configure: line 116577: exit: please: numeric argument required
make[1]: *** [configure-target-libstdc++-v3] Error 1
make: *** [all] Error 2
I read the following threads:
http://gcc.gnu.org/ml/gcc-bugs/2009-08/msg02234.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41180
without --host I get exactly the same error message.
What can I do to get gcc work?
Please tell me when I should supply additional information or files.
Cheers, Tilo
More information about the Gcc-help
mailing list