Subject: Cross-building using build.sh - almost there!
To: None <current-users@netbsd.org>
From: Peter Seebach <seebs@plethora.net>
List: current-users
Date: 11/15/2001 13:12:38
I have this coming a lot closer to working.

I'm using:
./build.sh -a powerpc -m macppc -O /home/ppc/obj -R /home/ppc/rel -T /usr/src/toolppc -D /home/ppc/dest > ppc.log 2>&1

Which *should* be correct (yes?).

It ends with:
all ===> macppc/floppies/ramdisk
It runs crunchgen successfully, and then:

/usr/src/toolppc/bin/powerpc--netbsd-gcc -Os -Werror    -c /home/seebs/netbsd/src/distrib/macppc/floppies/ramdisk/../../../utils/libhack/getcap.c
/home/seebs/netbsd/src/distrib/macppc/floppies/ramdisk/../../../utils/libhack/getcap.c:44: sys/cdefs.h: No such file or directory
/home/seebs/netbsd/src/distrib/macppc/floppies/ramdisk/../../../utils/libhack/getcap.c:66: sys/types.h: No such file or directory
/home/seebs/netbsd/src/distrib/macppc/floppies/ramdisk/../../../utils/libhack/getcap.c:67: ctype.h: No such file or directory
/home/seebs/netbsd/src/distrib/macppc/floppies/ramdisk/../../../utils/libhack/getcap.c:68: errno.h: No such file or directory
/home/seebs/netbsd/src/distrib/macppc/floppies/ramdisk/../../../utils/libhack/getcap.c:69: fcntl.h: No such file or directory

[and a few more].

Should this have a -I somewhere that it doesn't?

-s