On Thu, 2005-12-08 at 20:48 +0100, Kai Ruemmler wrote:
* Lee Revell <rlrevell(a)joe-job.com> wrote:
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
[...]
What gives? Do I need a different compiler to
build for x86_64?
Yes.
Cross compiling the kernel works like this:
$ make ARCH=<arch> CROSS_COMPILE=<arch-prefix>
The gcc cross compiler for x86_64 is usually named x86_64-linux-gcc.
In the special case of x86 -> x86_64 a 64 bit enabled gcc is sufficient
though (if your binutils support 64 bit). In all other cases you need
a "real" cross compiler.
Can you tell me which Ubuntu/Debian packages to install to make this
work? I did "apt-cache search | grep 64" and did not see any GCC or
binutils packages.
The closest thing I saw was lib64gcc1 which I'm installing now.
Lee