+ -
当前位置:首页 → 问答吧 → gcc PASS 1 出错

gcc PASS 1 出错

时间:2009-10-31

来源:互联网

我根据 从源代码建立Linux系统系列之(Sysroot LFS 1.1) http://zdbr.net.cn/download/Sysroot-LFS-1.1.htm
做系统时,到第一次编译gcc的时候出现如下错误:
make all-gcc

gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-4.4.2/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../gcc-4.4.2/libiberty/strncmp.c -o strncmp.o
rm -f ./libiberty.a pic/./libiberty.a
i686-pc-linux-gnu.old-ar rc ./libiberty.a \
./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o ./mkstemps.o ./strncmp.o
make[1]: i686-pc-linux-gnu.old-ar: Command not found
make[1]: *** [libiberty.a] Error 127
make[1]: Leaving directory `/slfs/build/gcc-build/libiberty'
make: *** [all-libiberty] Error 2

不知道怎么回事google半天无结果,请高手指点,谢谢

作者: nohappiness   发布时间: 2009-10-31

问题在这一行
make[1]: i686-pc-linux-gnu.old-ar: Command not found
你没按手册做吧,ar都没生成。

作者: 没本   发布时间: 2009-11-01

应该是和我用的版本有关系吧,我用的都是新版本的,哎,按照手册重下所有源码吧

作者: nohappiness   发布时间: 2009-11-02

热门下载

更多