Subject: kernel build problems on macppc
To: None <tech-toolchain@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-toolchain
Date: 11/19/2003 20:36:33
Hi

I've spent my afternoon trying to get the kernel to build, but it fails
at make time:

depending the kern library objects
depending the compat library objects
;   cc  -msoft-float      -ffreestanding  -O2 -Wreturn-type -Werror
-Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
-Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare
-Wno-uninitialized  -Dmacppc -I.  -I../../../../arch -I../../../..
-nostdinc -DDIAGNOSTIC -DZS_CONSOLE_ABORT -DDEBUG_DARWIN -DDEBUG_MACH
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT  -c swapnetbsd.c;  cc
-msoft-float      -ffreestanding  -O2 -Wreturn-type -Werror -Wall
-Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized  -Dmacppc -I.
-I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC
-DZS_CONSOLE_ABORT -DDEBUG_DARWIN -DDEBUG_MACH -DMAXUSERS=32 -D_KERNEL
-D_KERNEL_OPT  -c swapnetbsd.c
Syntax error: ";" unexpected

This is built by
swapnetbsd.o: swapnetbsd.c
        ${NORMAL_C}

$ make -V NORMAL_C 
${_MKTARGET_COMPILE};  ${_MKSHECHO} ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF}
-c $<;  ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<

 _MKTARGET_COMPILE is undefined. I can define it to be /usr/bin/true,
and most of the kernel object will build,  however it will then fail to
build vers.o. 

Anyone has an idea of what is going wrong? I checked out a fresh tree,
rebuilt the tools, and I got no success. I'm stuck!

-- 
Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.
manu@netbsd.org