Subject: 2.0_RC3 cross compiling for alpha failed
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 10/06/2004 00:39:52
Hi,
just failed to cross compile a freshly cvs update-ed NetBSD 2.0_RC3
on i386 for alpha:

#   compile  linux/linux_sysent.o
/u/NetBSD/release/2.x/arch/alpha/TOOLS/bin/alpha--netbsd-gcc -O2 -ffreestanding  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized  -Werror -mieee  -mno-fp-regs  -Demul_find=linux_emul_find                                 -Dstackgap_init=linux_stackgap_init                     -Demul_flags_translate=linux_emul_flags_translate       -Dstackgap_alloc=linux_stackgap_alloc                   -Dcompat_offseterr=linux_compat_offseterr               -Demul_find_interp=linux_emul_find_interp -DNWSDISPLAY=1 -DSYSVSEM -DSYSVMSG -DSYSVSHM -DCOMPAT_LINUX -nostdinc -DKTRACE -DNSEQUENCER=1 -DINET6 -Dalpha -nostdinc -I. -I/u/NetBSD/release/2.x/src/sys/lkm/compat/linux -isystem /u/NetBSD/release/2.x/src/sys -isystem /u/NetBSD/release/2.x/src/sys/arch -D_KERNEL -D_LKM  -c    /u/NetBSD/release/2.x/src/sys/compat/linux/arch/alpha/linux_sysent.c
/u/NetBSD/release/2.x/src/sys/compat/linux/arch/alpha/linux_sysent.c:483: error: invalid application of `sizeof' to an incomplete type

*** Failed target:  linux_sysent.o
*** Failed command: /u/NetBSD/release/2.x/arch/alpha/TOOLS/bin/alpha--netbsd-gcc -O2 -ffreestanding -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Werror -mieee -mno-fp-regs -Demul_find=linux_emul_find -Dstackgap_init=linux_stackgap_init -Demul_flags_translate=linux_emul_flags_translate -Dstackgap_alloc=linux_stackgap_alloc -Dcompat_offseterr=linux_compat_offseterr -Demul_find_interp=linux_emul_find_interp -DNWSDISPLAY=1 -DSYSVSEM -DSYSVMSG -DSYSVSHM -DCOMPAT_LINUX -nostdinc -DKTRACE -DNSEQUENCER=1 -DINET6 -Dalpha -nostdinc -I. -I/u/NetBSD/release/2.x/src/sys/lkm/compat/linux -isystem /u/NetBSD/release/2.x/src/sys -isystem /u/NetBSD/release/2.x/src/sys/arch -D_KERNEL -D_LKM -c /u/NetBSD/release/2.x/src/sys/compat/linux/arch/alpha/linux_sysent.c
*** Error code 1

Stop.
nbmake: stopped in /u/NetBSD/release/2.x/src/sys/lkm/compat/linux

the "incomplete type" is struct linux_sys_shmget_args, which isn't defined
anywhere...

-kurt