Subject: Problem to build hpcarm-netbsd-current
To: netbsd current <current-users@netbsd.org>
From: Jens Wurm <Pate1986@gmx.de>
List: current-users
Date: 10/05/2007 14:32:51
Hi,
i want to build netbsd-current-4.99.32 for my jornada720, but i get the
following error:

#    create  vnd/.depend
rm -f .depend
CC=/usr/hpcarm/tools/bin/arm--netbsdelf-gcc
/usr/hpcarm/tools/bin/nbmkdep -d -f .depend -s .o lkminit_vnd.d
real-vnd.d
#   compile  vnd/lkminit_vnd.o
/usr/hpcarm/tools/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/usr/src/common/include -nostdinc -I.
-I/usr/src/sys/lkm/dev/vnd -isystem /usr/src/sys -isystem
/usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL
-D_LKM  -c    /usr/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 /usr/src/sys/sys/param.h:145,
                 from /usr/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 /usr/src/sys/sys/param.h:145,
                 from /usr/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: /usr/hpcarm/tools/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/usr/src/common/include
-nostdinc -I. -I/usr/src/sys/lkm/dev/vnd -isystem /usr/src/sys -isystem
/usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL
-D_LKM -c /usr/src/sys/lkm/dev/vnd/lkminit_vnd.c
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/lkm/dev/vnd

*** Failed target:  dependall
*** Failed command: cd /usr/src/sys/lkm/dev/vnd;
/usr/hpcarm/tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/lkm/dev/vnd

*** Failed target:  dependall-vnd
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this="sys/lkm/dev/"; real="/usr/src/sys/lkm/dev" ;; *)
this="sys/lkm/dev/${dir}/"; real="/usr/src/sys/lkm/dev/${dir}" ;; esac;
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd
"${real}" && /usr/hpcarm/tools/bin/nbmake _THISDIR_="${this}" "$@"
${target}; }; _makedirtarget vnd dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/lkm/dev

*** Failed target:  dependall-dev
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this="sys/lkm/"; real="/usr/src/sys/lkm" ;; *) this="sys/lkm/${dir}/";
real="/usr/src/sys/lkm/${dir}" ;; esac; show=${this:-.}; echo "${target}
===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/usr/hpcarm/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; };
_makedirtarget dev dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/lkm

*** Failed target:  dependall-lkm
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this="sys/"; real="/usr/src/sys" ;; *) this="sys/${dir}/";
real="/usr/src/sys/${dir}" ;; esac; show=${this:-.}; echo "${target}
===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/usr/hpcarm/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; };
_makedirtarget lkm dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys

*** Failed target:  dependall-sys
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac;
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd
"${real}" && /usr/hpcarm/tools/bin/nbmake _THISDIR_="${this}" "$@"
${target}; }; _makedirtarget sys dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  do-build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac;
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd
"${real}" && /usr/hpcarm/tools/bin/nbmake _THISDIR_="${this}" "$@"
${target}; }; _makedirtarget . dependall BUILD_tools=no BUILD_lib=no
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac;
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd
"${real}" && /usr/hpcarm/tools/bin/nbmake _THISDIR_="${this}" "$@"
${target}; }; _makedirtarget . do-build
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  distribution
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac;
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd
"${real}" && /usr/hpcarm/tools/bin/nbmake _THISDIR_="${this}" "$@"
${target}; }; _makedirtarget . build NOPOSTINSTALL=1
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make distribution
*** BUILD ABORTED ***
root@xen3:/usr/src$

I build it under netbsd-4.99.22-i386 with the command:

root@xen3:/usr/src$ ./build.sh -x -m hpcarm -T /usr/hpcarm/tools -O
/usr/hpcarm/obj -U -D /usr/hpcarm/build tools kernel=JORNADA720 distribution

Can everyone help me?

Regards,
    Jens