From owner-freebsd-questions Tue Sep 23 17:15:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA15689 for questions-outgoing; Tue, 23 Sep 1997 17:15:50 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA15683 for ; Tue, 23 Sep 1997 17:15:46 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id JAA00261; Wed, 24 Sep 1997 09:45:35 +0930 (CST) Message-ID: <19970924094534.45070@lemis.com> Date: Wed, 24 Sep 1997 09:45:34 +0930 From: Greg Lehey To: David Marmor Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Kernel Compilation References: <3427FE1A.F760B166@z-axis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <3427FE1A.F760B166@z-axis.com>; from David Marmor on Tue, Sep 23, 1997 at 10:36:26AM -0700 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, Sep 23, 1997 at 10:36:26AM -0700, David Marmor wrote: > I installed FreeBSD 2.2.2 on a pentium 166 with 32 megs of ram. I have > two > IDE hard drives with FerrBSD on the second one. When I try to recompile > the kernel it stops at: > > loading kernel > rearranging symbols > text data bss dec hex > 856064 57344 75680 989088 f17a0 > chflags noschg /kernel > chflags: /kernel: no such file or directory > *** Error code 1 > > Stop. > > Do you know what I can do to get around this problem? Fix the Makefile :-) --- Makefile~ Thu Sep 18 10:33:31 1997 +++ Makefile Wed Sep 24 09:44:44 1997 @@ -368,7 +368,9 @@ echo "You must first build your kernel before trying to install." ; \ exit 1 ; \ fi - chflags noschg /kernel + if [ -f /kernel ]; then \ + chflags noschg /kernel; \ + fi mv /kernel /kernel.old if [ `/usr/sbin/sysctl -n kern.bootfile` = /kernel ] ; then \ /usr/sbin/sysctl -w kern.bootfile=/kernel.old ; \ Greg