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/01/2001 12:45:09
On Wed, Aug 01, 2001 at 11:54:57AM +0100, Ben Harris wrote:
> On Wed, 1 Aug 2001, Ian Fry wrote:
> > I recently updated the source tree I use for experimenting with arm26 stuff
> > (I only use syssrc), and I now can't cross-compile kernels due to complaints
> > from the compiler about prototype differences for things like 'memset' and
> > 'memcpy'. I haven't changed anything else on the machine recently, and I've
> > been able to cross-build kernels in the past.
> You need to update and recompile GCC. Matt Thomas changed the definitions
> of various types (size_t and ptrdiff_t went from int to long, ISTR), and
> GCC cares about this.
Ah, right. So I just need to re-install the cross compiler package? Great.
> > Do I need to install the arm26 /usr/include somewhere? I had a quick look at
> > the .depend files and there seem to be some mentions of files in 'machine' -
> > this isn't right, surely? I'd hope that building a kernel wouldn't need any
> > files from outside of syssrc.
> You'll find that when you run "config" you get a symlink in the compile
> directory from "machine" to sys/arch/arm26/include. This is what's used
> when building the kernel.
Okay, that makes sense.
Cheers,
Ian.