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/07/2001 11:42:50
On Tue, 7 Aug 2001, Ian Fry wrote:

> 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?

Well, you shouldn't really need to build libgcc2 from the cross-compile
tree at all, but if it insists, link $prefix/arm-unknown-netbsdelf/include
to $DESTDIR/usr/include (where $DESTDIR is the root of an installed
NetBSD/arm26 system).

*sigh*  This really shouldn't be quite so painful.

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>