Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2003 22:28:29 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Darren <caffeine@directvinternet.com>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: kernel won't compile
Message-ID:  <20030109202829.GB2021@gothmog.gr>
In-Reply-To: <05fc01c2b804$b2b9dba0$6601a8c0@crotchett.com>
References:  <05fc01c2b804$b2b9dba0$6601a8c0@crotchett.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-01-09 11:29, Darren <caffeine@directvinternet.com> wrote:
> 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".

Don't use the "config .. make depend" method.

The buildkernel method should work fine, but you need to follow the
instructions of UPDATING very carefully.  For instance, did you
successfully finish running "make buildworld" *before* trying to run
"make buildkernel" ?

> <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 is most likely a result of running with kern.securelevel set too
high.  Try lowering your securelevel before running the installation
of kernel (make installkernel).

- Giorgos


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?20030109202829.GB2021>