Subject: port-mips/29041: -current kernel compilation fails w/o COMPAT_16 on cobalt/mips
To: None <,,>
From: Markus W Kilbinger <>
List: netbsd-bugs
Date: 01/21/2005 21:57:00
>Number:         29041
>Category:       port-mips
>Synopsis:       -current kernel compilation fails w/o COMPAT_16 on cobalt/mips[el]
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-mips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 21 21:57:00 +0000 2005
>Release:        NetBSD 2.99.14
System: NetBSD qube 2.99.14 NetBSD 2.99.14 (QUBE) #7: Fri Jan 21 21:24:38 MET 2005  kilbi@qube:/sys/arch/cobalt/compile/QUBE cobalt
Architecture: mipsel
Machine: cobalt
	Recent changes to the kernel compat stuff made kernel
	compilation fail if COMPAT_16 (and/or below) is not an active
	part of the kernel's config:

	#   compile  COCHISE/copy.o
	/usr/toolchain-mipsel/bin/mipsel--netbsd-gcc -mno-abicalls -x assembler-with-cpp -traditional-cpp -D_LOCORE -Dcobalt -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS3 -DMSGMNB=16384 -DMSGSSZ=64 -DMSGTQL=512 -DDIAGNOSTIC -DMIPS3_PLUS -DNMBCLUSTERS=8192 -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I../../../../dist/pf -c ../../../../arch/mips/mips/copy.S
	#   compile  COCHISE/mips_machdep.o
	/usr/toolchain-mipsel/bin/mipsel--netbsd-gcc -G 0 -mno-abicalls -msoft-float -ffreestanding -pipe -O4 -mtune=r5000 -mips2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss -Dcobalt -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS3 -DMSGMNB=16384 -DMSGSSZ=64 -DMSGTQL=512 -DDIAGNOSTIC -DMIPS3_PLUS -DNMBCLUSTERS=8192 -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I../../../../dist/pf -c ../../../../arch/mips/mips/mips_machdep.c
	In file included from ../../../../arch/mips/mips/mips_machdep.c:153:
	mips/frame.h:51: error: field `sf_sc' has incomplete type
	*** Failed target:  mips_machdep.o
	See description.
	Workaround: Add COMPAT_16 to kernel's config.
	Otherwise:  n/a