From owner-freebsd-ppc@FreeBSD.ORG Wed Dec 3 02:32:33 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 7183516A4CE; Wed, 3 Dec 2003 02:32:33 -0800 (PST) Received: from risky.niblet.co.uk (risky.niblet.co.uk [80.177.236.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F37B43FAF; Wed, 3 Dec 2003 02:32:31 -0800 (PST) (envelope-from matt@kittycat.co.uk) Received: from sakura.niblet.co.uk ([192.168.0.3] helo=sakura) by risky.niblet.co.uk with esmtp (Exim 4.24; FreeBSD) id 1ARUN5-0005e9-Co; Wed, 03 Dec 2003 10:36:39 +0000 From: "Matt Sealey" To: "Peter Grehan" , Date: Wed, 3 Dec 2003 10:32:32 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <3FCD388F.1030708@freebsd.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal cc: freebsd-ppc@freebsd.org Subject: RE: cross compile? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: matt@niblet.co.uk 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 10:32:33 -0000 Okay, FreeBSD 5.1 compiles for PPC using a cross-compiler, I practically expected that. But how do we ./configure the recommended GCC for FreeBSD PPC? What's the "official" target name? -- Matt Sealey > -----Original Message----- > From: Peter Grehan [mailto:grehan@freebsd.org] > Sent: 03 December 2003 01:13 > To: matt@niblet.co.uk > Cc: David Leimbach; freebsd-ppc@freebsd.org > Subject: Re: cross compile? > > > > I have a FreeBSD 5.1 machine here anyway. Knocking up a PPC version > > on it for my Pegasos would be a sweet deal. > > You're all set - FreeBSD already cross-compiles: > > cd /usr/src > make -DNO_WERROR TARGET_ARCH=powerpc buildworld > make -DNO_WERROR TARGET_ARCH=powerpc buildkernel > > I've made two changes that might be required: > > RCS file: /usr/home/ncvs/src/lib/libc/powerpc/_fpmath.h,v > diff -u -r1.2 _fpmath.h > --- _fpmath.h 5 Apr 2003 22:10:13 -0000 1.2 > +++ _fpmath.h 18 Nov 2003 02:41:36 -0000 > @@ -29,14 +29,13 @@ > union IEEEl2bits { > long double e; > struct { > - unsigned int sign :1; > - unsigned int exp :15; > - unsigned long manh :48; > - unsigned long manl :64; > + unsigned int sign :1; > + unsigned int exp :15; > + unsigned long long manh :48; > + unsigned long long manl :64; > } bits; > }; > > -/* XXX does powerpc have a normalization bit? */ > #define mask_nbit_l(u) ((void)0) > #define LDBL_IMPLICIT_NBIT > > RCS file: /usr/home/ncvs/src/sys/conf/kern.mk,v > retrieving revision 1.37 > diff -u -r1.37 kern.mk > --- kern.mk 4 Nov 2003 23:29:17 -0000 1.37 > +++ kern.mk 18 Nov 2003 03:42:58 -0000 > @@ -68,6 +68,14 @@ > .endif > > # > +# For powerpc disable kernel floating point > +# > +.if ${MACHINE_ARCH} == "powerpc" > +CFLAGS+= -msoft-float > +INLINE_LIMIT?= 15000 > +.endif > + > +# > # GCC 3.0 and above like to do certain optimizations based on the > # assumption that the program is linked against libc. Stop this. > # > >