Subject: Re: Cross building NetBSD-current for sparc fails
To: None <port-sparc@NetBSD.org, current-users@NetBSD.org>
From: Matthias Scheler <tron@zhadum.org.uk>
List: current-users
Date: 07/16/2006 20:49:49
On Sun, Jul 16, 2006 at 11:16:22PM +0400, Valeriy E. Ushakov wrote:
> src/gnu/lib/libstdc++-v3_4/atomicity.cc - there's no such file in the
> tree, it should be in the objdir.  Guess you have leftovers from an
> obj-less i386 build lying in the src tree.

Indeed. That's because of a broken "cleandir" rule:

tron@colwyn:/src/NetBSD-current/src/gnu/lib/libstdc++-v3_4>ls -l
total 10
drwxrwxr-x   2 tron  krull   512 Jul 16 17:16 CVS
-rw-r--r--   1 tron  krull  3172 Jul 16 17:16 Makefile
drwxrwxr-x  20 tron  krull   512 Jul 16 17:04 arch
lrwxr-xr-x   1 tron  krull    78 Jun 28 11:24 atomicity.cc -> /src/NetBSD-current/src/gnu/dist/gcc4/libstdc++-v3/config/cpu/i386/atomicity.h
lrwxr-xr-x   1 tron  krull    80 Jun 28 11:24 basic_file.cc -> /src/NetBSD-current/src/gnu/dist/gcc4/libstdc++-v3/config/io/basic_file_stdio.cc
lrwxr-xr-x   1 tron  krull    84 Jun 28 11:24 c++locale.cc -> /src/NetBSD-current/src/gnu/dist/gcc4/libstdc++-v3/config/locale/generic/c_locale.cc
drwxrwxr-x   8 tron  krull   512 Jul 13 12:41 include

I've built in that directory using "build.sh -o". I do that most of the
time to make sure that "make cleandir" really cleans up everything.
Unfortunately CVS doesn't complain about stale symlinks.

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/