Subject: bin/14278: behavior of USE_NEW_TOOLCHAIN lame w/ clean src/tools
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thorpej@shagadelic.org>
List: netbsd-bugs
Date: 10/17/2001 18:13:51
>Number:         14278
>Category:       bin
>Synopsis:       behavior of USE_NEW_TOOLCHAIN lame w/ clean src/tools
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 17 18:14:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jason R Thorpe
>Release:        NetBSD 1.5Y, Oct 17, 2001
>Organization:
Wasabi Systems, Inc.
>Environment:
	
System: NetBSD swinger.shagadelic.org 1.5Y NetBSD 1.5Y (SWINGER) #431: Thu Oct  4 17:27:05 PDT 2001     thorpej@swinger.shagadelic.org:/amd/yeah-baby/u1/netbsd/src/sys/arch/i386/compile/SWINGER i386
Architecture: i386
Machine: i386
>Description:
	Needing to build a cross-compiler from i386 to another arch,
	I was forced to do a "make clean" in src/tools in order to
	avoid clashes w/ existing objects in obj.i386 subdirectories.

	After doing the "make clean" in src/tools, a "make UPDATE=1 build"
	in src now fails with:

===> /usr/local/netbsd-tools/current/bin/binstall must be updated
===> (set MKTOOLS=yes in /etc/mk.conf or the environment to continue)
*** Error code 1

	However, the tools in $TOOLDIR *are* up-to-date.

>How-To-Repeat:
	cd /usr/src
	make MKTOOLS=1 build
	cd /usr/src/tools
	make cleandir
	cd /usr/src
	make UPDATE=1 build

>Fix:
	Not provided.  I suggest changing the "out-of-date" check to
	actually check the installed tools in $TOOLDIR, rather than
	in the obj dirs in the build tree.
>Release-Note:
>Audit-Trail:
>Unformatted: