LinuxSir.cn,穿越时空的Linuxsir!

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

安装gcc-2.95.3时的错误

[复制链接]
发表于 2003-5-11 21:49:43 | 显示全部楼层 |阅读模式
在用下面命令安装时出错:
make bootstrap &&
make install &&
ln -sf gcc /opt/gcc2/bin/cc &&
rm -rf /opt/gcc2/{i686-pc-linux-gnu,info,man}



mv: cannot stat `s-crt': No such file or directory
mv: cannot stat `s-crt0': No such file or directory
mv: cannot stat `crtbegin.o': No such file or directory
mv: cannot stat `crtbeginS.o': No such file or directory
mv: cannot stat `crtend.o': No such file or directory
mv: cannot stat `crtendS.o': No such file or directory
mv: cannot stat `gcc-cross': No such file or directory
mv: cannot stat `cc1obj': No such file or directory
mv: cannot stat `enquire': No such file or directory
mv: cannot stat `protoize': No such file or directory
mv: cannot stat `unprotoize': No such file or directory
mv: cannot stat `collect2': No such file or directory
mv: cannot stat `gcov': No such file or directory
mv: cannot stat `*.bp': No such file or directory
mv: cannot stat `*.greg': No such file or directory
mv: cannot stat `*.lreg': No such file or directory
mv: cannot stat `*.combine': No such file or directory
mv: cannot stat `*.flow': No such file or directory
mv: cannot stat `*.cse': No such file or directory
mv: cannot stat `*.jump': No such file or directory
mv: cannot stat `*.rtl': No such file or directory
mv: cannot stat `*.tree': No such file or directory
mv: cannot stat `*.loop': No such file or directory
mv: cannot stat `*.dbr': No such file or directory
mv: cannot stat `*.jump2': No such file or directory
mv: cannot stat `*.sched': No such file or directory
mv: cannot stat `*.cse2': No such file or directory
mv: cannot stat `*.sched2': No such file or directory
mv: cannot stat `*.stack': No such file or directory
mv: cannot stat `*.gcse': No such file or directory
mv: cannot stat `*.flow2': No such file or directory
mv: cannot stat `*.[si]': No such file or directory
mv: cannot stat `libcpp.a': No such file or directory
mv: cannot stat `g++-cross': No such file or directory
mv: cannot stat `cc1plus': No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
mv intl/*.o stage1/intl
mv: cannot stat `intl/*.o': No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
if [ -f as ] ; then ln -s ../as stage1 ; else true ; fi
if [ -f ld ] ; then ln -s ../ld stage1 ; else true ; fi
if [ -f collect-ld ] ; then ln -s ../collect-ld stage1 ; else true ; fi
rm -f stage1/libgcc.a
cp libgcc.a stage1
if [ -f ` if [ -f /usr/src/gcc-build/gcc/../binutils/ranlib ] ; then echo /usr/src/gcc-build/gcc/../binutils/ranlib ; else if [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] ; then echo ranlib; else t='s,x,x,'; echo ranlib | sed -e $t ; fi; fi` ] || ( [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] && [ -f /usr/bin/ranlib
-o -f /bin/ranlib ] ) ; then \
  ` if [ -f /usr/src/gcc-build/gcc/../binutils/ranlib ] ; then echo /usr/src/gcc-build/gcc/../binutils/ranlib ; else if [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] ; then echo ranlib; else t='s,x,x,'; echo ranlib | sed -e $t ; fi; fi` stage1/libgcc.a; \
else true; fi
for f in .. ; do if [ x${f} != x.. ]; then \
  cp stage1/${f} . ; \
else true; \
fi; done
mv cp/*.o stage1/cp
mv: cannot stat `cp/*.o': No such file or directory
make[2]: [c++.stage1] Error 1 (ignored)
make[2]: Leaving directory `/usr/src/gcc-build/gcc'
make CC="stage1/xgcc -Bstage1/ -B/opt/gcc2/i686-pc-linux-gnu/bin/" CFLAGS=" -O2
-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4
-fprefetch-loop-arrays" LDFLAGS="" libdir=/opt/gcc2/lib STAGE_PREFIX=stage1/ LANGUAGES="c proto gcov c++"
make[2]: Entering directory `/usr/src/gcc-build/gcc'
(cd intl && make all)
make[3]: Entering directory `/usr/src/gcc-build/gcc/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/gcc-build/gcc/intl'
stage1/xgcc -Bstage1/ -B/opt/gcc2/i686-pc-linux-gnu/bin/ -c  -DIN_GCC     -O2 -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.3/gcc -I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/../include \
  ../../gcc-2.95.3/gcc/gencheck.c
cc1: Invalid option `-falign-functions=4'
cc1: Invalid option `-fprefetch-loop-arrays'
cc1: bad value (pentium3) for -march= switch
make[2]: *** [gencheck.o] Error 1
make[2]: Leaving directory `/usr/src/gcc-build/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/usr/src/gcc-build/gcc'
make: *** [bootstrap] Error 2
[root@localhost /usr/src/gcc-build]# mv: cannot stat `s-crt': No such file or directory
> mv: cannot stat `s-crt0': No such file or directory
> mv: cannot stat `crtbegin.o': No such file or directory
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: mv:: command not found
[root@localhost /usr/src/gcc-build]# mv: cannot stat `crtbeginS.o': No such file or directory
> mv: cannot stat `crtend.o': No such file or directory
> mv: cannot stat `crtendS.o': No such file or directory
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: mv:: command not found
[root@localhost /usr/src/gcc-build]# mv: cannot stat `gcc-cross': No such file or directory
> mv: cannot stat `cc1obj': No such file or directory
> mv: cannot stat `enquire': No such file or directory
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: mv:: command not found
[root@localhost /usr/src/gcc-build]# mv: cannot stat `protoize': No such file or directory
> mv: cannot stat `unprotoize': No such file or directory
> mv: cannot stat `collect2': No such file or directory
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: mv:: command not found
[root@localhost /usr/src/gcc-build]# mv: cannot stat `gcov': No such file or directory
> mv: cannot stat `*.bp': No such file or directory
> mv: cannot stat `*.greg': No such file or directory
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: mv:: command not found
[root@localhost /usr/src/gcc-build]# mv: cannot stat `*.lreg': No such file or directory
> mv: cannot stat `*.combine': No such file or directory
> mv: cannot stat `*.flow': No such file or directory
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: mv:: command not found
发表于 2003-5-11 22:25:24 | 显示全部楼层
你这是mv命令不对了吧?看看它是不是能正常工作。
 楼主| 发表于 2003-5-11 22:27:34 | 显示全部楼层
好吧
 楼主| 发表于 2003-5-11 22:33:23 | 显示全部楼层
刚刚试了一下  没什么问题
发表于 2003-5-11 22:38:27 | 显示全部楼层
cc1: Invalid option `-falign-functions=4'
cc1: Invalid option `-fprefetch-loop-arrays'
cc1: bad value (pentium3) for -march= switch
看来是CFLAGS设置得不对。
全unset了再编译吧。
 楼主| 发表于 2003-5-12 00:25:36 | 显示全部楼层
老大果然不一样,就是这个问题,现在好了,感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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