[lfs-support] Error building Headers in ch. 6

hans kaper spakyelj at xs4all.nl
Sat Sep 7 07:34:53 PDT 2013


Op Tue, 25 Jun 2013 21:54:07 +0200 schreef Bruce Dubbs <bruce.dubbs at gmail.com>:

  >
> 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.
>
>    -- Bruce
>


So I copied the tools I built with LFS 7.3, which worked successfully there, to a new partition on the same system to build LFS 7.4 (SVN LFS-BOOK-SVN-20130831 to be exact).
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
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
................................
CHK     include/generated/uapi/linux/version.h
   HOSTCC  scripts/basic/fixdep
/tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
.......................................
collect2: error: ld returned 1 exit status
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
FAILED!

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?


Hans.



More information about the lfs-support mailing list