Subject: Re: Unable to cross-compile kernels
To: Ben Harris <bjh21@netbsd.org>
From: Ian Fry <Ian.Fry@sophos.com>
List: port-arm26
Date: 08/07/2001 10:14:32
On Mon, Aug 06, 2001 at 07:25:57PM +0100, Ben Harris wrote:
> 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:

[snip]

That helped a bit. The make now stops when trying to compile libgcc2.c
because it can't find 'stdlib.h' (and a couple of other headers). Do I need
to install some header files suitable for arm26 before I do this?

Ian.