我正在尝试构建交叉编译器并遵循本教程:GCC Cross-Compiler - OSDev Wiki。我已经下载了文章中提到的最新gcc和一些库等。
问题在于构建GCC本身,特别是在make all-gcc
命令。运行此命令后,我收到了这些错误:
In file included from ../../gcc-5.2.0/gcc/graphite.c:88:0:
../../gcc-5.2.0/gcc/graphite-poly.h:398:43: error: ‘isl_constraint’ has not been declared
extern void print_isl_constraint (FILE *, isl_constraint *);
^
../../gcc-5.2.0/gcc/graphite-poly.h:402:35: error: variable or field ‘debug_isl_constraint’ declared void
extern void debug_isl_constraint (isl_constraint *);
^
../../gcc-5.2.0/gcc/graphite-poly.h:402:35: error: ‘isl_constraint’ was not declared in this scope
../../gcc-5.2.0/gcc/graphite-poly.h:402:51: error: expected primary-expression before ‘)’ token
extern void debug_isl_constraint (isl_constraint *);
^
make[1]: *** [graphite.o] Error 1
make[1]: Leaving directory `/home/_tos/src/build-gcc/gcc'
make: *** [all-gcc] Error 2
我想我可以修复这些代码并且它可以正常工作,但还有其他更好的解决方案吗?
由于