Subject: Re: compiling a 32bit kernel
To: matthew green <mrg@eterna.com.au>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc64
Date: 11/11/2001 22:48:13
On Mon, Nov 12, 2001 at 06:07:28AM +1100, matthew green wrote:
>    
>    Well, it doesn't for me.
>    config GENERIC32; cd ../compile/GENERIC32; make depend && make
>    fail the way I described.
>    I forgot to add that I just sucessfully ran a build.sh on this machine,
>    to the toolchain is up to date.
> 
> 
> hmm.  i build GENERIC32 on my lapdog just now using the freshly
> built toolchain i built via:
> 
> 	make MACHINE=sparc64 MACHINE_ARCH=sparc do-make-tools
> 
> can you use file(1) to find all the sparcv9 objects, and check
> out what their compile looks like... something is going wrong
> for your build.

All objects are sparcv9. They're compiled with:
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-uninitialized -Wno-main -Wa,-Av9a -mno-fpu -I. -I../../../../arch -I../../../.. -nostdinc -DSUN4U -DLKM -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -Dsparc64  -c swapnetbsd.c
(this is just an example).

BTW, do I need a special toolchain to build a 32bit kernel ? I though
the sparc64 toolchain could do it ...

I'm rebuilding a toolchain using your settings, I'll see if it
helps.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--