Subject: Re: Unable to cross-compile kernels
To: Ian Fry <Ian.Fry@sophos.com>
From: Ben Harris <bjh21@netbsd.org>
List: port-arm26
Date: 08/06/2001 19:25:57
On Mon, 6 Aug 2001, Ian Fry wrote:
> > See <URL:http://mail-index.netbsd.org/port-arm/2001/04/24/0003.html>, but
> > ignore step 1 (the patch is in the tree now). You may also need to prevent
> > GCC trying to test libgcc1 (I think you do this by passing "LIBGCC1_TEST="
> > to make).
>
> It doesn't even get that far. The 'make' fails in sim/arm when trying to
> build 'armemu26.o' - gcc bails with 'no input files'. I think this is because
> armemu26.o (and armemu32.o) is built from armemu.c, but '$<' in this case
> seems to expand to nothing (with NetBSD's make). I tried using gmake instead,
> and that got further, but it failed somewhere in gdb IIRC.
Ah, I've noticed this patch in my local tree:
Index: configure.in
===================================================================
RCS file: /cvsroot/gnusrc/gnu/dist/toolchain/configure.in,v
retrieving revision 1.7
diff -u -r1.7 configure.in
--- configure.in 2001/06/25 14:11:34 1.7
+++ configure.in 2001/08/06 18:22:35
@@ -625,7 +625,10 @@
target_configdirs="${target_configdirs} target-bsp target-cygmon"
fi
;;
- arm-*-netbsdelf*) ;;
+ arm-*-netbsdelf*)
+ # XXX Temporary -- do not commit!
+ noconfigdirs="$noconfigdirs gdb sim"
+ ;;
arm-*-netbsd*) # (a.out)
noconfigdirs="$noconfigdirs ld"
;;
So it looks like I had the same problem. I'm not sure what the right
solution is.
--
Ben Harris <bjh21@netbsd.org>
Portmaster, NetBSD/arm26 <URL:http://www.netbsd.org/Ports/arm26/>