https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66117
Bug ID: 66117 Summary: GCC can not compile when graphite is enabled, due to missing isl headers. Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: pbeeler80 at gmail dot com Target Milestone: --- The full log is attached The errors in short: ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:398:43: error: ‘isl_constraint’ has not been declared extern void print_isl_constraint (FILE *, isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:35: error: variable or field ‘debug_isl_constraint’ declared void extern void debug_isl_constraint (isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:35: error: ‘isl_constraint’ was not declared in this scope ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:51: error: expected primary-expression before ‘)’ token extern void debug_isl_constraint (isl_constraint *); ^ Makefile:1065: recipe for target 'graphite.o' failed make[3]: *** [graphite.o] Error 1 x86_64-linux-gnu-g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../.././../gcc/gcc-SaberMod/gcc -I../.././../gcc/gcc-SaberMod/gcc/. -I../.././../gcc/gcc-SaberMod/gcc/../include -I../.././../gcc/gcc-SaberMod/gcc/../libcpp/include -I/tmp/sm-tc/build/temp-install/include -I/tmp/sm-tc/build/temp-install/include -I/tmp/sm-tc/build/temp-install/include -I../.././../gcc/gcc-SaberMod/gcc/../libdecnumber -I../.././../gcc/gcc-SaberMod/gcc/../libdecnumber/dpd -I../libdecnumber -I../.././../gcc/gcc-SaberMod/gcc/../libbacktrace -I/tmp/sm-tc/build/temp-install/include -o graphite-isl-ast-to-gimple.o -MT graphite-isl-ast-to-gimple.o -MMD -MP -MF ./.deps/graphite-isl-ast-to-gimple.TPo ../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c In file included from ../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:79:0: ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:398:43: error: ‘isl_constraint’ has not been declared extern void print_isl_constraint (FILE *, isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:35: error: variable or field ‘debug_isl_constraint’ declared void extern void debug_isl_constraint (isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:35: error: ‘isl_constraint’ was not declared in this scope ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:51: error: expected primary-expression before ‘)’ token extern void debug_isl_constraint (isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c: In function ‘isl_union_set* generate_luj_sepclass(scop_p)’: ../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:882:70: error: ‘isl_union_set_empty’ was not declared in this scope domain_isl = isl_union_set_empty (isl_set_get_space (scop->context)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:900:70: error: ‘isl_union_set_from_set’ was not declared in this scope isl_union_set_union (domain_isl, isl_union_set_from_set (bb_domain_s)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:900:71: error: ‘isl_union_set_union’ was not declared in this scope isl_union_set_union (domain_isl, isl_union_set_from_set (bb_domain_s)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c: In function ‘isl_ast_build* set_options(isl_ast_build*, isl_union_map*, isl_union_map*)’: ../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:990:59: error: ‘isl_union_set_from_set’ was not declared in this scope isl_union_set_from_set (isl_set_universe (range_space)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:992:42: error: ‘isl_union_set_universe’ was not declared in this scope domain = isl_union_set_universe (domain); ^ Makefile:1065: recipe for target 'graphite-isl-ast-to-gimple.o' failed make[3]: *** [graphite-isl-ast-to-gimple.o] Error 1 x86_64-linux-gnu-g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../.././../gcc/gcc-SaberMod/gcc -I../.././../gcc/gcc-SaberMod/gcc/. -I../.././../gcc/gcc-SaberMod/gcc/../include -I../.././../gcc/gcc-SaberMod/gcc/../libcpp/include -I/tmp/sm-tc/build/temp-install/include -I/tmp/sm-tc/build/temp-install/include -I/tmp/sm-tc/build/temp-install/include -I../.././../gcc/gcc-SaberMod/gcc/../libdecnumber -I../.././../gcc/gcc-SaberMod/gcc/../libdecnumber/dpd -I../libdecnumber -I../.././../gcc/gcc-SaberMod/gcc/../libbacktrace -I/tmp/sm-tc/build/temp-install/include -o graphite-interchange.o -MT graphite-interchange.o -MMD -MP -MF ./.deps/graphite-interchange.TPo ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c In file included from ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c:81:0: ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:398:43: error: ‘isl_constraint’ has not been declared extern void print_isl_constraint (FILE *, isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:35: error: variable or field ‘debug_isl_constraint’ declared void extern void debug_isl_constraint (isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:35: error: ‘isl_constraint’ was not declared in this scope ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:51: error: expected primary-expression before ‘)’ token extern void debug_isl_constraint (isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c:101:8: error: ‘isl_constraint’ does not name a type static isl_constraint * ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c: In function ‘void pdr_stride_in_loop(__mpz_struct*, graphite_dim_t, poly_dr_p)’: ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c:153:3: error: ‘isl_constraint’ was not declared in this scope isl_constraint *lma, *c; ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c:153:19: error: ‘lma’ was not declared in this scope isl_constraint *lma, *c; ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c:153:25: error: ‘c’ was not declared in this scope isl_constraint *lma, *c; ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c:214:49: error: ‘build_linearized_memory_access’ was not declared in this scope lma = build_linearized_memory_access (map, pdr); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c:217:41: error: ‘isl_map_add_constraint’ was not declared in this scope map = isl_map_add_constraint (map, lma); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c:230:79: error: ‘isl_equality_alloc’ was not declared in this scope c = isl_equality_alloc (isl_local_space_from_space (isl_map_get_space (map))); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c:231:71: error: ‘isl_constraint_set_coefficient_si’ was not declared in this scope c = isl_constraint_set_coefficient_si (c, isl_dim_out, time_depth, 1); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-interchange.c:234:43: error: ‘isl_constraint_set_constant_si’ was not declared in this scope c = isl_constraint_set_constant_si (c, 1); ^ Makefile:1065: recipe for target 'graphite-interchange.o' failed make[3]: *** [graphite-interchange.o] Error 1 x86_64-linux-gnu-g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../.././../gcc/gcc-SaberMod/gcc -I../.././../gcc/gcc-SaberMod/gcc/. -I../.././../gcc/gcc-SaberMod/gcc/../include -I../.././../gcc/gcc-SaberMod/gcc/../libcpp/include -I/tmp/sm-tc/build/temp-install/include -I/tmp/sm-tc/build/temp-install/include -I/tmp/sm-tc/build/temp-install/include -I../.././../gcc/gcc-SaberMod/gcc/../libdecnumber -I../.././../gcc/gcc-SaberMod/gcc/../libdecnumber/dpd -I../libdecnumber -I../.././../gcc/gcc-SaberMod/gcc/../libbacktrace -I/tmp/sm-tc/build/temp-install/include -o graphite-optimize-isl.o -MT graphite-optimize-isl.o -MMD -MP -MF ./.deps/graphite-optimize-isl.TPo ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c In file included from ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:70:0: ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:398:43: error: ‘isl_constraint’ has not been declared extern void print_isl_constraint (FILE *, isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:35: error: variable or field ‘debug_isl_constraint’ declared void extern void debug_isl_constraint (isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:35: error: ‘isl_constraint’ was not declared in this scope ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:51: error: expected primary-expression before ‘)’ token extern void debug_isl_constraint (isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c: In function ‘isl_union_set* scop_get_domains(scop_p)’: ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:78:50: error: ‘isl_union_set_empty’ was not declared in this scope isl_union_set *res = isl_union_set_empty (space); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:81:65: error: ‘isl_union_set_add_set’ was not declared in this scope res = isl_union_set_add_set (res, isl_set_copy (pbb->domain)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c: In function ‘isl_basic_map* getTileMap(isl_ctx*, int, int)’: ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:137:7: error: ‘isl_constraint’ was not declared in this scope isl_constraint *c; ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:137:23: error: ‘c’ was not declared in this scope isl_constraint *c; ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:140:64: error: ‘isl_equality_alloc’ was not declared in this scope c = isl_equality_alloc (isl_local_space_copy (LocalSpace)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:141:63: error: ‘isl_constraint_set_coefficient_si’ was not declared in this scope isl_constraint_set_coefficient_si (c, isl_dim_out, sX, 1); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:143:57: error: ‘isl_basic_map_add_constraint’ was not declared in this scope tileMap = isl_basic_map_add_constraint (tileMap, c); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:152:66: error: ‘isl_inequality_alloc’ was not declared in this scope c = isl_inequality_alloc (isl_local_space_copy (LocalSpace)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:161:54: error: ‘isl_constraint_set_constant_si’ was not declared in this scope isl_constraint_set_constant_si (c, tileSize - 1); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c: In function ‘isl_map* getPrevectorMap(isl_ctx*, int, int, int)’: ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:263:3: error: ‘isl_constraint’ was not declared in this scope isl_constraint *c; ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:263:19: error: ‘c’ was not declared in this scope isl_constraint *c; ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:282:64: error: ‘isl_equality_alloc’ was not declared in this scope c = isl_equality_alloc (isl_local_space_copy (LocalSpace)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:283:62: error: ‘isl_constraint_set_coefficient_si’ was not declared in this scope isl_constraint_set_coefficient_si (c, isl_dim_in, i, -1); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:290:55: error: ‘isl_map_add_constraint’ was not declared in this scope TilingMap = isl_map_add_constraint (TilingMap, c); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:305:62: error: ‘isl_inequality_alloc’ was not declared in this scope c = isl_inequality_alloc (isl_local_space_copy (LocalSpace)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:306:71: error: ‘isl_constraint_set_coefficient_si’ was not declared in this scope isl_constraint_set_coefficient_si (c, isl_dim_out, TileDimension, -1); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:308:51: error: ‘isl_map_add_constraint’ was not declared in this scope TilingMap = isl_map_add_constraint (TilingMap, c); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:314:53: error: ‘isl_constraint_set_constant_si’ was not declared in this scope isl_constraint_set_constant_si (c, VectorWidth - 1); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c: In function ‘isl_map* getPrevectorMap_full(isl_ctx*, int, int, int)’: ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:342:3: error: ‘isl_constraint’ was not declared in this scope isl_constraint *c; ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:342:19: error: ‘c’ was not declared in this scope isl_constraint *c; ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:364:64: error: ‘isl_equality_alloc’ was not declared in this scope c = isl_equality_alloc (isl_local_space_copy (LocalSpace)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:366:62: error: ‘isl_constraint_set_coefficient_si’ was not declared in this scope isl_constraint_set_coefficient_si (c, isl_dim_in, i, -1); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:369:55: error: ‘isl_map_add_constraint’ was not declared in this scope TilingMap = isl_map_add_constraint (TilingMap, c); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:384:59: error: ‘isl_equality_alloc’ was not declared in this scope c = isl_equality_alloc (isl_local_space_copy(LocalSpace)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:385:70: error: ‘isl_constraint_set_coefficient_si’ was not declared in this scope isl_constraint_set_coefficient_si (c, isl_dim_out, TileDimension,-1); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:387:54: error: ‘isl_constraint_set_constant_si’ was not declared in this scope isl_constraint_set_constant_si (c, -VectorWidth + 1); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:388:51: error: ‘isl_map_add_constraint’ was not declared in this scope TilingMap = isl_map_add_constraint (TilingMap, c); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:391:62: error: ‘isl_inequality_alloc’ was not declared in this scope c = isl_inequality_alloc (isl_local_space_copy (LocalSpace)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c: In function ‘void apply_schedule_map_to_scop(scop_p, isl_union_map*, bool)’: ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:556:33: error: ‘isl_union_set_from_set’ was not declared in this scope isl_union_set_from_set (domain)); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c: In function ‘bool optimize_isl(scop_p)’: ../.././../gcc/gcc-SaberMod/gcc/graphite-optimize-isl.c:589:35: error: ‘isl_union_set_copy’ was not declared in this scope isl_union_set_copy (domain)); ^ Makefile:1065: recipe for target 'graphite-optimize-isl.o' failed make[3]: *** [graphite-optimize-isl.o] Error 1 x86_64-linux-gnu-g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../.././../gcc/gcc-SaberMod/gcc -I../.././../gcc/gcc-SaberMod/gcc/. -I../.././../gcc/gcc-SaberMod/gcc/../include -I../.././../gcc/gcc-SaberMod/gcc/../libcpp/include -I/tmp/sm-tc/build/temp-install/include -I/tmp/sm-tc/build/temp-install/include -I/tmp/sm-tc/build/temp-install/include -I../.././../gcc/gcc-SaberMod/gcc/../libdecnumber -I../.././../gcc/gcc-SaberMod/gcc/../libdecnumber/dpd -I../libdecnumber -I../.././../gcc/gcc-SaberMod/gcc/../libbacktrace -I/tmp/sm-tc/build/temp-install/include -o graphite-scop-detection.o -MT graphite-scop-detection.o -MMD -MP -MF ./.deps/graphite-scop-detection.TPo ../.././../gcc/gcc-SaberMod/gcc/graphite-scop-detection.c In file included from ../.././../gcc/gcc-SaberMod/gcc/graphite-scop-detection.c:75:0: ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:398:43: error: ‘isl_constraint’ has not been declared extern void print_isl_constraint (FILE *, isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:35: error: variable or field ‘debug_isl_constraint’ declared void extern void debug_isl_constraint (isl_constraint *); ^ ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:35: error: ‘isl_constraint’ was not declared in this scope ../.././../gcc/gcc-SaberMod/gcc/graphite-poly.h:402:51: error: expected primary-expression before ‘)’ token extern void debug_isl_constraint (isl_constraint *); ^ Makefile:1065: recipe for target 'graphite-scop-detection.o' failed make[3]: *** [graphite-scop-detection.o] Error 1 make[3]: Target 'all' not remade because of errors. make[3]: Leaving directory '/home/jason/sm-tc/build/gcc-SaberMod/gcc' Makefile:4102: recipe for target 'all-gcc' failed make[2]: *** [all-gcc] Error 2 make[2]: Target 'all-host' not remade because of errors. make[2]: Target 'all-target' not remade because of errors. make[2]: Leaving directory '/home/jason/sm-tc/build/gcc-SaberMod' Makefile:857: recipe for target 'all' failed make[1]: *** [all] Error 2