From owner-freebsd-ppc@FreeBSD.ORG Tue Mar 8 05:37:25 2005 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 4721016A4CE for ; Tue, 8 Mar 2005 05:37:25 +0000 (GMT) Received: from gizmo09bw.bigpond.com (gizmo09bw.bigpond.com [144.140.70.19]) by mx1.FreeBSD.org (Postfix) with SMTP id 59AE943D72 for ; Tue, 8 Mar 2005 05:37:24 +0000 (GMT) (envelope-from diskiller@diskiller.net) Received: (qmail 12964 invoked from network); 8 Mar 2005 05:37:22 -0000 Received: from unknown (HELO bwmam11.bigpond.com) (144.135.24.100) by gizmo09bw.bigpond.com with SMTP; 8 Mar 2005 05:37:22 -0000 Received: from cpe-144-136-208-195.sa.bigpond.net.au ([144.136.208.195]) by bwmam11.bigpond.com(MAM REL_3_4_2a 174/13678610) with SMTP id 13678610; Tue, 08 Mar 2005 15:37:22 +1000 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Tue, 08 Mar 2005 16:07:22 +1030 From: Martin Minkus To: Peter Grehan Message-ID: In-Reply-To: <422D1349.2000200@freebsd.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit cc: powerpc@freebsd.org Subject: Re: cross compile libc 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: Tue, 08 Mar 2005 05:37:25 -0000 On 8/3/05 1:21 PM, "Peter Grehan" wrote: >> hi someone could help me cross compile libc from /usr/src ?? >> I mus download the source from CURRENT ?? > > Yes. > >> someone could help me to create a toolchain and cross compilate freebsd >> to powerPC ??? > > Once you've downloaded the source, then apply the diff at: > > http://people.freebsd.org/~grehan/sysv4.h.diff > > and then: > > # make TARGET_ARCH=powerpc buildworld Cool. Didn't know cross building was that easy! My iMac could never buildworld (it would always panic) so my Dual Proc Server is building world now. Its FAST with Ultra SCSI and heaps of ram ;) I didn't like the idea of waiting 3 days for the imac to build world over nfs anyway... But it seems I cannot build a kernel this way? (works fine on the imac over nfs, and doesn't take too long so I might keep doing it that way...) diablo:/usr/src# make -j 4 TARGET_ARCH=powerpc KERNCONF=IDUMP buildkernel -------------------------------------------------------------- >>> Kernel build for IDUMP started on Tue Mar 8 16:04:51 CST 2005 -------------------------------------------------------------- ===> IDUMP mkdir -p /usr/obj/powerpc/junk/current/src/sys -------------------------------------------------------------- >>> stage 1: configuring the kernel -------------------------------------------------------------- cd /junk/current/src/sys/powerpc/conf; PATH=/usr/obj/powerpc/junk/current/src/tmp/legacy/usr/sbin:/usr/obj/powerpc/ junk/current/src/tmp/legacy/usr/bin:/usr/obj/powerpc/junk/current/src/tmp/le gacy/usr/games:/usr/obj/powerpc/junk/current/src/tmp/usr/sbin:/usr/obj/power pc/junk/current/src/tmp/usr/bin:/usr/obj/powerpc/junk/current/src/tmp/usr/ga mes:/sbin:/bin:/usr/sbin:/usr/bin config -d /usr/obj/powerpc/junk/current/src/sys/IDUMP /junk/current/src/sys/powerpc/conf/IDUMP ERROR: version of config(8) does not match kernel! config version = 500013, version required = 600001 Make sure that /usr/src/usr.sbin/config is in sync with your /usr/src/sys and install a new config binary before trying this again. If running the new config fails check your config file against the GENERIC or LINT config files for changes in config syntax, or option/device naming conventions *** Error code 1 1 error *** Error code 2 1 error diablo:/usr/src# Thanks, Martin.