Date: Thu, 9 Jan 2003 11:29:42 -0600 From: "Darren" <caffeine@directvinternet.com> To: "fbsd-questions" <freebsd-questions@freebsd.org> Subject: kernel won't compile Message-ID: <05fc01c2b804$b2b9dba0$6601a8c0@crotchett.com>
next in thread | raw e-mail | index | archive | help
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?? Thanks, Darren 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 MACHINE_ARCH=i386 MACHINE=i386 OBJFORMAT_PATH=/usr/obj/usr/src/i386/usr/libexec PERL5LIB=/usr/obj/usr/src/i386/usr/libdata/perl/5.00503 GROFF_BIN_PATH=/usr/obj/usr/src/i386/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/i386/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/i386/usr/share/tmac make KERNEL=kernel install 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 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?05fc01c2b804$b2b9dba0$6601a8c0>