Thanks rcb,
This solves the question on my Ubuntu box. Ubuntu provides gcc-multilib packages. Here is what I installed on this box (most of them pulled in because of dependencies):
g++-4.2-multilib (4.2.4-1ubuntu3)
gcc-4.2-multilib (4.2.4-1ubuntu3)
lib64gcc1 (1:4.2.4-1ubuntu3)
lib64gomp1 (4.2.4-1ubuntu3)
lib64stdc++6 (4.2.4-1ubuntu3)
libc6-amd64 (2.7-10ubuntu4)
libc6-dev-amd64 (2.7-10ubuntu4)
I was able to compile stock 2.6.18 kernel with this setup with the following command:
Code:
make ARCH=x86_64 bzImage
I did not need to anything to CROSS_COMPILE variable in the top Makefile.
Before compiling I run:
Code:
make ARCH=x86_64 menuconfig
and changing processor type to "Generic X86_64"
However, RedHat does not seem to provide gcc multilib packages and RHEL5 is our official build environment. I wonder if anybody knows how to do this trick on RHEL5.
Any help greatly appreciated.
Piotr