Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2001 23:48:20 -0600
From:      Mike Meyer <mwm@mired.org>
To:        "Jeremiah Gowdy" <jgowdy@home.com>
Cc:        questions@freebsd.org, oscars@mail.utexas.edu
Subject:   Re: Failure on compile of new kernel in 4.2-RELEASE
Message-ID:  <15013.52132.717979.427346@guru.mired.org>
In-Reply-To: <51310456@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeremiah Gowdy <jgowdy@home.com> types:
> > >Typical message from doing a buildkernel with out doing a buildworld
> > >first. Buildkernel depends on /usr/obj being populated by the
> > >buildworld.
> > If I did a fresh install, would /usr/obj be populated with anything?  I
> > want to keep the system at 4.2-RELEASE and don't think I need to do a
> 'make
> > buildworld' before recompiling the kernel.  Also, why does the failure
> > appear to be in building the components of 'wi'?  In the other question,
> > the failure also seemed to occur in 'wi'.
> >
> > Any help would be appreciated.
> 
> As he said
>         "Buildkernel depends on /usr/obj being populated by the buildworld"
> which disagrees with your statement

That was true for 4.2-RELEASE, but has since been fixed. On stable,
"make buildkernel" will use the installed world if /usr/obj isn't
populated. If the installed world and the kernel are out of sync and
/usr/obj isn't populated, that won't work any better than doing the
config/make depend/make sequence.

>         "[I] don't think I need to do a 'make buildworld' before recompiling
> the kernel"

If the kernel sources and the installed system are out of sync, you
should do "make buildworld" to make sure the kernel build has tool
versions that are up to date. You should also do "make buildkernel" in
that case, and not config/make depend/make.

> If you don't want STABLE (god knows why not though), you can simply
> buildworld, buildkernel, installkernel, without installworld, but honestly,
> why aren't you going to STABLE ?  RELEASE is 4 months old.  Think of all the
> commits between November and March.

You can do this, but you're liable to find that not everything works
properly. Most notable are things like top and ps, but other things
might also break. Updating just the kernel - or just the world - is
not supported, and not recommended.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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