LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1005|回复: 2

第一次LFS,编译gcc就出错

[复制链接]
发表于 2003-11-23 22:40:19 | 显示全部楼层 |阅读模式
出错信息如下:
Bootstrapping the compiler
make[1]: Entering directory `/mnt/lfs/sources/lfs-packages/gcc-build/gcc'
make CC=" stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/" \
         STAGE_PREFIX=stage1/ \
         ADAC="\$(CC)" AR_FOR_TARGET="ar" RANLIB_FOR_TARGET="ranlib" CFLAGS="-g -O2" LDFLAGS="-static" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/tools/lib LANGUAGES="c gcov " MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
make[2]: Entering directory `/mnt/lfs/sources/lfs-packages/gcc-build/gcc'
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H -DGENERATOR_FILE -static -o gengenrtl \
gengenrtl.o ../libiberty/libiberty.a
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [gengenrtl] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/lfs-packages/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/lfs-packages/gcc-build/gcc'
make: *** [bootstrap] Error 2
 楼主| 发表于 2003-11-23 23:22:20 | 显示全部楼层

补充一下

是在执行 make BOOT_LDFLAGS="-static" bootstrap 命令时出错的。
由于是第一次,完全按照5.0版进行 。
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=75123
发表于 2003-11-24 15:44:06 | 显示全部楼层
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
没有glibc的头文件.要在主系统里装上.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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