[linux-audio-dev] Cross compiling the kernel

Lee Revell rlrevell at joe-job.com
Thu Dec 8 18:46:16 UTC 2005


Hello,

All I am trying to do is compile an x86_64 kernel on i386 machine.  It
dos not work:

$ ARCH=x86_64 make oldconfig

<no errors>

$ ARCH=x86_64 make 
  CHK     include/linux/version.h
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC      arch/x86_64/kernel/asm-offsets.s
arch/x86_64/kernel/asm-offsets.c:1: error: code model 'kernel' not
supported in the 32 bit mode
make[1]: *** [arch/x86_64/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

What gives?  Do I need a different compiler to build for x86_64?
Shouldn't this Just Work?

Lee




More information about the Linux-audio-dev mailing list