Subject: port-macppc/32027: build failure in linux emulation on macppc
To: None <port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <oster@cs.usask.ca>
List: netbsd-bugs
Date: 11/09/2005 15:39:01
>Number:         32027
>Category:       port-macppc
>Synopsis:       build failure in linux emulation on macppc
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 09 15:39:01 +0000 2005
>Originator:     oster@cs.usask.ca
>Release:        NetBSD 3.99.11
>Organization:
rarely
>Environment:
System: NetBSD gonzo 3.0_BETA NetBSD 3.0_BETA (GONZO) #0: Fri Oct 14 20:52:20 CST 2005  oster@gonzo:/u1/builds/build76/src/sys/arch/i386/compile/GONZO i386
Doing a cross-build of macppc

>Description:

Cross-building of macppc on i386 dies because of struct linux_siginfo
being undefined when it's needed in
compat/linux/arch/powerpc/linux_machdep.h

Repeating the part that errors out:

oster@gonzo-19> /u1/builds/build78/tools/bin/nbmake-macppc
#   compile  GENERIC/linux_misc.o
/u1/builds/build78/tools/bin/powerpc--netbsd-gcc -pipe -mno-strict-align -msoft-float -Wa,-maltivec -ffreestanding -O2 -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Dmacppc=macppc -I. -I/u1/builds/build78/src/sys/arch -I/u1/builds/build78/src/sys -nostdinc -DLKM -DZS_CONSOLE_ABORT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/u1/builds/build78/src/sys/dist/ipf -c /u1/builds/build78/src/sys/compat/linux/common/linux_misc.c
In file included from /u1/builds/build78/src/sys/compat/linux/common/linux_machdep.h:49,
                 from /u1/builds/build78/src/sys/compat/linux/common/linux_misc.c:105:
/u1/builds/build78/src/sys/compat/linux/arch/powerpc/linux_machdep.h:162: error: field `linfo' has incomplete type

*** Failed target:  linux_misc.o
*** Failed command: echo '# ' "compile GENERIC/linux_misc.o"; echo /u1/builds/build78/tools/bin/powerpc--netbsd-gcc -pipe -mno-strict-align -msoft-float -Wa,-maltivec -ffreestanding -O2 -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Dmacppc=macppc -I. -I/u1/builds/build78/src/sys/arch -I/u1/builds/build78/src/sys -nostdinc -DLKM -DZS_CONSOLE_ABORT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/u1/builds/build78/src/sys/dist/ipf -c /u1/builds/build78/src/sys/compat/linux/common/linux_misc.c; /u1/builds/build78/tools/bin/powerpc--netbsd-gcc -pipe -mno-strict-align -msoft-float -Wa,-maltivec -ffreestanding -O2 -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno
 -zero-initialized-in-bss -Dmacppc=macppc -I. -I/u1/builds/build78/src/sys/arch -I/u1/builds/build78/src/sys -nostdinc -DLKM -DZS_CONSOLE_ABORT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/u1/builds/build78/src/sys/dist/ipf -c /u1/builds/build78/src/sys/compat/linux/common/linux_misc.c
*** Error code 1

Stop.
nbmake: stopped in /u1/builds/build78/src/sys/arch/macppc/compile/GENERIC
oster@gonzo-20> 


>How-To-Repeat:

	Attempt to cross-build 3.99.11 checkout as of ~20051108 on
i386 for macppc and watch it fail when building GENERIC kernel.

>Fix:

	Please.