Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2001 09:35:12 -0500
From:      Mike Meyer <mwm@mired.org>
To:        Michael Radzewitz <michael.radzewitz@freenet-ag.de>
Cc:        questions@freebsd.org
Subject:   RE: mymail - problems with buidlkernel
Message-ID:  <15143.31264.795663.259182@guru.mired.org>
In-Reply-To: <69918849@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Radzewitz <michael.radzewitz@freenet-ag.de> types:
> Why I can't update only the sys-src tree and then build
> a new kernel. When I first installed FreeBSD I 
> did the same with the sources from CD.  

The kernel - indeed, all of the sources - depend on the compiler and
other tools being up to date. That means those tools need to be built
from the same source tree as the sources you're trying to build.  When
you used the CD, the system you installed was built from the source on
the CD. So the tools were up to date to build that kernel.

If you want to build a kernel using updates sources, you have to use
tools built from the rest of the sources in the source tree as
well. That's what buildkernel does - builds usings tools built from
those sources. For buildkernel to work properly, you need to do a
"make buildworld" first to build the tools that buildkernel needs. If
you don't, the kernel build is prone to strange failures.

Finally, and for completeness, running a kernel built from sources
different from the ones used for the rest of the world is
unsupported. After you build and install the kernel, you need to
install the world you built before you built the kernel. You do that
with "make installworld".

It's all documented in the handbook, and in /usr/src/UPDATING.

> Now I'am downloading all the sources which I don't 
> really need (/src/games ...)

You don't really need games. I haven't tried sorting out what is and
isn't required. I just track src-all, and then set knobs for what
should and shouldn't be built in /etc/make.conf.

	<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?15143.31264.795663.259182>