Subject: Having trouble building -current for hpcarm
To: None <port-arm@netbsd.org>
From: Baldur Gislason <baldur@foo.is>
List: port-arm
Date: 07/21/2007 15:15:40
I fetched src from anoncvs3.de.netbsd.org last night and I'm having
trouble cross compiling it for hpcarm.
I ran ./build.sh -U -u -m hpcarm -O /home/baldur/netbsd/obj build
and the result, after compiling for quite a while was:

#   compile  vnd/lkminit_vnd.o
/home/baldur/netbsd/obj/tooldir.FreeBSD-6.2-PRERELEASE-i386/bin/arm--netbsdelf-gcc -O2 -ffreestanding  -fno-strict-aliasing -Wno-pointer-sign -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional  -Werror   -I/home/baldur/netbsd/src/common/include -nostdinc -I. -I/home/baldur/netbsd/src/sys/lkm/dev/vnd -isystem /home/baldur/netbsd/src/sys -isystem /home/baldur/netbsd/src/sys/arch -isystem /home/baldur/netbsd/src/sys/../common/include -D_KERNEL -D_LKM  -c    /home/baldur/netbsd/src/sys/lkm/dev/vnd/lkminit_vnd.c
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 /home/baldur/netbsd/src/sys/sys/param.h:145,
                 from /home/baldur/netbsd/src/sys/lkm/dev/vnd/lkminit_vnd.c:34:
/machine/intr.h:81: error: expected identifier or '(' before 'do'
/machine/intr.h:81: error: expected identifier or '(' before 'while'
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 /home/baldur/netbsd/src/sys/sys/param.h:145,
                 from /home/baldur/netbsd/src/sys/lkm/dev/vnd/lkminit_vnd.c:34:
/machine/intr.h:82:21: error: macro "setsoftnet" passed 1 arguments, but takes just 0

*** Failed target:  lkminit_vnd.o
*** Failed command: /home/baldur/netbsd/obj/tooldir.FreeBSD-6.2-PRERELEASE-i386/bin/arm--netbsdelf-gcc -O2 -ffreestanding -fno-strict-aliasing -Wno-pointer-sign -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Werror -I/home/baldur/netbsd/src/common/include -nostdinc -I. -I/home/baldur/netbsd/src/sys/lkm/dev/vnd -isystem /home/baldur/netbsd/src/sys -isystem /home/baldur/netbsd/src/sys/arch -isystem /home/baldur/netbsd/src/sys/../common/include -D_KERNEL -D_LKM -c /home/baldur/netbsd/src/sys/lkm/dev/vnd/lkminit_vnd.c
*** Error code 1

Stop.
nbmake: stopped in /home/baldur/netbsd/src/sys/lkm/dev/vnd

*** Failed target:  dependall
*** Failed command: cd /home/baldur/netbsd/src/sys/lkm/dev/vnd; /home/baldur/netbsd/obj/tooldir.FreeBSD-6.2-PRERELEASE-i386/bin/nbmake realall
*** Error code 1

What to do?

Baldur Gislason
baldur@foo.is