From owner-freebsd-current Wed Feb 6 19:32:43 2002 Delivered-To: freebsd-current@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id 6BDBD37B41B; Wed, 6 Feb 2002 19:32:40 -0800 (PST) Received: from peter3.wemm.org ([12.232.27.13]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020207033239.IMMW3578.rwcrmhc52.attbi.com@peter3.wemm.org>; Thu, 7 Feb 2002 03:32:39 +0000 Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id g173Wds83653; Wed, 6 Feb 2002 19:32:39 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 480313BAC; Wed, 6 Feb 2002 19:32:39 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Terry Lambert Cc: Julian Elischer , Mike Barcroft , Wilko Bulte , Alfred Perlstein , current@FreeBSD.ORG Subject: Re: Non 386 testers REALLY NEEDED In-Reply-To: <3C61EC5E.C3E6BF54@mindspring.com> Date: Wed, 06 Feb 2002 19:32:39 -0800 From: Peter Wemm Message-Id: <20020207033239.480313BAC@overcee.wemm.org> 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 Terry Lambert wrote: > Julian Elischer wrote: > > how about a port that uses the installed sources > > together with some uploaded parts to 'reconstitute' gcj as if it had been > > compiled wit the rest of the system. > > FreeBSD does a fairly evil thing: it takes the compiler > source code post-config instead of pre-config. > > It's really an incredibly bad idea to import *after* a > config instead of before. Terry, you have no f*cking idea what we do. The last time this happened was with gcc-2.6.1 / 2.6.3 about 8 years ago. We do not import after a configure. We import direct from the distributed tarballs. The following files: src/gnu/usr.bin/cc/cc_tools/auto-host.h src/gnu/usr.bin/cc/cc_tools/freebsd-native.h .. are vaguely based on stuff that configure generated and are hand tweaked to deal with the *freebsd* environment (eg: whether printf supports %p etc), rather than compiler configuration. The compiler and language configuration is done at runtime in the bmake files. eg: config.h hconfig.h: echo '#include "auto-host.h"' > ${.TARGET} echo '#include "gansidecl.h"' >> ${.TARGET} echo '#include "${GCC_ARCH}/xm-${GCC_ARCH}.h"' >> ${.TARGET} echo '#include "hwint.h"' >> ${.TARGET} .. tm.h: echo '#include "${GCC_ARCH}/${GCC_ARCH}.h"' > ${.TARGET} .if ${GCC_ARCH} == "i386" echo '#include "${GCC_ARCH}/att.h"' >> ${.TARGET} .endif echo '#include ' >> ${.TARGET} echo '#include "dbxelf.h"' >> ${.TARGET} .if exists(${GCCDIR}/config/${GCC_ARCH}/elf.h) echo '#include "${GCC_ARCH}/elf.h"' >> ${.TARGET} .endif echo '#include "${GCC_ARCH}/freebsd.h"' >> ${.TARGET} .if ${GCC_ARCH} == "i386" echo '#include "${GCC_ARCH}/perform.h"' >> ${.TARGET} .endif echo '#include ' >> ${.TARGET} About 8 years ago, this stuff was imported as generated by configure. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message