用 gcc 4.1..2 编译 gcc3.2.2 出错 请高手来指点

C、C++和Java语言
回复
gothicane
帖子: 157
注册时间: 2006-08-29 10:31
送出感谢: 0
接收感谢: 0

用 gcc 4.1..2 编译 gcc3.2.2 出错 请高手来指点

#1

帖子 gothicane » 2006-12-07 10:40

出错信息如下,我用的是 ./configure make




gcc -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I../../gcc-3.2.2/gcc -I../../gcc-3.2.2/gcc/. -I../../gcc-3.2.2/gcc/config -I../../gcc-3.2.2/gcc/../include ../../gcc-3.2.2/gcc/read-rtl.c -o read-rtl.o
In file included from ../../gcc-3.2.2/gcc/read-rtl.c:24:
../../gcc-3.2.2/gcc/rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
../../gcc-3.2.2/gcc/rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
../../gcc-3.2.2/gcc/read-rtl.c: In function ‘fatal_with_file_and_line’:
../../gcc-3.2.2/gcc/read-rtl.c:62: warning: traditional C rejects ISO C style function definitions
../../gcc-3.2.2/gcc/read-rtl.c: In function ‘read_rtx’:
../../gcc-3.2.2/gcc/read-rtl.c:662: error: invalid lvalue in increment
make[1]: *** [read-rtl.o] 错误 1
make[1]: Leaving directory `/home/liuxy/gcc-3.2.2-build/gcc'
make: *** [all-gcc] 错误 2
dreamagain
帖子: 17
注册时间: 2006-08-09 15:03
送出感谢: 0
接收感谢: 0

#2

帖子 dreamagain » 2006-12-27 11:24

为什么用高版本编低版本?好像都是低版本编高版本,然后再用新版本重编
回复

回到 “C/C++/Java”