From owner-freebsd-current Sun Jul 8 0:44:44 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 1A75637B406; Sun, 8 Jul 2001 00:44:41 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id RAA16738; Sun, 8 Jul 2001 17:44:32 +1000 Date: Sun, 8 Jul 2001 17:42:28 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Dag-Erling Smorgrav Cc: obrien@FreeBSD.ORG, Kris Kennaway , John Baldwin , freebsd-current@FreeBSD.ORG, Jim.Pirzyk@disney.com, mjacob@feral.com, Jordan Hubbard Subject: Re: chgrp broken on alpha systems In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 8 Jul 2001, Dag-Erling Smorgrav wrote: > "David O'Brien" writes: > > OR build a 64-bit long (LP64) x86 gcc and test compile with that also. > > BDE found *lots* of 64-bit dirty code using this technique. > > Mind revealing how that's done? Compiling [g]cc with -DLONG_TYPE_SIZE=64 gives an I32L64P32 compiler (you can also try setting CHAR_TYPE_SIZE through LONG_DOUBLE_TYPE_SIZE to unusual values to get a more exotic compiler). Then fix some build issues (mainly with quad functions in libc; I just hack around these by copying the 3 relevant 32-bit quad objects to the libc obj directory), and fix all the unportable code (I fixed enough to bootstrap but haven't committed everything. I build the world on a normal 32-bit i386 using something like: CC='cc -D_LARGE_LONG' \ DESTDIR=/c/z/root \ LONG_TYPE_SIZE=64 \ MAKEOBJDIRPREFIX=/c/z/obj \ time -l make -s world > /tmp/world.out 2>&1 (-D_LARGE_LONG is a wrong hack. It affects , but should only be affected for the target.). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message