From owner-freebsd-current@FreeBSD.ORG Fri Sep 9 15:49:02 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 664) id 6534016A420; Fri, 9 Sep 2005 15:49:02 +0000 (GMT) Date: Fri, 9 Sep 2005 15:49:02 +0000 From: David O'Brien To: Eric Anderson Message-ID: <20050909154902.GA74907@hub.freebsd.org> References: <4321843D.80400@centtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4321843D.80400@centtech.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.11-STABLE Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Cc: FreeBSD Current Subject: Re: Broken buildkernel (cvsup from this morning) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-current@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2005 15:49:02 -0000 On Fri, Sep 09, 2005 at 07:46:53AM -0500, Eric Anderson wrote: > cvsup from about 10 minutes ago, buildkernel yields: > [..snip..] > /usr/src/sys/kern/kern_tc.c:74: warning: redundant redeclaration of 'th0' > /usr/src/sys/kern/kern_tc.c:64: warning: previous declaration of 'th0' > was here > *** Error code 1 >From /usr/src/UPDATING: To just build a kernel when you know that it won't mess you up -------------------------------------------------------------- This assumes you are already running a 5.X system. Replace ${arch} with the architecture of your machine (e.g. "i386", "alpha", "amd64", "ia64", "pc98", "sparc64", etc). cd src/sys/${arch}/conf config KERNEL_NAME_HERE cd ../compile/KERNEL_NAME_HERE make depend make make install If this fails, go to the "To build a kernel" section. This failed for you. So you should use the procedure below which says "with a fresh buildworld". To build a kernel ----------------- If you are updating from a prior version of FreeBSD (even one just a few days old), you should follow this procedure. With a /usr/obj tree with a fresh buildworld, make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE Note you can shorten this to make -DALWAYS_CHECK_MAKE kernel KERNCONF=YOUR_KERNEL_HERE