From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20808 invoked by alias); 23 Jun 2003 03:06:32 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 18232 invoked from network); 23 Jun 2003 02:53:18 -0000 Received: from unknown (HELO sccrmhc13.attbi.com) (204.127.202.64) by sources.redhat.com with SMTP; 23 Jun 2003 02:53:18 -0000 Received: from kegel.com (c-24-126-73-164.we.client2.attbi.com[24.126.73.164](untrusted sender)) by attbi.com (sccrmhc13) with SMTP id <20030623025316016009shi9e>; Mon, 23 Jun 2003 02:53:17 +0000 Message-ID: <3EF66E11.3080509@kegel.com> Date: Mon, 23 Jun 2003 12:20:00 -0000 From: Dan Kegel User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030529 X-Accept-Language: de-de, en MIME-Version: 1.0 To: Peter Barada CC: drow@mvista.com, zack@codesourcery.com, pinskia@physics.uc.edu, wilson@tuliptree.org, gcc@gcc.gnu.org Subject: Re: cross-compilation documentation References: <02F74B2F-A4D6-11D7-AD8C-000393A6D2F2@physics.uc.edu> <878yruf1pl.fsf@egil.codesourcery.com> <3EF5FACA.9020400@kegel.com> <87znkadj94.fsf@egil.codesourcery.com> <20030622193607.98A4D98DFD@baradas.org> <20030622194204.GA7163@nevyn.them.org> <20030623024805.6D3E998DFD@baradas.org> In-Reply-To: <20030623024805.6D3E998DFD@baradas.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-06/txt/msg01901.txt.bz2 Peter Barada wrote: > I've had ssucess building a toolchain vor ppc-linux by building *two* > bootstrap compilers and *two* glibcs: > > 1) first bootstrap compiler that has *no* libgcc which is used for the: > 2) first glibc configurd/built only to install-headers > 3) second bootstrap compiler can now be built(and build ligbcc) since the > headers are in place > 4) second glibc that is fully built using the second bootstrap > compiler > 5) full gcc with c++ using the second bootstrap compiler. > > Is there a more efficient method that *doesn't* require building two > bootstrap compilers or effectively building glibc twice? Well, sure! My script at http://kegel.com/crosstool does this: 1) configure glibc and do 'make install-headers'; a wee bit of hackery circumvents its urge to build everything 2) build and install bootstrap compiler 3) build and install real glibc 4) build and install real gcc My step #1 isn't pretty, but it only takes a couple minutes, and I'm sure it's faster than what you described. I thought you knew about that already... - Dan -- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045