Subject: toolchain/14600: kernel build fails if "USETOOLS" is not set to "yes".
To: None <>
From: Matthias Scheler <>
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
>Release:        NetBSD 1.5Y 2001-11-16 sources
Matthias Scheler                        
System: NetBSD 1.5Y NetBSD 1.5Y (LYSSA) #0: Thu Nov 15 20:19:57 CET 2001 i386
Architecture: i386
Machine: i386
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/ 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/ > 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.

Don't set "USETOOLS" in your environment or in "/etc/mk.conf" and try
to build a kernel.

None provided.