Subject: Re: Port Hpcarm fails to build
To: Pavel Jirout <JiroutP@rferl.org>
From: ober <ober@linbsd.org>
List: current-users
Date: 07/17/2006 16:21:06
Same problem with cross building sparc64/macppc due
to simplelock not being defined...

-Ober


On Mon, 17 Jul 2006, Pavel Jirout wrote:

> Date: Mon, 17 Jul 2006 10:58:24 +0200
> From: Pavel Jirout <JiroutP@rferl.org>
> To: current-users@NetBSD.org
> Subject: Port Hpcarm fails to build
> 
> Hi,
>
> Im having a problem with recent current kernel sources ( CVS update from
> monday July 17)
> The build process crashes on this ..
>
> Im building this on i386 port with a 3.0 Stable Generic NetBSD
>
> -->
>
> compile  JORNADA720/ffs_vnops.o
> /usr/current/src/hpcarmtools/bin/arm--netbsdelf-gcc -ffreestanding
> -fno-zero-ini
> tialized-in-bss -O2 -Wcomment -Werror -Wall -Wno-main
> -Wno-format-zero-length -W
> pointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow
> -Wcast-
> qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes
> -fno-st
> rict-aliasing -Dhpcarm -Darm32 -I.
> -I/usr/current/src/sys/../common/include -I/u
> sr/current/src/sys/arch -I/usr/current/src/sys -nostdinc -DLKM
> -DCONSPEED=19200
> -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
> -I/usr/current/src/sys/lib/libkern/../../.
> ./common/lib/libc/quad
> -I/usr/current/src/sys/lib/libkern/../../../common/lib/li
> bc/string
> -I/usr/current/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/s
> tring -c /usr/current/src/sys/ufs/ffs/ffs_vnops.c
> In file included from /usr/current/src/sys/ufs/ffs/ffs_vnops.c:39:
> /usr/current/src/sys/sys/resourcevar.h:76: error: field 'p_slock' has
> incomplete
> type
> /usr/current/src/sys/sys/resourcevar.h:98: error: field 'ui_slock' has
> incomplet
> e type
>
> *** Failed target:  ffs_vnops.o
> *** Failed command: echo '# ' "compile JORNADA720/ffs_vnops.o"; echo
> /usr/curren
> t/src/hpcarmtools/bin/arm--netbsdelf-gcc -ffreestanding
> -fno-zero-initialized-in
> -bss -O2 -Wcomment -Werror -Wall -Wno-main -Wno-format-zero-length
> -Wpointer-ari
> th -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual
> -Wwrit
> e-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes
> -fno-strict-aliasi
> ng -Dhpcarm -Darm32 -I. -I/usr/current/src/sys/../common/include
> -I/usr/current/
> src/sys/arch -I/usr/current/src/sys -nostdinc -DLKM -DCONSPEED="19200"
> -DMAXUSER
> S=32 -D_KERNEL -D_KERNEL_OPT
> -I/usr/current/src/sys/lib/libkern/../../../common/
> lib/libc/quad
> -I/usr/current/src/sys/lib/libkern/../../../common/lib/libc/string
> -I/usr/current/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string
> -c
> /usr/current/src/sys/ufs/ffs/ffs_vnops.c;
> /usr/current/src/hpcarmtools/bin/arm--
> netbsdelf-gcc -ffreestanding -fno-zero-initialized-in-bss -O2 -Wcomment
> -Werror
> -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
> -Wmissing-prototypes -Ws
> trict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings
> -Wno-sign-compare
> -Wno-pointer-sign -Wno-attributes -fno-strict-aliasing -Dhpcarm -Darm32
> -I. -I/
> usr/current/src/sys/../common/include -I/usr/current/src/sys/arch
> -I/usr/current
> /src/sys -nostdinc -DLKM -DCONSPEED="19200" -DMAXUSERS=32 -D_KERNEL
> -D_KERNEL_OP
> T -I/usr/current/src/sys/lib/libkern/../../../common/lib/libc/quad
> -I/usr/curren
> t/src/sys/lib/libkern/../../../common/lib/libc/string
> -I/usr/current/src/sys/lib
> /libkern/../../../common/lib/libc/arch/arm/string -c
> /usr/current/src/sys/ufs/ff
> s/ffs_vnops.c
> *** Error code 1
>
> Stop.
> nbmake: stopped in /usr/current/src/sys/arch/hpcarm/compile/obj/JORNADA720
>
> ERROR: Failed to make all in
> /usr/current/src/sys/arch/hpcarm/compile/obj/JORNAD
> A720
> *** BUILD ABORTED ***
>
>
> Pavel