Subject: toolchain/14600: kernel build fails if "USETOOLS" is not set to "yes".
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 11/16/2001 13:40:42
>Number:         14600
>Category:       toolchain
>Synopsis:       kernel build fails if "USETOOLS" is not set to "yes".
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 16 04:41:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5Y 2001-11-16 sources
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 1.5Y NetBSD 1.5Y (LYSSA) #0: Thu Nov 15 20:19:57 CET 2001 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386
>Description:
With the latest changes to the kernel build framework one cannot compile
a kernel without using the toolchan. The build fails like this:

cp /usr/src/sys/conf/param.c .
sh /usr/src/sys/kern/genassym.sh cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes  -Wpointer-arith -Wno-uninitialized -Wno-main -I.  -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DCRYPTO_MD_DES_ENC -DCRYPTO_MD_BF_ENC -DMSGBUFSIZE="0x8000" -DLKM -DDIAGNOSTIC -DNMBCLUSTERS="0x800" -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT  -Di386   < /usr/src/sys/arch/i386/i386/genassym.cf > assym.h.tmp &&  mv -f assym.h.tmp assym.h
-x assembler-with-cpp -traditional-cpp -D_LOCORE -I.  -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DCRYPTO_MD_DES_ENC -DCRYPTO_MD_BF_ENC -DMSGBUFSIZE="0x8000" -DLKM -DDIAGNOSTIC -DNMBCLUSTERS="0x800" -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT  -Di386 /usr/src/sys/arch/i386/i386/locore.s /usr/src/sys/arch/i386/i386/db_dbgreg.s /usr/src/sys/arch/i386/i386/in_cksum.s  /usr/src/sys/arch/i386/i386/microtime.s /usr/src/sys/crypto/des/arch/i386/des_enc.S  /usr/src/sys/crypto/blowfish/arch/i386/bf_enc.S  /usr/src/sys/arch/i386/i386/bioscall.s /usr/src/sys/arch/i386/i386/apmcall.s  /usr/src/sys/arch/i386/i386/linux_sigcode.s
-x: not found
*** Error code 127

This must be fixed before the next release because many people install
binary snapshots and the kernel sources and have no toolchain hence.

>How-To-Repeat:
Don't set "USETOOLS" in your environment or in "/etc/mk.conf" and try
to build a kernel.

>Fix:
None provided.

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