[linux-audio-dev] Cross compiling the kernel

Lee Revell rlrevell at joe-job.com
Sun Dec 11 19:24:44 UTC 2005

On Sun, 2005-12-11 at 19:21 +0100, Florian Weimer wrote:
> * Lee Revell:
> > All I am trying to do is compile an x86_64 kernel on i386 machine.  It
> > dos not work:
> This a few helper scripts; building an AMD64 kernel on i386 is not
> exactly cross-compiling.  Basically, the helper scripts must invoke
> "gcc -m64" when no -m32 option is given, and "gcc" if there's an
> "-m32" option ("-m64 -m32" does *not* override the -m64).  More magic
> is required for objcopy, otherwise the compiled kernel will crash on
> boot.
> The Debian kernel package building infrastructure contains the
> necessary scripts AFAIK.

Actually I was able to get this fixed.  This was a bug in the kernel
build system where it didn't grok biarch toolchains like Ubuntu
provides.  Andi Kleen sent me a kernel patch, presumably it will be
fixed in 2.6.15.  Check the LKML archives for the past few days for


More information about the Linux-audio-dev mailing list