From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28602 invoked by alias); 28 Jun 2002 09:21:27 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 28593 invoked from network); 28 Jun 2002 09:21:24 -0000 Received: from unknown (HELO anchor-post-35.mail.demon.net) (194.217.242.85) by sources.redhat.com with SMTP; 28 Jun 2002 09:21:24 -0000 Received: from mailgate.softwire.co.uk ([62.49.203.138] helo=polarbear) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 17NrwR-00026b-0U; Fri, 28 Jun 2002 10:21:23 +0100 From: "Rupert Wood" To: Cc: Subject: RE: How to build cross compiler Date: Fri, 28 Jun 2002 02:21:00 -0000 Message-ID: <616BE6A276E3714788D2AC35C40CD18D561703@whale.softwire.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <616BE6A276E3714788D2AC35C40CD18D6BF9BB@whale.softwire.co.uk> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2002-06/txt/msg00245.txt.bz2 Samant wrote: > I want to build a cross compiler which runs on Red Hat 6.2 -- intel > and generates executables which are run on target Red Hat 6.2 -- > powerpc. > > Please suggest me some documents for this... FAQs ? FAQ and CrossGCC mailing list archives: http://crossgcc.billgatliff.com/ http://sources.redhat.com/ml/crossgcc/ > I think, i need to build : 0) Binutils with --target=powerpc-linux. You may combine this with step 1 by creating a merged source tree, e.g. as described http://gcc.gnu.org/simtest-howto.html If built separately then you need to install these before you continue. They should be built with the same --prefix that you're going to build/install GCC to. > 1) Gcc with --target=powerpc-linux > 2) Glibc with gcc obtained in step 1. or if you have access to powerpc-linux system headers and libraries (and you're willing to use them rather than rebuilding glibc - probably a good idea if you have an existing system in mind) then you can copy these to /powerpc-linux/sys-include and /powerpc-linux/lib and skip these two steps. This will be described in the CrossGCC FAQ. > 3) Gcc with Glibc obtained in step 2 Good luck, Rup.