LinuxSir.cn,穿越时空的Linuxsir!

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

第一次编译GCC3.3.1出错为什么跟他们讲的都不一样?

[复制链接]
发表于 2004-12-5 16:52:14 | 显示全部楼层 |阅读模式
我的主系统redflag2.4
   内核2.4.2.15我
编译临时系统时,第一次编译BINUTILS正常,但在第一次编译GCC3.3.1的时候
出现如下错误:
make[1]: Entering directory `/root/gcc-build/libiberty'
make[2]: Entering directory `/root/gcc-build/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/gcc-build/libiberty/testsuite'
make[1]: Leaving directory `/root/gcc-build/libiberty'
make[1]: Entering directory `/root/gcc-build/gcc'
(cd intl && make all)
make[2]: Entering directory `/root/gcc-build/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/gcc-build/gcc/intl'
gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H  
  -I. -I. -I../../gcc-3.3.1/gcc -I../../gcc-3.3.1/gcc/.
-I../../gcc-3.3.1/gcc/config -I../../gcc-3.3.1/gcc/../include
../../gcc-3.3.1/gcc/ggc-common.c -o ggc-common.o
In file included from /usr/include/string.h:346,
                 from ../../gcc-3.3.1/gcc/system.h:116,
                 from ../../gcc-3.3.1/gcc/ggc-common.c:25:
/usr/include/bits/string2.h: In function `__stpcpy_small':
/usr/include/bits/string2.h:611: warning: pointer targets in return differ in
signedness
../../gcc-3.3.1/gcc/ggc-common.c: In function `ggc_rlimit_bound':
../../gcc-3.3.1/gcc/ggc-common.c:294: storage size of `rlim' isn't known
../../gcc-3.3.1/gcc/ggc-common.c:294: warning: unused variable `rlim'
make[1]: *** [ggc-common.o] Error 1
make[1]: Leaving directory `/root/gcc-build/gcc'
make: *** [all-gcc] Error 2                    

如上错误中提示好像是gcc-common.o出错,是什么原因啊?
主系统的GCC是2.9.1版本的经升级到2.95还是出错。
求求大侠们救救!
发表于 2004-12-5 22:37:57 | 显示全部楼层
建议你的主系统的gcc等版本与编译的版本相同,比较不容易出错。
 楼主| 发表于 2004-12-6 08:28:33 | 显示全部楼层
谢谢,估计是我的版本太低了,
编译肯定不能通过的,因为GLIBC需要3.2以上的GCC版本,
不过不知道GCC2.95升级到3.3.1中间需要哪几个版本,
因为2.95好像不能直接升级到3.3.1!请大侠们指教。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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