Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2001 08:04:33 -0500
From:      Michael Lucas <mwlucas@blackhelicopters.org>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        cjclark@alum.mit.edu, Larry Rosenman <ler@lerctr.org>, freebsd-stable@FreeBSD.ORG
Subject:   Re: Cleaning /usr/obj
Message-ID:  <20011107080433.A942@blackhelicopters.org>
In-Reply-To: <20011106165053.A7262@kayak.xcllnt.net>; from marcel@xcllnt.net on Tue, Nov 06, 2001 at 04:50:53PM -0800
References:  <200111060218.fA62ILs61502@freefall.freebsd.org> <20011105215308.A11461@lerami.lerctr.org> <20011105195947.A2591@dhcp01.pn.xcllnt.net> <20011106014026.A23162@lerami.lerctr.org> <20011106014651.D2494@blossom.cjclark.org> <20011106051432.A3878@lerami.lerctr.org> <20011106122327.A6685@kayak.xcllnt.net> <20011106130859.B386@blossom.cjclark.org> <20011106165053.A7262@kayak.xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 06, 2001 at 04:50:53PM -0800, Marcel Moolenaar wrote:
> > The Handbook has long said,
> > 
> >   19.4.5 Remove /usr/obj
> > 
> >   [snip]
> > 
> >   You can speed up the ``make world'' process, and possibly save
> >   yourself some dependency headaches by removing this directory as 
> >   well.
> 
> The documentation is stale for a long time :-)

I just submitted a PR doc/31803 to add "what happens if I have
problems?" that includes explicitly blowing away /usr/obj and doing
make cleandir twice.  It's been discussed on -doc and updated a few
times to answer people's objections.  Here's the latest:

*** en_US.ISO8859-1/books/handbook/cutting-edge/chapter.sgml-dist	Tue Nov  6 12:36:21 2001
--- en_US.ISO8859-1/books/handbook/cutting-edge/chapter.sgml	Wed Nov  7 07:28:14 2001
***************
*** 1580,1585 ****
--- 1580,1614 ----
  	    </itemizedlist>
  	  </answer>
  	</qandaentry>
+ 
+         <qandaentry>
+           <question>
+             <para>What do I do if something goes wrong?</para>
+           </question>
+ 
+           <answer>
+             <para>Make absolutely sure your environment has no
+               extraneous cruft from earlier builds.  This is simple
+               enough.</para>
+ 
+             <screen>&prompt.root; <userinput>chflags -R noschg /usr/obj/usr</userinput>
+ &prompt.root; <userinput>rm -rf /usr/obj/usr</userinput>
+ &prompt.root; <userinput>cd /usr/src</userinput>
+ &prompt.root; <userinput>make cleandir</userinput>
+ &prompt.root; <userinput>make cleandir</userinput></screen>
+ 
+             <para>Yes, <command>make cleandir</command> really should
+               be run twice.</para>
+ 
+             <para>Then restart the whole process, starting
+               with<command>make buildworld</command>.</para>
+ 
+             <para>If you still have problems, send the error and the
+               output of <command>uname -a</command>to &a.questions;.
+               Be prepared to answer other questions about your
+               setup!</para>
+           </answer>
+         </qandaentry>
        </qandaset>
      </sect2>
    </sect1>


==ml

-- 
Michael Lucas
mwlucas@blackhelicopters.org
http://www.blackhelicopters.org/~mwlucas/
Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011107080433.A942>