[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't compile kernel -- "code model ... not supported"


On Fri, May 21, 2004 at 11:56:32AM +0000, xsdg wrote:
> Hi.  I'm trying to compile 2.6.6-mm4 for my Athlon 64 2800+.  I went 
> through `make menuconfig` with ARCH=x86_64, however, when I try to 
> compile, I get the message shown below.  At the suggestion of calc in 
> irc.freenode.net/#debian-amd64, I tried booting with the generic 
> 64-bit-capable kernel at 
> http://people.debian.org/~jgoerzen/vmlinuz-2.6.6-amd64, but I merely 
> obtained the same message.

To clarify this: the kernel booted, but the compiler still complained,
You need to cross-compile if you still have 32bit userland, or install
pure64 first. Please look at the amd64 howto on alioth:


> cc1: error: code model `kernel' not supported in the 32 bit mode
> make[1]: *** [scripts/empty.o] Error 1
> make: *** [scripts] Error 2

If you boot with the 32/64bit kernel found at John Goezen's site, you
will be able to install pure64 and compile the kernel in there. 

Frederik Schueler


Reply to: