找回密码
 注册
查看: 808|回复: 2

LFS第一遍安装GCC-3.4.3不成功

[复制链接]
发表于 2005-1-29 12:15:43 | 显示全部楼层 |阅读模式
按手册上选择configure选项,make提示:
make[2]: Entering directory `/mnt/lfs/usr/sources/gcc-build/gcc'
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/mnt/lfs/usr/sources/gcc-3.4.3/gcc -I/mnt/lfs/usr/sources/gcc-3.4.3/gcc/. -I/mnt/lfs/usr/sources/gcc-3.4.3/gcc/../include /mnt/lfs/usr/sources/gcc-3.4.3/gcc/genmodes.c -o genmodes.o
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/mnt/lfs/usr/sources/gcc-3.4.3/gcc -I/mnt/lfs/usr/sources/gcc-3.4.3/gcc/. -I/mnt/lfs/usr/sources/gcc-3.4.3/gcc/../include /mnt/lfs/usr/sources/gcc-3.4.3/gcc/errors.c -o errors.o
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -static -o genmodes \
genmodes.o errors.o ../libiberty/libiberty.a
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [genmodes] Error 1
make[2]: Leaving directory `/mnt/lfs/usr/sources/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/mnt/lfs/usr/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2
求教解决办法?
发表于 2005-1-29 15:04:30 | 显示全部楼层
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.


From ----
http://lfs.osuosl.org/lfs/faq.html#header
回复

使用道具 举报

 楼主| 发表于 2005-2-2 04:30:43 | 显示全部楼层
谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-14 00:28 , Processed in 0.024583 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表