From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6636 invoked by alias); 24 Nov 2001 16:53:57 -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 6614 invoked from network); 24 Nov 2001 16:53:52 -0000 Received: from unknown (HELO mailrelay1.inwind.it) (212.141.54.101) by sourceware.cygnus.com with SMTP; 24 Nov 2001 16:53:52 -0000 Received: from quigonn.inwind.it (62.98.54.51) by mailrelay1.inwind.it (5.5.029) id 3BDECAC200540ADF; Sat, 24 Nov 2001 17:53:49 +0100 Message-Id: <5.1.0.14.0.20011124174135.00a3b210@popmail.inwind.it> X-Sender: fwyzard@popmail.inwind.it X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 16 Nov 2001 15:02:00 -0000 To: "Tamas Nagy" , From: Andrea 'Fyre Wyzard' Bocci Subject: Re: Cross-compiling In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-SW-Source: 2001-11/txt/msg00144.txt.bz2 At 17.18 24/11/01 (GMT +0100), Tamas Nagy wrote: >I'd like to try the cross-compiling option in GCC, which sounds very >impressive. The host platform would be x86, and the target platforms are >IBM AIX, and Sun Solaris. The source code is a simple ANSI-C code, >without any platform specific thing. > >Is there any documentation, how-to or even experience with such a >scenario? Two good places to look for imformation are: GCC installation help: http://gcc.gnu.org/install/ CrossGCC FAQ: http://www.objsw.com/CrossGCC/ Actually, the FAQ is a bit old - the build process is still the same, though you should use the latest version available of the packages. Here's what you'll need: newlib-1.9.0 binutils-2.11.2 gcc-3.02 You can get these from http://www.gnu.org and http://sources.redhat.com. I'd give a look to a recen post, also: http://gcc.gnu.org/ml/gcc-help/2001-11/msg00221.html. Actually, compiling for those UNIX systems, I don't know wether or not you need newlib. I think you should be fine with the system's libc, but then I don't know about telling your cross-compiler about those systems library headers. Somebody with more experience might give more help on this. >Is any Linux distribution contains packages or precompiled >binaries? I don't know of any precompiled binaries for gcc cross-compiler. HTH fwyzard