public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building gcc 4.2.1 on mac os x 10.4 with Xcode 2.2
@ 2007-10-30  3:11 Ko-Chih Wu
  0 siblings, 0 replies; only message in thread
From: Ko-Chih Wu @ 2007-10-30  3:11 UTC (permalink / raw)
  To: gcc-help


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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-30  2:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-30  3:11 Building gcc 4.2.1 on mac os x 10.4 with Xcode 2.2 Ko-Chih Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).