Can a 32-bit RHEL4 userland work with a 64-bit kernel?

Posted by James on Server Fault See other posts from Server Fault or by James
Published on 2010-03-28T12:43:24Z Indexed on 2010/03/28 20:33 UTC
Read the original article Hit count: 302

Filed under:
|
|

Is there a way to change an i386 RHEL4 machine to run an amd64 kernel, but ensure that it still builds software into same i386 binaries?

On Debian this seems quite straightforward: just install an amd64 kernel (worst case, build one like this guy: http://www.debian-administration.org/users/jonesy/weblog/1) and prefix everything with "linux32". Then everything that considers uname -m will be unchanged, I just need to handle the few cases that consider uname -r.

What is the Red Hat equivalent? Is the only way a full 64-bit installation on another disk and then chrooting back to the 32-bit system before anyone builds anything? (Even the best examples of that seem to be Debian-based.)

Background: We make a large system that runs on (a variant of) i386 RHEL4. However, some of the larger RHEL build machines now have enough RAM that they might benefit from going 64-bit (for the kernel and maybe some of the bigger build steps). Our build system doesn't support cross-compilation.

© Server Fault or respective owner

Can a 32-bit RHEL4 userland work with a 64-bit kernel?

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2010-03-28T12:43:24Z Indexed on 2010/03/28 12:53 UTC
Read the original article Hit count: 302

Filed under:
|
|

Is there a way to change an i386 RHEL4 machine to run an amd64 kernel, but ensure that it still builds software into same i386 binaries?

On Debian this seems quite straightforward: just install an amd64 kernel (worst case, build one like this guy: http://www.debian-administration.org/users/jonesy/weblog/1) and prefix everything with "linux32". Then everything that considers uname -m will be unchanged, I just need to handle the few cases that consider uname -r.

What is the Red Hat equivalent? Is the only way a full 64-bit installation on another disk and then chrooting back to the 32-bit system before anyone builds anything? (Even the best examples of that seem to be Debian-based.)

Background: We make a large system that runs on (a variant of) i386 RHEL4. However, some of the larger RHEL build machines now have enough RAM that they might benefit from going 64-bit (for the kernel and maybe some of the bigger build steps). Our build system doesn't support cross-compilation.

© Stack Overflow or respective owner

Related posts about redhat

Related posts about 32bit-64bit