Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Compiling 32-bit kernel 2.6.X under 64-bit kernel
  • From: "Anthony Brock" <Anthony_Brock@xxxxxxx>
  • Date: Wed, 19 May 2004 14:22:31 -0700
  • Message-id: <s0ab6db5.078@xxxxxxxxxxxxxx>
Anyone know how (or if it is possible) to compile a 32-bit kernel on a 64-AMD machine? I have an AMD 64-bit server (SuSE 9.1 Professional) with the 64-OS installed (latest patch applied). I've tried running things with:

linux32 make menuconfig - this seems to work
linux32 make vmlinux - fails with:

CC scripts/empty.o
cc1: error: CPU you selected does not support x86-64 instruction set
cc1: error: CPU you selected does not support x86-64 instruction set
make[1]: *** [scripts/empty.o] Error 1
make: *** [scripts] Error 2

I also tried editing the Makefile to add '-m32' to the HOSTCFLAGS, HOSTCXXFLAGS and CFLAGS, and then executing:

linux32 make vmlinux

This gets farther, but errors during the compile of 'arch/i386/kernel/asm-offsets.s' (a lot of warnings and missing structure members). Any ideas or help is greatly appreciated!

Tony


< Previous Next >
This Thread
  • No further messages