Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2003 20:18:02 +0200
From:      "Toomas Aas" <toomas.aas@raad.tartu.ee>
To:        "Darren" <caffeine@directvinternet.com>, questions@freebsd.org
Subject:   Re: kernel won't compile
Message-ID:  <200301091819.h09IJ0n03072@lv.raad.tartu.ee>
In-Reply-To: <05fc01c2b804$b2b9dba0$6601a8c0@crotchett.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

> <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

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301091819.h09IJ0n03072>