Broken buildkernel (cvsup from this morning)
David O'Brien
obrien at FreeBSD.ORG
Fri Sep 9 08:49:02 PDT 2005
On Fri, Sep 09, 2005 at 07:46:53AM -0500, Eric Anderson wrote:
> cvsup from about 10 minutes ago, buildkernel yields:
> [..snip..]
> /usr/src/sys/kern/kern_tc.c:74: warning: redundant redeclaration of 'th0'
> /usr/src/sys/kern/kern_tc.c:64: warning: previous declaration of 'th0'
> was here
> *** Error code 1
>From /usr/src/UPDATING:
To just build a kernel when you know that it won't mess you up
--------------------------------------------------------------
This assumes you are already running a 5.X system. Replace
${arch} with the architecture of your machine (e.g. "i386",
"alpha", "amd64", "ia64", "pc98", "sparc64", etc).
cd src/sys/${arch}/conf
config KERNEL_NAME_HERE
cd ../compile/KERNEL_NAME_HERE
make depend
make
make install
If this fails, go to the "To build a kernel" section.
This failed for you. So you should use the procedure below which says
"with a fresh buildworld".
To build a kernel
-----------------
If you are updating from a prior version of FreeBSD (even one just
a few days old), you should follow this procedure. With a
/usr/obj tree with a fresh buildworld,
make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
Note you can shorten this to make -DALWAYS_CHECK_MAKE kernel
KERNCONF=YOUR_KERNEL_HERE
More information about the freebsd-current
mailing list