Subject: Cross-building mac68k 1.6 on i386 fails
To: None <port-mac68k@netbsd.org>
From: Hauke Fath <hf@tangro.de>
List: port-mac68k
Date: 09/19/2002 18:08:55
Hi,

a few days ago, I saw a reference to building an all-statically linked
userland and decided to give that a try. 

The first obstacle was that MAKEFLAGS='LDSTATIC=-static' didn't stick
-- build.sh unconditionally resets MAKEFLAGS. Is this intentional?
Makes it kind of hard to fine-tune the build...

And now this (happened before the I added '-static', too)...

all ===> miniroot
/usr/tools/mac68k/bin/m68k--netbsdelf-gcc -O2    -Werror  -nostdinc -isystem /build/netbsd/mac68k/destdir/usr/include  -c /usr/src/distrib/utils/libhack/getcap.c

[...]

/usr/tools/mac68k/bin/m68k--netbsdelf-ld -r -o libhack.o getcap.o getgrent.o getnet.o getnetgr.o getpwent.o  localeconv.o perror.o setlocale.o  strerror.o strsignal.o utmp.o yplib.o
rm -f instbin.conf instbin.conf.tmp
ARCHDIR=/usr/src/distrib/miniroot/../mac68k/miniroot  DISTRIBREV=16  DISTRIBVER=1.6  KERNOBJDIR=/build/netbsd/mac68k/obj/sys/arch/mac68k/compile NETBSDSRCDIR=/usr/src  CRUNCHBIN=instbin  CURDIR=/usr/src/distrib/miniroot  DESTDIR=/build/netbsd/mac68k/destdir  DISTRIBDIR=/usr/src/distrib  MACHINE=mac68k  MACHINE_ARCH=m68k  OBJDIR=/build/netbsd/mac68k/obj/distrib/miniroot TARGETDIR=/build/netbsd/mac68k/obj/distrib/miniroot/work awk -f /usr/src/distrib/common/parselist.awk -v mode=crunch /usr/src/distrib/miniroot/list /usr/src/distrib/miniroot/../mac68k/miniroot/list > instbin.conf.tmp  && mv instbin.conf.tmp instbin.conf
SMALLPROG=1 MAKE=/usr/tools/mac68k/bin/nbmake /usr/tools/mac68k/bin/nbcrunchgen -f -D /usr/src -L /build/netbsd/mac68k/destdir/usr/lib  -q -d "-O2" instbin.conf
instbin.conf: rsh: error: no objpaths specified or calculated.
instbin.conf: rsh: ignoring program because of errors.
Run "make -f instbin.mk objs exe" to build crunched binary.
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/miniroot
*** Error code 1

Is this a known problem?

        hauke