Subject: Re: LUBBOCK kernel build fails
To: Richard Earnshaw <rearnsha@netbsd.org>
From: Ian Zagorskih <ianzag@megasignal.com>
List: port-arm
Date: 06/23/2004 16:38:09
On Wednesday 23 June 2004 16:28, Richard Earnshaw wrote:
> On Wed, 2004-06-23 at 09:15, Ian Zagorskih wrote:
> > NetBSD NBSD1 2.0_BETA NetBSD 2.0_BETA (NBSD1) #1: Tue Jun 15 15:33:23
> > NOVST 2004 ianzag@NBSD1:/usr/src/sys/arch/i386/compile/NBSD1 i386
> >
> > Completely updated from CVS right now and re-buil evbarm tools.
> >
> > ---cut---
> > # cd /sys/arch/evbarm/conf
> > # config LUBBOCK
> > Build directory is ../compile/LUBBOCK
> > Don't forget to run "make depend"
> > # cd ../compile/LUBBOCK/
> > # make depend
> > depending the kern library objects
> > depending the compat library objects
> > # create LUBBOCK/assym.h
> > cat ../../../../arch/arm/arm32/genassym.cf | sh
> > ../../../../kern/genassym.sh cc -mcpu=xscale -ffreestanding
> > -mcpu=xscale -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
> > -Wpointer-arith -Wmissing-prototypes
> > -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss -I.
> > -I../../../../arch -I../../../.. -nostdinc -DCOTULLA -DLUBBOCK
> > -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT > assym.h.tmp && mv
> > -f assym.h.tmp assym.h
> > cc1: error: bad value (xscale) for -mcpu= switch
> > *** Error code 1
> >
> > Stop.
> > make: stopped in /usr/src/sys/arch/evbarm/compile/LUBBOCK
> > ---cut---
>
> You're cross-building, right? If so, you should be using the build
> script and/or the tools and nbmake wrapper that set up your cross
> environment correctly.
>
> You can't use the native x86 compiler to compile an ARM kernel.
>
Ups.. my obvious mistake. Thank you for notice, of course i was wrong trying
to cross-build without preparations :) Fixing..
// wbr