Has anyone been able to build LFS on a 64bit system?

brown wrap gramos at yahoo.com
Thu Feb 4 08:17:36 PST 2010


I am following the instructions, but as you can see from below, it blew up on the 2nd pass of binutils. The first 'check' on gcc seems to pass:

lfs:/mnt/lfs/sources/6.6$ cd gcc-build
lfs:/mnt/lfs/sources/6.6/gcc-build$ echo 'main(){}' > dummy.c
lfs:/mnt/lfs/sources/6.6/gcc-build$ $LFS_TGT-gcc -B/tools/lib dummy.c
lfs:/mnt/lfs/sources/6.6/gcc-build$ readelf -l a.out | grep ': /tools'
      [Requesting program interpreter: /tools/lib64/ld-linux-x86-64.so.2]


But the 2nd test in binutils failed.



--- On Wed, 2/3/10, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:

From: Bruce Dubbs <bruce.dubbs at gmail.com>
Subject: Re: Has anyone been able to build LFS on a 64bit system?
To: "LFS Support List" <lfs-support at linuxfromscratch.org>
Date: Wednesday, February 3, 2010, 10:19 PM

Justin P. Mattock wrote:
> On 02/03/10 20:25, brown wrap wrote:
>> Yesterday I thought I had made it through pass one. That was probably
>> because any of the compiles I made didn't require the tests being run.
>> So today I started off with pass 2, and the I think it was glibc failed
>> right off the bat. So when I saw the new release of 6.6, I thought I'd
>> start all over with it. Now I can't get gcc to compile:
>>
>> checking for x86_64-lfs-linux-gnu-gcc...
>> /mnt/lfs/sources/6.6/gcc-build/./gcc/xgcc
>> -B/mnt/lfs/sources/6.6/gcc-build/./gcc/
>> -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/
>> -isystem /tools/x86_64-lfs-linux-gnu/include -isystem
>> /tools/x86_64-lfs-linux-gnu/sys-include
>> checking for suffix of object files... configure: error: in
>> `/mnt/lfs/sources/6.6/gcc-build/x86_64-lfs-linux-gnu/libgcc':
>> configure: error: cannot compute suffix of object files: cannot compile
>> See `config.log' for more details.
>> make[1]: *** [configure-target-libgcc] Error 1
>> make[1]: Leaving directory `/mnt/lfs/sources/6.6/gcc-build'
>> make: *** [all] Error 2

> if your wanting to build an x86_64 look at clfs
> there you choose if you want pure64 or multilib

No, that's not necessary.  You only need to follow those instructions if 
you are trying to do 32->64 or want to build a multi-lib system.

I'm currently building 6.6-rc1 as a pure 64-bit system, its working on 
Chapter 6 GCC now. The GCC build was fine.  It's doing the tests.  There 
are no problems so far.  The only requirement is to start from a 64-bit 
distro (and to follow directions).

   -- Bruce



-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20100204/8255f957/attachment.html>


More information about the lfs-support mailing list