|
|
发表于 2005-11-18 19:12:12
|
显示全部楼层
ld: cannot find -lc
You get a message early in chapter 5 (LFS-4.1) or at the first pass of gcc (LFS CVS) which ends like this:
-static -o gengenrtl \ gengenrtl.o ../libiberty/libiberty.a
ld: cannot find -lc
collect2: ld returned 1 exit status
Your host system is probably Mandrake 9 or higher. By default, its base system does not have a static C library (/usr/lib/libc.a) which is required for the static compilation of packages.
You need to install the glibc-static-devel RPM, which is on the third CD. You can verify the succesfull installation by verifying that /usr/lib/libc.a exists. If you're using LFS 4.1, check that everything in $LFS/static/bin is built static by using file $LFS/static/bin/*. If a package is not statically linked, reinstall it with the instructions from chapter 5. |
|