I have successfully compiled a new kernel once already on a new install of
FreeBSD 4.7-RELEASE.  Since then, I have run cvsup and portupgrade.  Now, I
need to recompile the kernel again.  But, I'm running into errors.  I have
been following the handbook.  But, apparently, I'm missing something.  The
way I understand the manual, you use the first method of "config
CUSTOM_KERNEL" and if you have updated the kernel sources, you have to use
the second method of "make buildkernel KERNCONF=MYKERNEL".  I used the first
method before running cvsup and it worked.  I looked at /usr/src/UPDATING.
For recompiling, it basically looks like the second method in the FreeBSD
handbook.  So, I tried compiling both ways.  I tried deleting my CUSTOM
sources and copying GENERIC back to CUSTOM and starting over.  But, it still
craps out.

Could someone tell me what I'm doing wrong??


Here's a snip of the messages when I try it each way.

<Start Method 1>
fw# make depend
rm -f .newdep
make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | xargs  mkdep -a -f
.newdep -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototyp
es  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-exte
nsions -ansi  -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/i
pfilter  -D_KERNEL -include opt_global.h -elf  -mpreferred-stack-boundary=2
make -V SFILES -V SYSTEM_SFILES | xargs  env MKDEP_CPP="cc -E" mkdep -a -f
.newdep -x
assembler-with-cpp -DLOCORE -O -pipe  -Wall -Wredundant-decls -Wnested-exter
ns -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast
-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../inclu
de -I../../contrib/ipfilter  -D_KERNEL -include
pt_global.h -elf  -mpreferred-stack-boundary=2
rm -f .depend
mv -f .newdep .depend
cd ../../modules ; env
MAKEOBJDIRPREFIX=/usr/src/sys/compile/CUSTOM.01/modules MACHINE=i386 make
obj ;  env MAKEOBJDIRPREFIX=/usr/src/sys/compile/CUSTOM.01/modules
MACHINE=i386 make depend
===> accf_data
"/usr/share/mk/bsd.man.mk", line 53: bsd.man.mk cannot be included directly.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/src/sys/compile/CUSTOM.01.

<end Method 1>

<Start Method 2>

>>> Kernel build for CUSTOM.01 completed on Thu Jan  9 00:22:57 CST 2003
cd /usr/obj/usr/src/sys/CUSTOM.01;  MAKEOBJDIRPREFIX=/usr/obj
GROFF_TMAC_PATH=/usr/obj/usr/src/i386/usr/share/tmac make KERNEL=kernel
chflags noschg /kernel
chflags: /kernel: Operation not permitted
*** Error code 1 (ignored)
mv /kernel /kernel.old
mv: rename /kernel to /kernel.old: Operation not permitted
*** Error code 1

Stop in /usr/obj/usr/src/sys/CUSTOM.01.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

<end Method 2>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to