我正在尝试在Mac OS X 10.6.8上安装gcc 3.4.6;要安装gcc 3.4.6我需要一个编译器,不知怎的,我能够安装gcc-4.2。现在使用4.2我试图安装3.4.6,它会抛出错误
./gcc.c:716: warning: string length ‘2483’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:723: warning: string length ‘636’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:906: warning: string length ‘529’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:924: warning: string length ‘608’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:1095: error: expected expression before ‘,’ token
./gcc.c:1506: warning: string length ‘833’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c: In function ‘main’:
./gcc.c:6261: warning: format not a string literal and no format arguments
make[1]: *** [gcc.o] Error 1
make: *** [all-gcc] Error 2
有关为何会收到此错误的任何帮助以及解决方案是什么。
答案 0 :(得分:0)
你不能使用新版本的gcc来编译一个非常旧的版本,因为它会导致大量的语法错误。也许你应该找到一个预先编写的版本。