GCC кросс-компилятор говорит, что graphite.o не удалось? - PullRequest
0 голосов
/ 10 апреля 2019

Я пытаюсь собрать кросс-компилятор GCC в Ubuntu по инструкции от https://wiki.osdev.org/GCC_Cross-Compiler. Проблема в том, что когда я даю команду make all-gcc, появляется следующая ошибка.

/usr/local/include/isl/ctx.h:108:8: error: attempt to use poisoned "malloc"
        malloc(size)))
        ^
/usr/local/include/isl/ctx.h:112:8: error: attempt to use poisoned "realloc"
        realloc(ptr,size)))
        ^
In file included from /usr/include/isl/val.h:6:0,
                 from ../../gcc-7.3.0/gcc/graphite.h:28,
                 from ../../gcc-7.3.0/gcc/graphite.c:56:
/usr/local/include/isl/multi.h:19:1: error: ‘isl_multi_aff’ does not name a type
 ISL_DECLARE_MULTI(aff)
 ^
/usr/local/include/isl/multi.h:19:1: error: ‘isl_multi_aff’ was not declared in this scope
 ISL_DECLARE_MULTI(aff)
 ^
/usr/local/include/isl/multi.h:19:1: error: ‘multi’ was not declared in this scope
 ISL_DECLARE_MULTI(aff)
 ^
/usr/local/include/isl/multi.h:19:1: error: expected primary-expression before ‘enum’
 ISL_DECLARE_MULTI(aff)
 ^
/usr/local/include/isl/multi.h:19:1: error: expression list treated as compound expression in initializer [-fpermissive]
 ISL_DECLARE_MULTI(aff)
 ^
/usr/local/include/isl/multi.h:19:1: error: ‘isl_multi_aff’ does not name a type
 ISL_DECLARE_MULTI(aff)
 ^
/usr/local/include/isl/multi.h:20:1: error: ‘isl_multi_pw_aff’ does not name a type
 ISL_DECLARE_MULTI(pw_aff)
 ^
/usr/local/include/isl/multi.h:20:1: error: ‘isl_multi_pw_aff’ was not declared in this scope
 ISL_DECLARE_MULTI(pw_aff)
 ^
/usr/local/include/isl/multi.h:20:1: error: ‘multi’ was not declared in this scope
 ISL_DECLARE_MULTI(pw_aff)
 ^
/usr/local/include/isl/multi.h:20:1: error: expected primary-expression before ‘enum’
 ISL_DECLARE_MULTI(pw_aff)
 ^
/usr/local/include/isl/multi.h:20:1: error: expression list treated as compound expression in initializer [-fpermissive]
 ISL_DECLARE_MULTI(pw_aff)
 ^
/usr/local/include/isl/multi.h:20:1: error: ‘isl_multi_pw_aff’ does not name a type
 ISL_DECLARE_MULTI(pw_aff)
 ^
/usr/include/isl/val.h:21:1: error: ‘isl_space’ was not declared in this scope
 ISL_DECLARE_MULTI(val)
 ^
/usr/include/isl/val.h:21:1: error: ‘space’ was not declared in this scope
 ISL_DECLARE_MULTI(val)
 ^
/usr/include/isl/val.h:21:1: error: expected primary-expression before ‘*’ token
 ISL_DECLARE_MULTI(val)
 ^
/usr/include/isl/val.h:21:1: error: ‘list’ was not declared in this scope
 ISL_DECLARE_MULTI(val)
 ^
/usr/include/isl/val.h:21:1: error: expression list treated as compound expression in initializer [-fpermissive]
 ISL_DECLARE_MULTI(val)
 ^
/usr/include/isl/val.h:21:1: error: use of enum ‘isl_dim_type’ without previous declaration
 ISL_DECLARE_MULTI(val)
 ^
In file included from ../../gcc-7.3.0/gcc/graphite.h:28:0,
                 from ../../gcc-7.3.0/gcc/graphite.c:56:
