高手急救,在线等,安装gcc4.2.3是出错!

内核编译和嵌入式产品的设计与开发
回复
dreamkeeper
帖子: 19
注册时间: 2008-05-31 19:32
送出感谢: 0
接收感谢: 0

高手急救,在线等,安装gcc4.2.3是出错!

#1

帖子 dreamkeeper » 2008-10-18 17:15

xiaer@xiaer-desktop:~/桌面/gcc-build$ grep Error gcc-check-log
make[1]: *** [check-fixincludes] Error 2
make[2]: [check-gcc] Error 127 (ignored)
make[2]: [check-g++] Error 127 (ignored)
make[2]: [check-objc] Error 127 (ignored)
make[1]: *** [check-target-libstdc++-v3] Error 2
make[1]: *** [check-target-libmudflap] Error 2
make[1]: *** [check-target-libssp] Error 2
make[1]: *** [check-target-libobjc] Error 2
make[1]: *** [check-target-libiberty] Error 2
make[1]: *** [check-target-libffi] Error 2
make[1]: *** [check-target-libjava] Error 2
make[1]: *** [check-target-zlib] Error 2
make[1]: *** [check-target-boehm-gc] Error 2
make[1]: *** [check-target-libgomp] Error 2
make: *** [do-check] Error 2
xiaer@xiaer-desktop:~/桌面/gcc-build$ make install
make[1]: Entering directory `/home/xiaer/桌面/gcc-build'
/bin/sh ../gcc-4.2.3/mkinstalldirs /usr/local/gcc-4.2.3 /usr/local/gcc-4.2.3
cd: 5: can't cd to ./fixincludes
make[1]: *** [install-fixincludes] Error 2
make[1]: Leaving directory `/home/xiaer/桌面/gcc-build'
make: *** [install] Error 2
xiaer@xiaer-desktop:~/桌面/gcc-build$ gcc --version
gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu1)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



这是错误,我是要把当前的gcc4.2.4卸掉,然后换成gcc4.2.3因为我的内核是4.2.3编译的所以要还,现在用下面的方法安装出问题了,在make install 后,发现版本还没还过来,请高手指点!
1.
$ tar xvf gcc-4.2.3.tar.gz
2.
$ mkdir gcc-build
3.
$ cd gcc-build
4.
$../gcc-4.2.3/configure --prefix=/usr/local/gcc-4.2.3 \
5.
--enable-threads=posix --disable-checking \
6.
--enable--long-long \
7.
--host=i386-redhat-linux \
8.
--with-system-zlib \
9.
--enable-languages=c,c++,java
10.

11.
$ make bootstrap //重复编译自身
12.
$ make -k check 2>&1 | tee gcc-check-log//-k跳过错误重定向到gcc-check-log
13.
$ grep Error gcc-check-log //查看错误信息
14.
# make install
a4youma
帖子: 8
注册时间: 2009-11-19 23:21
送出感谢: 0
接收感谢: 0

Re: 高手急救,在线等,安装gcc4.2.3是出错!

#2

帖子 a4youma » 2009-11-24 23:00

帮你顶顶~~~
回复

回到 “内核及嵌入式开发”