From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22658 invoked by alias); 22 Aug 2011 07:56:17 -0000 Received: (qmail 22636 invoked by uid 22791); 22 Aug 2011 07:56:15 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,TW_LV X-Spam-Check-By: sourceware.org Received: from tschetwerikow.v9g.de (HELO tschetwerikow.v9g.de) (217.92.164.63) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Aug 2011 07:56:00 +0000 Received: from localhost (localhost [127.0.0.1]) by tschetwerikow.v9g.de (Postfix) with ESMTP id 07594175137D; Mon, 22 Aug 2011 09:49:25 +0200 (CEST) Received: from tschetwerikow.v9g.de ([127.0.0.1]) by localhost (tschetwerikow.boxberg.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YWXb6otH-HAV; Mon, 22 Aug 2011 09:49:22 +0200 (CEST) Received: from mikulin.boxberg.lan (mikulin.boxberg.lan [10.0.1.253]) by tschetwerikow.v9g.de (Postfix) with ESMTPS id 32EC41751339; Mon, 22 Aug 2011 09:49:18 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 4 of 6] docs: Document usage with Xcode 4.1 X-Mercurial-Node: bd1c80d7592bee149d1770ba0b5b6add79535e5f Message-Id: In-Reply-To: References: User-Agent: Mercurial-patchbomb/1.9 Date: Mon, 22 Aug 2011 07:56:00 -0000 From: Titus von Boxberg To: crossgcc@sourceware.org Cc: yann.morin.1998@anciens.enib.fr X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00105.txt.bz2 # HG changeset patch # User Titus von Boxberg # Date 1313998590 -7200 # Node ID bd1c80d7592bee149d1770ba0b5b6add79535e5f # Parent 970b50d32f41ba8885c196f7566de4ed9ba0ee37 docs: Document usage with Xcode 4.1 With Xcode 4.1 'gcc' is symlinked llvm-gcc-4.2 which cannot bootstrap other gccs. See http://llvm.org/bugs/show_bug.cgi?id=9571 On my machine the faulty gcc is gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) Document a workaround. Signed-off-by: "Titus von Boxberg" diff -r 970b50d32f41 -r bd1c80d7592b docs/C - Misc. tutorials.txt --- a/docs/C - Misc. tutorials.txt Mon Aug 22 09:38:19 2011 +0200 +++ b/docs/C - Misc. tutorials.txt Mon Aug 22 09:36:30 2011 +0200 @@ -55,7 +55,7 @@ mount somewhere. 2) Install macports (or similar easy means of installing 3rd party software), - make sure that macport's bin dir is in your PATH. + make sure that macport's bin dir is in the front (!) of your PATH. Furtheron assuming it is /opt/local/bin. 3) Install (at least) the following macports @@ -65,11 +65,25 @@ gsed gawk gcc43 (only necessary for Leopard OSX 10.5) + gcc_select (only necessary for OSX 10.5, or Xcode > 4) +4) Prerequisites On Leopard, make sure that the macport's gcc is called with the default - commands (gcc, g++,...), e.g. via macport gcc_select + commands (gcc, g++,...), via macport's gcc_select -4) run ct-ng's configure with the following tool configuration + On OSX 10.7 Lion / when using Xcode >= 4 make sure that the default commands + (gcc, g++, etc.) point to gcc-4.2, NOT llvm-gcc-4.2 + by using macport's gcc_select feature. With MacPorts >= 1.9.2 + the command is: "sudo port select --set gcc gcc42" + This also requires (like written above) that macport's bin dir + comes before standard directories in your PATH environment variable + because the gcc symlink is installed in /opt/local/bin and the default /usr/bin/gcc + is not removed by the gcc select command! + Explanation: llvm-gcc-4.2 (with Xcode 4.1 it is on my machine + "gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)") + cannot boostrap gcc. See http://llvm.org/bugs/show_bug.cgi?id=9571 + +5) run ct-ng's configure with the following tool configuration (assuming you have installed the tools via macports in /opt/local): ./configure --with-sed=/opt/local/bin/gsed \ --with-libtool=/opt/local/bin/glibtool \ @@ -79,7 +93,7 @@ --with-readelf=/opt/local/bin/greadelf \ [...other configure parameters as you like...] -5) proceed as described in standard documentation +6) proceed as described in standard documentation ----- -- For unsubscribe information see http://sourceware.org/lists.html#faq