Subject: toolchain/18020: No objdir created in src/tools/makewhatis!
To: None <gnats-bugs@gnats.netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-bugs
Date: 08/21/2002 15:21:03
>Number:         18020
>Category:       toolchain
>Synopsis:       No objdir created in src/tools/makewhatis!
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 21 13:22:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6F
>Organization:

	Not very organized.
>Environment:



etc/mk.conf:

MKHOSTOBJ=		yes
OBJMACHINE=		yes

BSDSRCDIR=		/s/src
BSDOBJDIR=		/t/obj

.ifdef BSD_PKG_MK
# Package system options
...
.endif # BSD_PKG_MK

System: NetBSD ilfxv013.immanent.net 1.6F NetBSD 1.6F (ARMADA_M700) #0: Sun Aug 11 09:23:22 CDT 2002 fredb@tautology.immanent.net:/s/src-current/sys/arch/i386/compile/ARMADA_M700 i386
Architecture: i386
Machine: i386
>Description:

	"make obj" in ".../src/tools/makewhatis" fails to create any
	symlink, or directory, and if one already exists, the objects
	will be built outside of it!
>How-To-Repeat:

	"make obj" or "./build.sh" or "./build.sh -t"
>Fix:

	It looks like "bsd.obj.mk" is being included too early
	at the top of ".../src/libexec/makewhatis/Makefile", as
	the problem goes away if you comment that out. Moreover,
	"bsd.obj.mk" is included inconsistently near the top of
	many other "Makefile"'s. It doesn't ever seem to be needed
	there, while it does cause problems for the programs with
	host tool counterparts. So, the inclusion should either
	go away, or if turns out to be needed for something after
	all, it should at least be protected by ".ifndef HOSTPROG".

>Release-Note:
>Audit-Trail:
>Unformatted: