Building gcc 4.2.1 on mac os x 10.4 with Xcode 2.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Just in case there is someone like me who cannot build gcc on os x 10.4,
here is the solution: upgrade your Xcode to 2.4.1, or 3.0 if you are using
os x 10.5. Xcode 2.2 is the version came with mac os x 10.4(tiger)
installation DVD.

My configuration:
../src/configure --prefix=/Users/eric/gcc-4.2.1/local --enable-languages=c
Didn't change anything basically.

Initially I got the error message with Xcode 2.2:

In file included from /usr/include/sys/_types.h:26,
                from /usr/include/_types.h:27,
                from /usr/include/stdio.h:64,
                from ../../src/gcc/tsystem.h:90,
                from ../../src/gcc/config/darwin-crt3.c:38:
/usr/include/sys/cdefs.h:335:4: error: #error Unknown architecture
...
/usr/include/stdio.h:258: error: parameter name omitted
../../src/gcc/config/darwin-crt3.c:535: error: expected '{' at end of input
make[5]: *** [x86_64/crt3.o] Error 1
make[4]: *** [extrax86_64] Error 2
make[3]: *** [stmp-multilib] Error 2
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2

The host in Makefile:
host=i386-apple-darwin8.10.1

It seems that gcc tries to compile X86_64 code, but the architecture is not
supported.  The strange thing is my host is i386, which should not involve
X86_64 code. However, it worked after upgrading to Xcode 2.4.1. The version
of gcc is the same, 4.0.x, but it just worked, maybe due to changes in the
header file.

Ko-Chih Wu
-- 
View this message in context: http://www.nabble.com/Building-gcc-4.2.1-on-mac-os-x-10.4-with-Xcode-2.2-tf4715883.html#a13480996
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux