Subject: port-hpcarm/36726: -current/hpcarm doesn't build
To: None <port-hpcarm-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <baldur@foo.is>
List: netbsd-bugs
Date: 08/02/2007 21:25:00
>Number:         36726
>Category:       port-hpcarm
>Synopsis:       -current/hpcarm doesn't build
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-hpcarm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 02 21:25:00 +0000 2007
>Originator:     Baldur Gislason
>Release:        -current
>Organization:
>Environment:
>Description:
When building -current for hpcarm with build.sh the build will fail.
I've tried this on more than one machine and I always get the same result.
Building i386 works and so does 3.1.1-PATCH for hpcarm.

#   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
>How-To-Repeat:
Download -current sources via ftp or cvs.
go into source dir and run ./build.sh -u -m hpcarm tools; ./build.sh -u -U -m hpcarm build
>Fix: