Subject: Current kernel: *** Failed target: machdep.o
To: list NetBSD Cobalt <port-cobalt@netbsd.org>
From: Dennis <mips128@gmx.net>
List: port-cobalt
Date: 03/17/2007 12:35:19
Hello Everyone.

After having no luck in binary upgrading my qube2 to the new current and 
having no experiences in debugging a kernel or how to do this over a 
serial port (sorry), I just reinstalled 3.99.17 with the restore cd and 
got me the src tar balls.

I know that 3.99.17 isn't stable, but I knew it wouldn't crash in the 
first 12h of compiling. I thought this would give me enough time to 
build the toolchain and a new kernel and then reboot with this kernel to 
build the userland. That was my theory.
I had no trouble building the toolchain, but compiling the kernle always 
fails (I tried it with the GENERIC and the INSTALL config). It alway 
fails at this point:
------------------------------------------------------

/usr/src/sys/arch/cobalt/cobalt/machdep.c:281: warning: pointer of type 
'void *' used in subtraction
/usr/src/sys/arch/cobalt/cobalt/machdep.c:314: warning: pointer of type 
'void *' used in arithmetic

*** Failed target:  machdep.o
*** Failed command: echo '# ' "compile INSTALL/machdep.o"; echo 
/usr/src/tooldir.NetBSD-3.99.17-mipsel/bin/mipsel--netbsd-gcc -G 0 
-mno-abicalls -msoft-float -ffreestanding -fno-zero-initialized-in-bss 
-march=vr5000 -mabi=32 -Os -mmemcpy -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings 
-Wno-sign-compare -Wno-pointer-sign -Wno-attributes -fno-strict-aliasing 
-Dcobalt -I. -I/usr/src/sys/../common/include -I/usr/src/sys/arch 
-I/usr/src/sys -nostdinc -DMIPS3 -DMIPS3_ENABLE_CLOCK_INTR -DMAXUSERS=32 
-D_KERNEL -D_KERNEL_OPT 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/mips/string -c 
/usr/src/sys/arch/cobalt/cobalt/machdep.c; 
/usr/src/tooldir.NetBSD-3.99.17-mipsel/bin/mipsel--netbsd-gcc -G 0 
-mno-abicalls -msoft-float -ffreestanding -fno-zero-initialized-in-bss 
-march=vr5000 -mabi=32 -Os -mmemcpy -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings 
-Wno-sign-compare -Wno-pointer-sign -Wno-attributes -fno-strict-aliasing 
-Dcobalt -I. -I/usr/src/sys/../common/include -I/usr/src/sys/arch 
-I/usr/src/sys -nostdinc -DMIPS3 -DMIPS3_ENABLE_CLOCK_INTR -DMAXUSERS=32 
-D_KERNEL -D_KERNEL_OPT 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/mips/string -c 
/usr/src/sys/arch/cobalt/cobalt/machdep.c
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/sys/arch/cobalt/compile/INSTALL

ERROR: Failed to make all in /usr/src/sys/arch/cobalt/compile/obj/INSTALL
*** BUILD ABORTED ***

------------------------------------------------------

I have no clue if I have made a mistake or what is wrong. Can somebody 
give me a hint what I can try to make it compile?

Thanks a lot for all the support :)

Bye,
Dennis