From owner-freebsd-questions@FreeBSD.ORG Mon Sep 21 02:01:35 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 96E141065670 for ; Mon, 21 Sep 2009 02:01:35 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id 0EB108FC13 for ; Mon, 21 Sep 2009 02:01:34 +0000 (UTC) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 093F2EB52CE; Mon, 21 Sep 2009 05:01:33 +0300 (EEST) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id DD6A8451B0; Mon, 21 Sep 2009 05:01:33 +0300 (EEST) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id whM2OPXfcQ61; Mon, 21 Sep 2009 05:01:33 +0300 (EEST) Received: from kobe.laptop (adsl71-241.kln.forthnet.gr [77.49.118.241]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 993A345197; Mon, 21 Sep 2009 05:01:33 +0300 (EEST) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n8L21WUo063367 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 21 Sep 2009 05:01:32 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n8L21UgD063366; Mon, 21 Sep 2009 05:01:31 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Mel Flynn References: <200909201115.15669.mrkvrg@acm.org> <87bpl5fgt9.fsf@kobe.laptop> <200909210346.13204.mel.flynn+fbsd.questions@mailing.thruhere.net> Date: Mon, 21 Sep 2009 05:01:30 +0300 In-Reply-To: <200909210346.13204.mel.flynn+fbsd.questions@mailing.thruhere.net> (Mel Flynn's message of "Mon, 21 Sep 2009 03:46:13 +0200") Message-ID: <874oqxqcn9.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christer Solskogen , freebsd-questions@freebsd.org 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 02:01:35 -0000 On Mon, 21 Sep 2009 03:46:13 +0200, Mel Flynn wrote: > 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. That's a good point. Thanks. I'll remember it the next time I suggest that someone wipes their entire `/usr/obj' tree :)