Crosscompiling from 32bits to 64bits on AMD64

Ken Moffat ken at linuxfromscratch.org
Wed Nov 9 08:55:08 PST 2005


On Wed, 9 Nov 2005, Matt Darcy wrote:

>
> Your rebooting into your system that is held on /mnt/lfs - so it will not 
> overwrite any of your host system binaries or libraries.
>
> so instead of chrooting into /mnt/lfs
> your booting a system that lives on /mnt/lfs
>
> You only boot to allow a 64bit kernel so you can use your 64bit tools to make 
> your final syste,
>
> does that make sense to you ?
>

  For completeness, you could always cross-compile a 64-bit kernel 
without modules and tell the bootloader to use that with the 32-bit 
userspace (host) system, reboot into that, mount the tools you've built 
at /mnt/lfs, then chroot.

  As Stan said, don't forget to enable IA_32 emulation in the 64-bit 
kernel if you do this or if you build multilib.

Ken
-- 
  das eine Mal als Tragödie, das andere Mal als Farce


More information about the cross-lfs mailing list