From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28875 invoked by alias); 30 Oct 2007 02:02:47 -0000 Received: (qmail 28858 invoked by uid 22791); 30 Oct 2007 02:02:46 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 Oct 2007 02:02:41 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ImgRD-0001qj-5g for gcc-help@gcc.gnu.org; Mon, 29 Oct 2007 19:02:39 -0700 Message-ID: <13480996.post@talk.nabble.com> Date: Tue, 30 Oct 2007 03:11:00 -0000 From: Ko-Chih Wu To: gcc-help@gcc.gnu.org Subject: Building gcc 4.2.1 on mac os x 10.4 with Xcode 2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mecca831@gmail.com X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-10/txt/msg00371.txt.bz2 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.