From owner-freebsd-questions Thu Jan 9 9:31:38 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BE1E37B401 for ; Thu, 9 Jan 2003 09:31:35 -0800 (PST) Received: from c007.snv.cp.net (h013.c007.snv.cp.net [209.228.33.241]) by mx1.FreeBSD.org (Postfix) with SMTP id 0A6B943E4A for ; Thu, 9 Jan 2003 09:31:35 -0800 (PST) (envelope-from caffeine@directvinternet.com) Received: (cpmta 4185 invoked from network); 9 Jan 2003 09:31:31 -0800 Received: from 65.187.59.153 (HELO winbox1) by smtp.directvinternet.com (209.228.33.241) with SMTP; 9 Jan 2003 09:31:31 -0800 X-Sent: 9 Jan 2003 17:31:31 GMT Message-ID: <05fc01c2b804$b2b9dba0$6601a8c0@crotchett.com> From: "Darren" To: "fbsd-questions" Subject: kernel won't compile Date: Thu, 9 Jan 2003 11:29:42 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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. 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. >>> 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message