ld cannot find -lc (chap. 5 LFS-6)

Ron Keller rakeller at shaw.ca
Thu Dec 16 23:56:32 PST 2004


I have run into a problem in Chapter 5 of the LFS-6.0 book.  The book 
suggests performing  sanity check after adjusting the toolchain. And 
this is whee I am having a problem.

Command line:

  echo 'main(){}' > dummy.c    --- this produces no error

   cc dummy.c --- this produces the following error::

   /mnt/lfs/tools/bin ../lib/gcc/i586-pc-linux-gnu/3.4.1 
../../../../i586-pc-linux-gnu/bin/ld: cannot find -lc
   collect 2: ld returned 1 exit status


My host system is a bootable LFS cd which was created from the file 
boot-cd-6.0-2004.0912.iso.  I  have bennvery careful to follow the 
instructions in the book.  Now what?  Help would be appreciated

rk

   

    



More information about the lfs-support mailing list