how to compile 32 bit kernel on 64bit system
I want to compile a 32bit kernel on a 64bit computer with a 64bit compiler. I'm using the 2.4 kernel branch which doesn't want to compile at all on my computer at all, even when I leave on 64 bit.
I'm using Suse10 with gcc 4.0 gcc 32-bit 4.0 installed.
I tried the following flag, ARCH=i386 but it doesn't work. After I try to compile I end up getting this message
init/main.c:1: error: CPU you selected does not support x86-64 instruction set
Which is mysterious because under cpu options I have selected 386. But regardless, I get the same error message even with 64 selected.
And won't even compile straight, with no arch flags and just the following commands
make dep
make bzImage
It returns the following error.
/home/jnl/linux-2.4.32/include/asm/processor.h:71: error: array type has incomplete element type
What can I do here?
Last edited by slantoflight; 03-14-2006 at 07:04 AM.
|