From owner-freebsd-ppc@FreeBSD.ORG Wed Dec 3 03:06:20 2003 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37EE616A4CE for ; Wed, 3 Dec 2003 03:06:20 -0800 (PST) Received: from liberty.onthenet.com.au (liberty.OntheNet.com.au [203.22.124.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3A3F43FCB for ; Wed, 3 Dec 2003 03:06:15 -0800 (PST) (envelope-from peterg@ptree32.com.au) Received: from ptree32.com.au (CPE-30-38.dsl.onthenet.net [203.144.30.38]) hB3B6BZG027681; Wed, 3 Dec 2003 21:06:11 +1000 (EST) (envelope-from peterg@ptree32.com.au) Message-ID: <3FCDC3A1.4040107@ptree32.com.au> Date: Wed, 03 Dec 2003 21:06:09 +1000 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030524 X-Accept-Language: en-us, en MIME-Version: 1.0 To: matt@niblet.co.uk References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-ppc@freebsd.org Subject: Re: cross compile? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2003 11:06:20 -0000 Hi Matt, > Because i386-unknown-freebsd5.1 doesn't generate ppc code? :) > > We at first need a cross-compiler to cross-compile :) I might not have been clear enough earlier: the FreeBSD buildworld process builds the cross-compiler itself as the first step of the build, setting up the appropriate 'clean' environment so it pulls in correct libs/headers/etc. Rolling your own can kind-of work for just the kernel (I did that for a while), but you're much better off using the sanctioned way. It's a lot less drama. Is that what you wanted to do, buildworld ? Or something more exotic that does require a cross-compiler ? later, Peter.