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/01/2001 11:54:57
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.

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

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