Subject: Re: Crosscompilation Alpha -> i386/ELF w curr -> errors..
To: Peter B <pb@ludd.luth.se>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: current-users
Date: 05/25/2002 17:41:40
On Sat, May 25, 2002 at 04:29:05PM +0200, Peter B wrote:
>
> Hi!
>
> I'm trying to crosscompile i386 netbsd ELF current kernel on a:
> NetBSD speedy 1.5_BETA NetBSD 1.5_BETA (SPEEDY) #6: Sun Dec 6 17:15:55 CET 2020
> (an 500 MHz alpha machine)
>
> I downloaded the kernel source from:
> ftp.netbsd.org:/pub/NetBSD/NetBSD-current/tar_files/src/sys.tar.gz
>
> And the crosscompile tools:
> cross-i386-netbsdelf-1.3.0.0.tgz (for 1.5/alpha)
>
> Using:
> /usr/sbin/config GENERIC
> cd ../compile/GENERIC
> ./build-script depend
>
> But it won't compile..:
> *Initialization*:1: warning: this is the location of the previous definition
> *Initialization*:1: warning: `__GNUC__' redefined
> *Initialization*:1: warning: this is the location of the previous definition
To build a kernel you need more that gcc, you also need an up to date config(8)
at last.
The best way is to download the full source tree, and do:
cd src
./build.sh -t -T /some/where/i386/tools -m i386
and then use
/some/where/i386/tools/bin/nbconfig
/some/where/i386/tools/bin/nbmake-i386
See BUILDING for details on build.sh
--
Manuel Bouyer <bouyer@antioche.eu.org>
--