Re: [linux-audio-dev] Cross compiling the kernel

From: Lee Revell <rlrevell@email-addr-hidden-job.com>
Date: Sun Dec 11 2005 - 21:24:44 EET

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
details.

Lee
Received on Mon Dec 12 00:15:05 2005

This archive was generated by hypermail 2.1.8 : Mon Dec 12 2005 - 00:15:05 EET