Subject: Re: Unable to build tools using 2.0 sources
To: None <netbsd-help@netbsd.org>
From: None <ipt@scraemon.org>
List: netbsd-help
Date: 12/12/2004 10:07:41
On Sat, Dec 11, 2004 at 06:51:34PM -0500, ipt@scraemon.org wrote:
> I'm trying unsuccessfully to build the toolchain using NetBSD 2.0
> sources.  I run make cleandir before doing anything else.  I run 
> './build.sh tools' and copy the error output to a file, tools.log.  
> The error message is 
> 
> #    objdir  /usr/obj/tools.i386
> ===> MACHINE:          i386
> ===> MACHINE_ARCH:     i386
> ===> TOOLDIR path:     /usr/tools
> ===> DESTDIR path:     /usr/destdir
> ===> RELEASEDIR path:  /usr/release
> ===> Created /usr/tools/bin/nbmake
> ===> makewrapper:      /usr/tools/bin/nbmake-i386
> ===> Updated /usr/tools/bin/nbmake-i386
> nbmake: don't know how to make obj-tools. Stop
> 
> My copy of /etc/mk.conf contains the following lines:
> LOCALBASE?=/usr/local
> PKGSRC_MESSAGE_RECIPIENTS?=ipt
> TOOLDIR=/usr/tools
> RELEASEDIR=/usr/release
> DESTDIR=/usr/destdir
> OBJMACHINE=yes
> MKOBJDIRS=yes
> 
> Any suggestions on what is preventing the build?  This happens fairly
> early in the build process.  I can attach the entire tools.log if it
> would be useful.

As a followup, I ran make cleandir and commented out these two variables
in my /etc/mk.conf:

#OBJMACHINE=yes
#MKOBJDIRS=yes

I was then able to build the tools and kernel without any other errors.
Are there any extra flags needed to be passed to build.sh when using
these options?  I think that is where the problem is coming from.

-- 

Ian P. Thomas

Destiny is not a matter of chance, it is a matter of choice. It is not a thing 
to be waited for, it is a thing to be achieved.

	- William Jennings Bryan