Subject: install/31496: Unable to build a kernel
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jehors@camisolite.com>
List: netbsd-bugs
Date: 10/06/2005 21:38:00
>Number:         31496
>Category:       install
>Synopsis:       Unable to build a kernel
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 06 21:38:00 +0000 2005
>Originator:     jehors
>Release:        NetBSD 2.0.2
>Organization:
CAMISOLITE
>Environment:
NetBSD w11ntb3a.camisolite.net 2.0.2 NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 08:53:42 UTC 2005  jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/i386/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
I cannot build a new kernel. Each time I execute 'make depend' I get a list of errors that I (not a systems programmer) do not
understand. Two weeks ago this problem did not occur.

This happens with any kernel I want to compile, even with GENERIC. I checked out fresh sources (/usr/src and /usr/xsrc) and
alternativly tried this with the tarballs from the ftp-server. I tried my own and the default /etc/mk.conf. I always get the following lines (here for GENERIC):

make: "/etc/mk.conf" line 450: Malformed conditional (${OPSYS} == "IRIX")
make: "/etc/mk.conf" line 450: Need an operator
make: "/etc/mk.conf" line 463: Malformed conditional (${OPSYS} == "SunOS")
make: "/etc/mk.conf" line 463: Need an operator
make: "/etc/mk.conf" line 1731: Malformed conditional (empty(MACHINE_PLATFORM:MNetBSD-1*-*))
make: "/etc/mk.conf" line 1731: Missing dependency operator
make: "/etc/mk.conf" line 1733: if-less else
make: "/etc/mk.conf" line 1733: Need an operator
make: "/etc/mk.conf" line 1735: if-less endif
make: "/etc/mk.conf" line 1735: Need an operator
make: "/etc/mk.conf" line 450: Malformed conditional (${OPSYS} == "IRIX")
make: "/etc/mk.conf" line 450: Need an operator
make: "/etc/mk.conf" line 463: Malformed conditional (${OPSYS} == "SunOS")
make: "/etc/mk.conf" line 463: Need an operator
make: "/etc/mk.conf" line 1731: Malformed conditional (empty(MACHINE_PLATFORM:MNetBSD-1*-*))
make: "/etc/mk.conf" line 1731: Missing dependency operator
make: "/etc/mk.conf" line 1733: if-less else
make: "/etc/mk.conf" line 1733: Need an operator
make: "/etc/mk.conf" line 1735: if-less endif
make: "/etc/mk.conf" line 1735: Need an operator
make: "/usr/src/share/mk/bsd.own.mk" line 730: if-less endif
make: "/usr/src/share/mk/bsd.own.mk" line 730: Need an operator
make: Fatal errors encountered -- cannot continue
make: "/usr/share/mk/bsd.own.mk" line 85: warning: "cd /usr/src && make -V .OBJDIR" returned non-zero status
make: "/usr/share/mk/bsd.own.mk" line 730: if-less endif
make: "/usr/share/mk/bsd.own.mk" line 730: Need an operator
make: Fatal errors encountered -- cannot continue

make: stopped in /usr/src/sys/arch/i386/compile/GENERIC

>How-To-Repeat:
cd /usr/src/sys/arch/i386/compile/GENERIC && make depend
>Fix: