hans kaper wrote:
> Op Tue, 25 Jun 2013 21:54:07 +0200 schreef Bruce Dubbs
> <[email protected]>:
>
> >
>> Just to note that the packages in Chapter 5 and Chapter 6 do not have to
>> be identical:
>>
>> http://www.linuxfromscratch.org/~bdubbs/files/updating-lfs.html
>>
>> Just to recap, I built Chapter 5 using LFS 6.6. I then completed
>> Chapters 6+ with SVN-20120610 (About LFS-7.2 and a half).
>>
>> The only issue is that the packages, when you are done with Chapter 5,
>> have to support all the versions specified in the Host System Requirements.
> So I copied the tools I built with LFS 7.3, which worked
> successfullythere, to a new partition on the same system to build
> LFS 7.4 (SVN LFS-BOOK-SVN-20130831 to be exact).
I would think that would work.
> I then started with ch.6, but got stuck building the Linux Headers: ...
> /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lc
> /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld:
cannot find crtn.o: No such file or directory
> collect2: error: ld returned 1 exit status
Translating the above path:
/tools/i686-pc-linux-gnu/bin/ld can't find the libraries in /tools/lib
Use /tools/sbin/ldconfig -v 2>/dev/null | grep -v ^$'\t'
to see what paths the linker is searching.
> So I went back to LFS 7.3 and rebuild the Linux Headers there: no problem!!
>
> So what is wrong with a simple copy of the tools?
Don't know, but the first thing I'd do after entering chroot would be to do:
echo 'main(){}' > dummy.c
gcc dummy.c
readelf -l a.out | grep ': /tools'
rm dummy.c a.out
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page