Subject: kernel build error on netbsd current for jornada 720
To: netbsd current <current-users@netbsd.org>
From: Jens Wurm <Pate1986@gmx.de>
List: current-users
Date: 07/01/2007 13:00:20
hi, i have the problem, the jornada720 kernel under netbsd-current
3.99.21 don`t build.

#    create  JORNADA720/ata.d
CC=/usr/hpcarm/tools/bin/arm--netbsdelf-gcc
/usr/hpcarm/tools/bin/nbmkdep -f ata.d --  -ffreestanding
-fno-zero-initialized-in-bss   -O2 -Wcomment -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     -Dhpcarm -Darm32 -I. 
-I/usr/src/sys/../common/include -I/usr/src/sys/arch  -I/usr/src/sys
-nostdinc -DLKM -DCONSPEED="19200" -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/arm/string  
/usr/src/sys/dev/ata/ata.c
#    create  JORNADA720/ata_wdc.d
CC=/usr/hpcarm/tools/bin/arm--netbsdelf-gcc
/usr/hpcarm/tools/bin/nbmkdep -f ata_wdc.d --  -ffreestanding
-fno-zero-initialized-in-bss   -O2 -Wcomment -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     -Dhpcarm -Darm32 -I. 
-I/usr/src/sys/../common/include -I/usr/src/sys/arch  -I/usr/src/sys
-nostdinc -DLKM -DCONSPEED="19200" -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/arm/string  
/usr/src/sys/dev/ata/ata_wdc.c
#    create  JORNADA720/assym.h
cat /usr/src/sys/arch/arm/arm32/genassym.cf
/usr/src/sys/arch/hpcarm/hpcarm/genassym.cf | 
/usr/hpcarm/tools/bin/nbgenassym --
/usr/hpcarm/tools/bin/arm--netbsdelf-gcc  -ffreestanding
-fno-zero-initialized-in-bss   -O2 -Wcomment -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    -Dhpcarm -Darm32 -I. 
-I/usr/src/sys/../common/include -I/usr/src/sys/arch  -I/usr/src/sys
-nostdinc -DLKM -DCONSPEED="19200" -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/arm/string    >
assym.h.tmp &&  mv -f assym.h.tmp assym.h
In file included from ./arm/cpu.h:85,
                 from ./machine/cpu.h:3,
                 from ./arm/arm32/param.h:39,
                 from ./machine/param.h:45,
                 from /usr/src/sys/sys/param.h:145,
                 from /tmp/genassym.11460/assym.c:2:
./machine/intr.h:81: error: expected identifier or '(' before 'do'
./machine/intr.h:81: error: expected identifier or '(' before 'while'

*** Failed target:  assym.h
*** Failed command: cat /usr/src/sys/arch/arm/arm32/genassym.cf
/usr/src/sys/arch/hpcarm/hpcarm/genassym.cf |
/usr/hpcarm/tools/bin/nbgenassym --
/usr/hpcarm/tools/bin/arm--netbsdelf-gcc -ffreestanding
-fno-zero-initialized-in-bss -O2 -Wcomment -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
-Dhpcarm -Darm32 -I. -I/usr/src/sys/../common/include
-I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DCONSPEED="19200"
-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/arm/string >
assym.h.tmp && mv -f assym.h.tmp assym.h
*** Error code 1

Stop.
nbmake: stopped in /usr/hpcarm/obj/sys/arch/hpcarm/compile/JORNADA720

ERROR: Failed to make depend in
/usr/hpcarm/obj/sys/arch/hpcarm/compile/JORNADA720
*** BUILD ABORTED ***
root@xen3:/usr/src$

how can i solve this problem?

Regards,
    Jens