From owner-freebsd-stable Mon Nov 5 22:19:19 2001 Delivered-To: freebsd-stable@freebsd.org Received: from snipe.prod.itd.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id 6070637B417 for ; Mon, 5 Nov 2001 22:19:14 -0800 (PST) Received: from dialup-209.245.143.201.dial1.sanjose1.level3.net ([209.245.143.201] helo=blossom.cjclark.org) by snipe.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 160zZo-0004R2-00; Mon, 05 Nov 2001 22:19:13 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id fA66IlE02325; Mon, 5 Nov 2001 22:18:47 -0800 (PST) (envelope-from cjc) Date: Mon, 5 Nov 2001 22:18:46 -0800 From: "Crist J. Clark" To: Tony Maher Cc: stable@FreeBSD.ORG Subject: Re: make buildkernel dies... Message-ID: <20011105221846.H745@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20011105202604.F745@blossom.cjclark.org> <200111060453.fA64r1L43689@dt.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111060453.fA64r1L43689@dt.home>; from tonym@biolateral.com.au on Tue, Nov 06, 2001 at 03:53:01PM +1100 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Nov 06, 2001 at 03:53:01PM +1100, Tony Maher wrote: > > > I get the same problem. I did > > > mv /usr/obj/usr/src/sys/ /usr/obj/usr/src/sys/.old > > > and rebuilt. Now make kernel works fine. > > > > Always, > > > > # rm -rf /usr/obj/usr > > > > Before you build(world|kernel) after updating source code. > > rm -rf /usr/obj/usr can be useful if there are problems but I think always > is a bit strong. > If it was an absolute requirement then shouldn't the make process do this > by default? (and have a flag not to do it for those who really know what they > are doing) It's not an absolute requirement. Just like keeping world and kernel in sync, it's really only an issue if you have updated your source code. > The handbook notes (refering to rm /usr/obj): > > "You can speed up the ``make world'' process, and possibly save yourself > some dependency headaches by removing this directory as well." The original problem was such a dependency headache. > But it does not read as an absolute requirement. Definately not. > Should the handbook be changed? And maybe note this requirement in > /usr/src/UPDATING? Perhaps the handbook should be a little more clear about dependency problems. Maybe a section on what to do with buildworld problems: # rm -rf /usr/obj/usr # cd /usr/src; make cleandir && make cleandir # make buildworld And if it fails again, _then_ mail -stable or -questions. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message