From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25450 invoked by alias); 28 Jan 2008 22:38:54 -0000 Received: (qmail 25257 invoked by uid 22791); 28 Jan 2008 22:38:53 -0000 X-Spam-Check-By: sourceware.org Received: from gatekeeper.tait.co.nz (HELO gatekeeper.tait.co.nz) (202.37.96.11) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 Jan 2008 22:38:35 +0000 Received: from gatekeeper.tait.co.nz (localhost.localdomain [127.0.0.1]) by localhost.tait.co.nz (Postfix) with ESMTP id 3E35C4675C for ; Tue, 29 Jan 2008 11:38:32 +1300 (NZDT) Received: from sunstrike.tait.co.nz (sunstrike [172.25.40.92])by gatekeeper.tait.co.nz (Postfix) with ESMTP id 2328B46752for ; Tue, 29 Jan 2008 11:38:31 +1300 (NZDT) Received: from conversion-daemon.sunstrike.tait.co.nz by sunstrike.tait.co.nz(Sun Java System Messaging Server 6.1 (built Apr 28 2004))id <0JVD00001IRKFO00@sunstrike.tait.co.nz>(original mail from john.carter@tait.co.nz) for gcc-help@gcc.gnu.org; Tue,29 Jan 2008 11:38:31 +1300 (NZDT) Received: from parore.tait.co.nz ([172.25.140.12])by sunstrike.tait.co.nz (Sun Java System Messaging Server 6.1 (built Apr 282004)) with ESMTP id <0JVD00LATLK7NF60@sunstrike.tait.co.nz>; Tue,29 Jan 2008 11:38:31 +1300 (NZDT) Received: from localhost ([127.0.0.1]) by parore.tait.co.nz with esmtp(Exim 4.67) (envelope-from ) id 1JJccZ-00029n-0j; Tue,29 Jan 2008 11:38:31 +1300 Date: Tue, 29 Jan 2008 04:32:00 -0000 From: John Carter Subject: Re: Building a cross-compiler In-reply-to: <479E4EEA.9050101@ieee.org> To: "Wenton L. Davis" Cc: gcc-help@gcc.gnu.org Message-id: MIME-version: 1.0 X-Mailer: Pidgeon Post Content-type: TEXT/PLAIN; format=flowed; charset=US-ASCII Content-transfer-encoding: 7BIT X-Apparently-From: mars X-Contents: May contain traces of nuts. References: <479E4EEA.9050101@ieee.org> X-imss-version: 2.049 X-imss-result: Passed X-imss-approveListMatch: *@tait.co.nz 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: 2008-01/txt/msg00301.txt.bz2 On Mon, 28 Jan 2008, Wenton L. Davis wrote: > I am finally going to admit defeat and come ask for help on this. I am > trying to build a cross-compiler to run on an x86 machine for several > targets: ARM, MIPS, AVR, and m681x. I would like a single compiler to handle > those 4 architectures in addition to the x86, eventually. However, for now, > I am just trying to get the individual targets able to compile. It's a _very_ dark art.... Some hints:... There is a nasty tangly dependency between binutils, libc and the compiler. Last time I did it, I found I had to have the binutils --prefix directory the same --prefix as the compiler. You then need to have the target libc in the appropriate level of the gcc src tree. Your error messages suggest to me you either don't have a libc build, or have it at the wrong level. I found I couldn't build it "out the box" for the variants I was building for, I had to find and apply some patches. (Not too surprising, given the combinatorial explosion of host os X host CPU X target os X target CPU X libc implementation X libc version X binutils version, they simply can't test everything.) Good Luck! I can email you my scripts for building things, can't guarantee they'll work for you though! Being in Ruby, I find them easy to read / maintain than the cross gcc shell script project. John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : john.carter@tait.co.nz New Zealand