From owner-freebsd-doc Thu Jan 18 0: 4:59 2001 Delivered-To: freebsd-doc@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id CE15D37B401; Thu, 18 Jan 2001 00:04:38 -0800 (PST) Received: by bazooka.unixfreak.org (Postfix, from userid 1000) id A00AB3E02; Thu, 18 Jan 2001 00:04:38 -0800 (PST) Received: from unixfreak.org (localhost [127.0.0.1]) by bazooka.unixfreak.org (Postfix) with ESMTP id 9E8BC3C10A; Thu, 18 Jan 2001 00:04:38 -0800 (PST) To: dan@langille.org Cc: Neil Blakey-Milner , freebsd-doc@freebsd.org, freebsd-questions@freebsd.org Subject: Re: too much confusion over kernel building In-Reply-To: Message from "Dan Langille" of "Thu, 18 Jan 2001 20:44:22 +1300." <200101180744.UAA14566@ducky.nz.freebsd.org> Date: Thu, 18 Jan 2001 00:04:33 -0800 From: Dima Dorfman Message-Id: <20010118080438.A00AB3E02@bazooka.unixfreak.org> Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > On 18 Jan 2001, at 9:40, Neil Blakey-Milner wrote: > > > On Thu 2001-01-18 (20:22), Dan Langille wrote: > > > It might be because it doesn't work. The following box works with the > > > "old" style, but fails with the "new" style: > > > > There'll probably be a 'nm' error somewhere above. I've asked people to > > comment, including Marcel, and haven't got any replies. > > > > The "new" style should be the same as the "old" style. If it's broken, > > fix the "new" style, don't suggest the "old" style. > > Either way suits me. But until it gets fixed, let's fix the manual so we > stop the confusion and save the helpers the repeating questions. [This reply is targeted towards everybody taking part of this thread, and does nto relate to this message in particular--I just picked one at random.] It does appear that indeed the buildkernel target is broken with regards to building a kernel from the same sources as the running one without a populated /usr/obj. I remember trying this in the past, and it worked. I can now see your rationale for this thread and the handbook patch, however, I agree with Neil that buildkernel should be fixed, not the handbook. The following patch sort of addresses the problem. I can get buildkernel to finish without errors. If you have time, please try it out. It is proof-of-concept (that buildkernel can be fixed) quality at best (in other words, don't run this on your mission-critical machines), but it does seem to work (actually, I had to test it on a slightly newer tree than what I have running, so YMMV). Regards Dima Dorfman dima@unixfreak.org Index: Makefile.inc1 =================================================================== RCS file: /st/src/FreeBSD/src/Makefile.inc1,v retrieving revision 1.141.2.18 diff -u -r1.141.2.18 Makefile.inc1 --- Makefile.inc1 2000/12/01 21:58:09 1.141.2.18 +++ Makefile.inc1 2001/01/18 07:58:42 @@ -165,10 +165,10 @@ # Common environment for world related stages CROSSENV= MAKEOBJDIRPREFIX=${OBJTREE} \ - COMPILER_PATH=${WORLDTMP}/usr/libexec:${WORLDTMP}/usr/bin \ - LIBRARY_PATH=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib \ - OBJFORMAT_PATH=${WORLDTMP}/usr/libexec \ - PERL5LIB=${WORLDTMP}/usr/libdata/perl/5.00503 + COMPILER_PATH=${WORLDTMP}/usr/libexec:${WORLDTMP}/usr/bin:/usr/libexec:/usr/bin \ + LIBRARY_PATH=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib:/usr/lib \ + OBJFORMAT_PATH=${WORLDTMP}/usr/libexec:/usr/libexec \ + PERL5LIB=${WORLDTMP}/usr/libdata/perl/5.00503:/usr/libdata/perl/5.00503 # bootstrap-tool stage BMAKEENV= ${BOOTSTRAPENV} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message