Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2001 00:04:33 -0800
From:      Dima Dorfman <dima@unixfreak.org>
To:        dan@langille.org
Cc:        Neil Blakey-Milner <nbm@mithrandr.moria.org>, freebsd-doc@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: too much confusion over kernel building 
Message-ID:  <20010118080438.A00AB3E02@bazooka.unixfreak.org>
In-Reply-To: Message from "Dan Langille" <dan@langille.org>  of "Thu, 18 Jan 2001 20:44:22 %2B1300." <200101180744.UAA14566@ducky.nz.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010118080438.A00AB3E02>