usr.bin/lex/lib object files not being placed under MAKEOBJDIRPREFIX

Ruslan Ermilov ru at FreeBSD.org
Sat Nov 20 02:01:44 PST 2004


On Fri, Nov 19, 2004 at 05:21:34PM -0800, David O'Brien wrote:
> On Thu, Nov 18, 2004 at 10:13:56AM -0600, Conrad J. Sabatier wrote:
> > Noticed this during a cvs update today:
> > dolphin:root:/usr/src/usr.bin# cvs -R update
> > ? lex/lib/.depend
> > ? lex/lib/libln.a
> > ? lex/lib/libmain.o
> > ? lex/lib/libyywrap.o
> 
> How did you build your system?  At one time you maybe cd'ed into
> usr.bin/lex and just typed 'make' without 'make obj'?
> 
> The fix is to:
> 
>     rm -rf /usr/obj/*
>     cd /usr/src
>     make cleandir
>     make buildworld
>     cvs -q up
> 
> and you shouldn't see this again.
> 
Also may worth it finding any stray "obj" directories in
the src/ tree.

rm -rf /usr/obj/usr/src
cd /usr/src
find . -name obj -type d | xargs rm -rf
make cleandir
make cleandir

"make cleandir" is run twice because if there's an "obj"
symlink, the first cleandir will only remove the symlink
but won't clean any object files, if there are any.  A
faster alternative to the above is:

rm -rf /usr/obj/usr/src
cd /usr/src
find . -name obj | xargs rm -rfv
make cleandir


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20041120/ba1f3b77/attachment-0001.bin


More information about the freebsd-current mailing list