lanas wrote: > Folks, > > I'm still unclear about the very simple following thing. I've built > successfully a LFS system using VmWare running a 32-bit version of > Fedora 8. That's all sweet and nice. The host is Fedora Core 6 > x86_64. I'm about to embark on building a x86_64 version using CLFS > but, I'm wondering why should I cross-compile (and build > cross-compile tools) when the host runs the target system ? Shouldn't > the packages be built natively ?
All the final system packages (i.e., the ones in chapter 6 in LFS) should (ideally) be built natively. Whether you use CLFS or LFS, this is going to be the case. The reason for CLFS is so you can cross compile your temporary system, ostensibly, for these reasons: 1. Allows you to begin work from a wider range of machines and hosts. 2. Should provide good separation from the host system. 3. If you have a 64-bit kernel on your host system, but only 32-bit dev tools, you can create the 64-bit temporary dev tools by cross-compiling. Besides this, CLFS also has instructions to produce a multilib system (32-bit and 64-bit). That being said, as of now, you can natively compile LFS on a 64-bit system provided you: 1. Build a 64-bit only system, no multilib 2. Start from a host that has both a 64-bit kernel and 64-bit dev tools. If you look on the LiveCD servers, such a LFS LiveCD exists. You can use either the principles found in DIY-Linux or the jh branch of the LFS book as a guideline. DIY is geared toward a more advanced audience, and the jh branch is not currently up-to-speed with the current LFS development book (although it isn't far behind, mostly a few package version changes). A rendered copy of it is here: http://linuxfromscratch.org/~jhuntwork/lfs-JH/ Be warned that building 64-bit LFS natively is not yet a community supported venture (although several have done it). The jh branch doesn't even yet cover a proper boot loader. Also, you aren't guaranteed help if you run into trouble. -- JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
