From owner-freebsd-questions Thu Jan 9 10:19:13 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 8FD5937B401 for ; Thu, 9 Jan 2003 10:19:11 -0800 (PST) Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id A805143F5F for ; Thu, 9 Jan 2003 10:19:09 -0800 (PST) (envelope-from toomas.aas@raad.tartu.ee) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id h09IJ0n03072; Thu, 9 Jan 2003 20:19:00 +0200 Message-Id: <200301091819.h09IJ0n03072@lv.raad.tartu.ee> Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 9 Jan 03 20:18:20 +0200 Received: from SpoolDir by INFO (Mercury 1.48); 9 Jan 03 20:18:09 +0200 From: "Toomas Aas" Organization: Tartu City Government To: "Darren" , questions@freebsd.org Date: Thu, 9 Jan 2003 20:18:02 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: kernel won't compile In-reply-to: <05fc01c2b804$b2b9dba0$6601a8c0@crotchett.com> 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 Hi! > 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. What did you download with cvsup? The system sources or the ports tree? > 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". If you indeed downloaded the system sources with cvsup, then just recompiling the kernel does you no good, since you'll be left with new kernel and old userland programs, which won't work together (at least not in usable way). You need to rebuild the entire OS, as described in the Handbook chapter 21 ("using make world"). Portupgrade has nothing to do with it. > > > >>> 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 This looks like the new kernel was actually compiled but installing it failed. If you haven't followed the "make world" procedure then the system has actually protected you from shooting yourself in the foot, because, as I said, running new kernel with old userland programs is no good. You need to build the new userland first -- Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ * RUNTIME ERROR 6D at 417A:32CF : Incompetent user To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message