From owner-freebsd-questions@FreeBSD.ORG Mon Sep 21 01:46:16 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 478EF1065672 for ; Mon, 21 Sep 2009 01:46:16 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 1780D8FC14 for ; Mon, 21 Sep 2009 01:46:15 +0000 (UTC) Received: from smoochies.rachie.is-a-geek.net (mailhub.lan.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 0A52F7E818; Sun, 20 Sep 2009 17:46:28 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Mon, 21 Sep 2009 03:46:13 +0200 User-Agent: KMail/1.12.1 (FreeBSD/8.0-RC1; KDE/4.3.1; i386; ; ) References: <200909201115.15669.mrkvrg@acm.org> <87bpl5fgt9.fsf@kobe.laptop> In-Reply-To: <87bpl5fgt9.fsf@kobe.laptop> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200909210346.13204.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Giorgos Keramidas , Christer Solskogen Subject: Re: Not able to compile GENERIC kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2009 01:46:16 -0000 On Sunday 20 September 2009 23:26:58 Giorgos Keramidas wrote: > On Sun, 20 Sep 2009 21:10:00 +0200, Christer Solskogen wrote: > > Giorgos Keramidas wrote: > >> # rm -fr /usr/obj/usr > >> # cd /usr/src > >> # make cleandir ; make cleandir > > > > I've seen serveral placeses that "make cleandir" should be run twice. I > > dont understand why. Could somebody explain? > > The first run cleans file sunder $(MAKEOBJDIRPREFIX), or under > `/usr/obj' if MAKEOBJDIRPREFIX is unset. > > The second run cleans files in the source tree itself. Which you'll see if you don't use the designated build{world|kernel} targets, but cd into a directory and start typing make or....quite the pitfall, run make obj depend, rather then make obj && make depend. In the first case, the .depend file ends up in .CURDIR, not .OBJDIR. Also, perhaps it's better to advise make cleanworld for the rm -rf, as this target accomplishes the same, deals better with chflags(2) and leaves /usr/obj/usr/ports in tact for those who have set WRKDIRPREFIX to /usr/obj for ports. -- Mel