Subject: Re: cross-compiling on solaris fails...
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: current-users
Date: 08/29/2006 12:51:03
In article <20060829123736.GA20095@sb1001.name>,
Kurt Schreiner  <ks@ub.uni-mainz.de> wrote:
>On Mon, Aug 28, 2006 at 08:46:49PM +0000, Christos Zoulas wrote:
>> In article <20060828180048.GA19688@sb1001.name>,
>> [...schnipp...] 
>> Ok, I think I fixed it. Please cvs update efun.c
>Yep, efun.c compiles fine now! But:
>
>#   compile  crunchgen/crunched_skel.lo
>/opt/csw/gcc4/bin/gcc -O -I/u/NetBSD/arch/i386/obj/tools/compat
>-I/u/NetBSD/arch/i386/obj/tools/compat/include 
>-I/u/NetBSD/src/tools/crunchgen/../compat -DHAVE_NBTOOL_CONFIG_H=1 
>-D_FILE_OFFSET_BITS=64  -DNEW_TOOLCHAIN -c -o crunched_skel.lo.o   
>crunched_skel.c
>mv crunched_skel.lo.o crunched_skel.lo
>nbmake: don't know how to make /usr/lib/libutil.a. Stop
>
>nbmake: stopped in /u/NetBSD/src/tools/crunchgen
>
>*** Failed target:  dependall
>*** Failed command: cd /u/NetBSD/src/tools/crunchgen;
>/u/NetBSD/arch/i386/TOOLS/bin/nbmake realall
>*** Error code 2
>
>Stop.
>nbmake: stopped in /u/NetBSD/src/tools/crunchgen
>
>*** Failed target:  dependall-crunchgen
>*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
>shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
>real="/u/NetBSD/src/tools" ;; *) this="${dir}/";
>real="/u/NetBSD/src/tools/${dir}" ;; esac; show=${this:-.}; echo
>"${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
>/u/NetBSD/arch/i386/TOOLS/bin/nbmake _THISDIR_="${this}" "$@" ${target};
>}; _makedirtarget crunchgen dependall
>*** Error code 1
>
>Stop.
>nbmake: stopped in /u/NetBSD/src/tools
>
>...and there is no /usr/lib/libutil.a on this Slowlaris machine.
>
>So src/usr.bin/crunch/crunchgen/Makefile should be teached to only
>set LDADD+=-lutil and DPADD+=${LIBUTIL} when not used as a tool...
>(Or libutil could be build as part of tools?)

Fixed...

christos