From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29037 invoked by alias); 26 Jan 2011 15:34:29 -0000 Received: (qmail 28860 invoked by uid 22791); 26 Jan 2011 15:34:29 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 26 Jan 2011 15:34:23 +0000 Received: from wpaz1.hot.corp.google.com (wpaz1.hot.corp.google.com [172.24.198.65]) by smtp-out.google.com with ESMTP id p0QFYL41027066 for ; Wed, 26 Jan 2011 07:34:21 -0800 Received: from gwaa12 (gwaa12.prod.google.com [10.200.27.12]) by wpaz1.hot.corp.google.com with ESMTP id p0QFYKKY026362 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Wed, 26 Jan 2011 07:34:20 -0800 Received: by gwaa12 with SMTP id a12so210335gwa.32 for ; Wed, 26 Jan 2011 07:34:20 -0800 (PST) Received: by 10.236.109.179 with SMTP id s39mr2803947yhg.45.1296056059901; Wed, 26 Jan 2011 07:34:19 -0800 (PST) Received: from coign.google.com ([67.218.105.75]) by mx.google.com with ESMTPS id 46sm1198215yhl.12.2011.01.26.07.34.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 26 Jan 2011 07:34:19 -0800 (PST) From: Ian Lance Taylor To: Kyle Girard Cc: gcc-help@gcc.gnu.org Subject: Re: Building Relocatable gcc References: <1296055661.3050.2178.camel@Tak> Date: Wed, 26 Jan 2011 15:34:00 -0000 In-Reply-To: <1296055661.3050.2178.camel@Tak> (Kyle Girard's message of "Wed, 26 Jan 2011 10:27:41 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true 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: 2011-01/txt/msg00377.txt.bz2 Kyle Girard writes: > Can anyone point me to or show me a basic set of configure args that I > can use to compile a relocatable gcc toolchain on linux? I'm not cross > compiling or anything (host and target are both 32 linux) After reading > the docs I thought that I basically just had to use the options > --with-sysroot and --prefix with equal values for binutils and gcc and > everything should work however during the build of gcc it fails to find > headers. What am I missing? Do I need to somehow create a cross > compiler from 32bit linux to 32bit linux? Any help is appreciated. What do you mean by relocatable? If you use just the --prefix=DIR option, and run "make" and "make install", then you can move the directory DIR wherever you like and everything should continue to work. Ian