On Mon, Oct 19, 2009 at 12:52 AM, kevin631012 <[email protected]> wrote: > Hi all, > I almost done all steps in LFS but I got a error when install grub > > here is paragraph in chapter 8.4 > Caution > This package will only build for x86 and x86_64 architectures containing > 32-bit libs. If you chose to build on x86_64 without 32-bit libraries (no > multilib), then you must use LILO instead. Information on “boot loading” for > other architectures should be available in the usual resource-specific > locations for those architectures. > > Q1: my computer is X86_64 , but I wonder how to know what 32-bit libraries is > or not ? > > Q2: following is error message I got in config.log when I do "configure > --prefix=/usr" , and I am confused about it .
Q1: If you compile LFS from a i386 distribution (32bit), LFS will be 32bit. If you compile it from a X86_64 distribution, LFS will be 64bit. Q2: Grub has to be compiled with a 32bit compiler. The way the book is currently written, it only builds either 32bit, or 64bit. [The reason why you would want 32bit over 64bit is mostly due to compatibility for programs that do not support 64bit. At this time, Wine, and Grub1 are the only two programs I know of that only run w/ 32bit compilers. If I had to guess, binary only codec's may want 32bit as well]. The simplest approach would be to download & install another bootloader such as LILO or Grub2 (At this time, Grub1 is in the book) I believe grub2 can be compiled 64bit, (You can download it at http://www.gnu.org/software/grub/grub-2-download.en.html). Bruce has recently written a hint on how to compile & install this, viewable at http://www.linuxfromscratch.org/hints/downloads/files/grub2.txt P.S. Sorry if I am misrepresenting the 32bit vs 64bit battle. -- Nathan Coulson (conathan) ------ Location: Brittish Columbia, Canada Timezone: PST (-8) Webpage: http://www.nathancoulson.com -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
