Subject: bin/14516: Mis-handling of libbfd dependencies in src/tools
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/09/2001 15:48:22
>Number:         14516
>Category:       bin
>Synopsis:       Mis-handling of libbfd dependencies in src/tools
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 09 15:49:00 PST 2001
>Originator:     Jason R. Thorpe
>Release:        NetBSD 1.5Y
Wasabi Systems, Inc.
System: NetBSD dr-evil 1.5Y NetBSD 1.5Y (DR-EVIL) #225: Mon Oct 29 15:23:50 PST 2001 thorpej@dr-evil:/u1/netbsd/src/sys/arch/i386/compile/DR-EVIL i386
Architecture: i386
Machine: i386

	Cross build of i386 -> arm-netbsdelf using new toolchain.

	I encountered this when building a set of ARM-ELF binaries
	on an i386 host.  The command issued was:

		./ -a arm -m evbarm -D /u1/diskless/iq80310 \
		    -T /usr/local/netbsd-tools/current

	(Make variables are set to force ELF and USE_NEW_TOOLCHAIN
	in /etc/mk.conf)

	The build script proceeds to do a cleandir.  But it needed to
	rebuild the cross-dbsym because the .c had been updated (by
	a CVS commit I made last night).  But since the build didn't
	need to build src/tools/toolchain (those binaries were
	up-to-date in $TOOLDIR), the compile of dbsym failed due to
	lack of headers/libraries in the appropriate directory
	(in the objdir tree).

	Do a tools bootstrap ( -t).  Then do a "make cleandir"
	in src/tools.  Then touch src/gnu/usr.bin/dbsym/dbsym.c.  Then
	run to do a normal build.

	Not provided.