On Thu, Oct 14, 2010 at 01:18:28PM +0200, Alois Seifl wrote: > > BTW is it possible to build GCC for a different platform e.g. a crosscompiler > for x86 to x64 or x64 to arm? > Sorry, missed this question when you posted it.
I think the correct answer is "it all depends" ;-) If all you want to do is compile a kernel, then yes, in theory you can build a cross-gcc. See the first chapter of the main cross-lfs book. So, you should be able to run an x86_64 kernel on i686 userspace. I say "in theory" because it doesn't alway work - my ppc64 needs a 64-bit kernel (as in "the kernel forces this", and I used to be able to build everything as 32-bit ppc, and then build new binutils and gcc (C-only) in /opt/kgcc. But some time in the last 4 years or so, that broke. My ppc build (based on LFS a month or so after 6.6 was released) totally failed to build the kernel tools. If you *really* want to cross-compile, see clfs. I've always said that cross-compiling is not something to undertake lightly, and I've seen no reasons to change that stance. If you want to build LFS on x86_64 (I don't know of any "x64") the alternative is to use a Live CD from a distro, or even install a distro. Actually, installing a distro isn't a bad idea, anyone using LFS as their main system needs at least two '/' partitions for current and next systems, we don't support upgrading the toolchain in-place. Consider sharing /home and /boot (i.e. separate partitions) - once you've got rid of the distro you can then sort out the user numbers if you want to. For arm in its many flavours, I have neither interest, nor suggestions. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
