|
|

楼主 |
发表于 2006-3-24 21:36:34
|
显示全部楼层
还是有错:
- gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.1.0/gcc -I../../gcc-4.1.0/gcc/build -I../../gcc-4.1.0/gcc/../include -I../../gcc-4.1.0/gcc/../libcpp/include -o build/genmddeps.o ../../gcc-4.1.0/gcc/genmddeps.c
- In file included from ./tm.h:4,
- from ../../gcc-4.1.0/gcc/genmddeps.c:21:
- ./options.h:547: error: parse error before '-' token
- make[2]: *** [build/genmddeps.o] 错误 1
- make[2]: Leaving directory `/sources/gcc-build/gcc'
- make[1]: *** [stage1_build] 错误 2
- make[1]: Leaving directory `/sources/gcc-build/gcc'
- make: *** [bootstrap] 错误 2
复制代码
下面是我configure命令:
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in && sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in && mkdir ../gcc-build && cd ../gcc-build && ../gcc-4.1.0/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,objc,java,treelang && make bootstrap && make -k check && ../gcc-4.1.0/contrib/test_summary |
|