Skip to content

gcc6-aux build failed with isl-0.26: including `isl/cpp.h`, `isl/val.h`

build error:

...

/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-isl-ast-to-gimple.c:349:20: *error*: 'isl_val_free' was not declared in this scope
                    isl_val_free (val);
                                     ^
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-isl-ast-to-gimple.c: In function 'isl_ast_expr* get_upper_bound(isl_ast_node*)':
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-isl-ast-to-gimple.c:752:66: *error*: 'isl_val_int_from_si' was not declared in this scope
                    isl_val_int_from_si (isl_ast_expr_get_ctx (for_cond), 1);
                                                                           ^
gmake[4]: *** [Makefile:1086: graphite-isl-ast-to-gimple.o] Error 1

...

IIRC, grep -n -d recurse -E -e '(isl_val_free|isl_val_int_from_si)' /usr/ports/lang/gcc6-aux/work/isl-0.26/include/ suggest these two functions are declared in isl/cpp.h and isl/val.h

Merge request reports