/usr/include/isl/val.h:22:22: error: expected constructor, destructor, or type conversion before ‘(’ token
 ISL_DECLARE_MULTI_NEG(val)
                      ^
/usr/include/isl/val.h:45:1: error: ‘__isl_null’ does not name a type
 __isl_null isl_val *isl_val_free(__isl_take isl_val *v);
 ^
/usr/include/isl/val.h:80:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_zero(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:81:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_one(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:82:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_negone(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:83:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_nonneg(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:84:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_nonpos(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:85:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_pos(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:86:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_neg(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:87:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_int(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:88:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_rat(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:89:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_nan(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:90:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_infty(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:91:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_neginfty(__isl_keep isl_val *v);
 ^
/usr/include/isl/val.h:95:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_lt(__isl_keep isl_val *v1, __isl_keep isl_val *v2);
 ^
/usr/include/isl/val.h:96:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_le(__isl_keep isl_val *v1, __isl_keep isl_val *v2);
 ^
/usr/include/isl/val.h:97:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_gt(__isl_keep isl_val *v1, __isl_keep isl_val *v2);
 ^
/usr/include/isl/val.h:98:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_ge(__isl_keep isl_val *v1, __isl_keep isl_val *v2);
 ^
/usr/include/isl/val.h:99:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_eq(__isl_keep isl_val *v1, __isl_keep isl_val *v2);
 ^
/usr/include/isl/val.h:100:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_ne(__isl_keep isl_val *v1, __isl_keep isl_val *v2);
 ^
/usr/include/isl/val.h:101:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_abs_eq(__isl_keep isl_val *v1, __isl_keep isl_val *v2);
 ^
/usr/include/isl/val.h:103:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_val_is_divisible_by(__isl_keep isl_val *v1,
 ^
In file included from /usr/include/isl/schedule_node.h:7:0,
                 from ../../gcc-7.3.0/gcc/graphite.h:39,
                 from ../../gcc-7.3.0/gcc/graphite.c:56:
/usr/include/isl/ast_type.h:16:6: error: multiple definition of ‘enum isl_ast_op_type’
 enum isl_ast_op_type {
      ^
In file included from /usr/local/include/isl/ast_build.h:6:0,
                 from ../../gcc-7.3.0/gcc/graphite.h:38,
                 from ../../gcc-7.3.0/gcc/graphite.c:56:
/usr/local/include/isl/ast.h:19:6: note: previous definition here
 enum isl_ast_op_type {
      ^
In file included from /usr/include/isl/schedule_node.h:7:0,
                 from ../../gcc-7.3.0/gcc/graphite.h:39,
                 from ../../gcc-7.3.0/gcc/graphite.c:56:
/usr/include/isl/ast_type.h:46:6: error: multiple definition of ‘enum isl_ast_expr_type’
 enum isl_ast_expr_type {
      ^
In file included from /usr/local/include/isl/ast_build.h:6:0,
                 from ../../gcc-7.3.0/gcc/graphite.h:38,
                 from ../../gcc-7.3.0/gcc/graphite.c:56:
/usr/local/include/isl/ast.h:45:6: note: previous definition here
 enum isl_ast_expr_type {
      ^
In file included from /usr/include/isl/schedule_node.h:7:0,
                 from ../../gcc-7.3.0/gcc/graphite.h:39,
                 from ../../gcc-7.3.0/gcc/graphite.c:56:
/usr/include/isl/ast_type.h:53:6: error: multiple definition of ‘enum isl_ast_node_type’
 enum isl_ast_node_type {
      ^
In file included from /usr/local/include/isl/ast_build.h:6:0,
                 from ../../gcc-7.3.0/gcc/graphite.h:38,
                 from ../../gcc-7.3.0/gcc/graphite.c:56:
/usr/local/include/isl/ast.h:52:6: note: previous definition here
 enum isl_ast_node_type {
      ^
In file included from ../../gcc-7.3.0/gcc/graphite.h:39:0,
                 from ../../gcc-7.3.0/gcc/graphite.c:56:
/usr/include/isl/schedule_node.h:21:1: error: ‘__isl_null’ does not name a type
 __isl_null isl_schedule_node *isl_schedule_node_free(
 ^
/usr/include/isl/schedule_node.h:24:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_schedule_node_is_equal(__isl_keep isl_schedule_node *node1,
 ^
/usr/include/isl/schedule_node.h:36:1: error: ‘isl_stat’ does not name a type
 isl_stat isl_schedule_node_foreach_descendant_top_down(
 ^
/usr/include/isl/schedule_node.h:40:1: error: ‘isl_stat’ does not name a type
 isl_stat isl_schedule_node_foreach_ancestor_top_down(
 ^
/usr/include/isl/schedule_node.h:50:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_schedule_node_has_parent(__isl_keep isl_schedule_node *node);
 ^
/usr/include/isl/schedule_node.h:51:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_schedule_node_has_children(__isl_keep isl_schedule_node *node);
 ^
/usr/include/isl/schedule_node.h:52:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_schedule_node_has_previous_sibling(
 ^
/usr/include/isl/schedule_node.h:54:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_schedule_node_has_next_sibling(__isl_keep isl_schedule_node *node)
 ^
/usr/include/isl/schedule_node.h:83:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_schedule_node_is_subtree_anchored(
 ^
/usr/include/isl/schedule_node.h:94:12: error: ‘isl_multi_union_pw_aff’ does not name a type
 __isl_give isl_multi_union_pw_aff *isl_schedule_node_band_get_partial_schedule(
            ^
/usr/include/isl/schedule_node.h:115:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_schedule_node_band_member_get_coincident(
 ^
/usr/include/isl/schedule_node.h:120:1: error: ‘isl_bool’ does not name a type
 isl_bool isl_schedule_node_band_get_permutable(
 ^
/usr/include/isl/schedule_node.h:125:1: error: ‘isl_stat’ does not name a type
 isl_stat isl_options_set_tile_scale_tile_loops(isl_ctx *ctx, int val);
 ^
/usr/include/isl/schedule_node.h:127:1: error: ‘isl_stat’ does not name a type
 isl_stat isl_options_set_tile_shift_point_loops(isl_ctx *ctx, int val);
 ^
/usr/include/isl/schedule_node.h:138:13: error: ‘isl_multi_union_pw_aff’ has not been declared
  __isl_take isl_multi_union_pw_aff *shift);
             ^
/usr/include/isl/schedule_node.h:169:12: error: ‘isl_multi_union_pw_aff’ does not name a type
 __isl_give isl_multi_union_pw_aff *
            ^
/usr/include/isl/schedule_node.h:192:13: error: ‘isl_multi_union_pw_aff’ has not been declared
  __isl_take isl_multi_union_pw_aff *schedule);
             ^
/usr/include/isl/schedule_node.h:201:13: error: ‘isl_union_set_list’ has not been declared
  __isl_take isl_union_set_list *filters);
             ^
/usr/include/isl/schedule_node.h:204:13: error: ‘isl_union_set_list’ has not been declared
  __isl_take isl_union_set_list *filters);
             ^
Makefile:1099: recipe for target 'graphite.o' failed
make[1]: *** [graphite.o] Error 1
make[1]: Leaving directory '/home/amir/src/build-gcc/gcc'
Makefile:4222: recipe for target 'all-gcc' failed
make: *** [all-gcc] Error 2

Iопробовал разные версии библиотеки ISL (включая 0.12.2, 0.14.1, 0.11.1), но ошибка постоянно возникала.Как это можно исправить?

...