分页: 1 / 1

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

发表于 : 2006-12-07 10:40
gothicane
出错信息如下,我用的是 ./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

发表于 : 2006-12-27 11:24
dreamagain
为什么用高版本编低版本?好像都是低版本编高版本,然后再用新版本重编