Subject: Re: port-amd64/31583: bootxx_cd9660 breaks amd64 build
To: None <gnats-bugs@netbsd.org>
From: Scott Ellis <scotte@intrepid.dnsalias.com>
List: netbsd-bugs
Date: 10/14/2005 13:29:52
On Fri, Oct 14, 2005 at 06:33:18PM +0000, Jeff Rizzo wrote:
>  
>  Have you tried cleaning out your old object directories?  I don't
>  encounter this problem when using ./build.sh with -M  ...

I actually have tried that...in fact, this bit me before, so I now build
using a quick script that does:

#!/bin/csh
cd /usr/src
echo "Cleaning..."
find . -name obj.amd64 -type d | xargs rm -rf
echo "Starting build..."
./build.sh -D /misc/netbsd_build/amd64/destdir -T /misc/netbsd_build/amd64/toold
ir -R /misc/netbsd_build/amd64/releasedir release >&foo.amd64
echo "Kernel INTREPID.AMD64"
./build.sh -D /misc/netbsd_build/amd64/destdir -T /misc/netbsd_build/amd64/toold
ir -R /misc/netbsd_build/amd64/releasedir kernel=INTREPID.AMD64 >&foo.amd64kerne
l
echo "Done!"

So, the obj.amd64 directories are explicitly removed before the build process.