Subject: Re: nbmake: "/usr/cvs/src-current/Makefile" line 277: Malformed
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-toolchain
Date: 06/12/2003 23:01:30
On Fri, 13 Jun 2003, Hubert Feyrer wrote:

> This is on 1.6.1_STABLE userland trying to build a -current kernel
> (toolchain is already there):
>
> miyu% /usr/cvs/src-current/tools/obj.i386/tools.NetBSD-1.6T-i386/bin/nbmake-i386 dependall
> nbmake: "/usr/cvs/src-current/Makefile" line 277: Malformed conditional
> (${TOOLCHAIN_MISSING} == "yes" && !defined(EXTERNAL_TOOLCHAIN))
> nbmake: "/usr/cvs/src-current/Makefile" line 280: if-less elif
> nbmake: "/usr/cvs/src-current/Makefile" line 280: Missing dependency
> operator
> nbmake: "/usr/cvs/src-current/Makefile" line 282: if-less endif
> nbmake: "/usr/cvs/src-current/Makefile" line 282: Need an operator
> nbmake: Fatal errors encountered -- cannot continue
> nbmake: "/usr/src/share/mk/bsd.own.mk" line 56: warning: "cd
> /usr/cvs/src-current &&
> /usr/cvs/src-current/tools/obj.i386/tools.NetBSD-1.6T-i386/bin/nbmake -V
> .OBJDIR" returned non-zero status

It's obviously using the wrong system directory. "nbmake-i386" is
supposed to have a line like this:

MAKEFLAGS='-m /usr/cvs/src-current/share/mk MKOBJDIRS=yes'; export MAKEFLAGS

Does it? How did you build the tools?

Frederick