bebbo / gcc

Bebbo's gcc-6-branch for m68k-amigaos
GNU General Public License v2.0
33 stars 11 forks source link

amiga-gcc compilation problem with ISL #226

Closed mankeli closed 4 months ago

mankeli commented 4 months ago

Hi. I'm trying to compile latest amiga-gcc, and i'm getting this kind of errors from gcc compilation:

g++ -fno-PIE -c   -Os -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   -DHAVE_CONFIG_H -I. -I. -I/home/mankeli/src/amiga-gcc/projects/gcc/gcc -I/home/mankeli/src/amiga-gcc/projects/gcc/gcc/. -I/home/mankeli/src/amiga-gcc/projects/gcc/gcc/../include -I/home/mankeli/src/amiga-gcc/projects/gcc/gcc/../libcpp/include  -I/home/mankeli/src/amiga-gcc/projects/gcc/gcc/../libdecnumber -I/home/mankeli/src/amiga-gcc/projects/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/home/mankeli/src/amiga-gcc/projects/gcc/gcc/../libbacktrace   -o graphite-isl-ast-to-gimple.o -MT graphite-isl-ast-to-gimple.o -MMD -MP -MF ./.deps/graphite-isl-ast-to-gimple.TPo /home/mankeli/src/amiga-gcc/projects/gcc/gcc/graphite-isl-ast-to-gimple.c
/home/mankeli/src/amiga-gcc/projects/gcc/gcc/graphite-isl-ast-to-gimple.c: In member function ‘tree_node* translate_isl_ast_to_gimple::gcc_expression_from_isl_expr_int(tree, isl_ast_expr*)’:
/home/mankeli/src/amiga-gcc/projects/gcc/gcc/graphite-isl-ast-to-gimple.c:349:3: error: ‘isl_val_free’ was not declared in this scope; did you mean ‘isl_vec_free’?
  349 |   isl_val_free (val);
      |   ^~~~~~~~~~~~
      |   isl_vec_free
/home/mankeli/src/amiga-gcc/projects/gcc/gcc/graphite-isl-ast-to-gimple.c: In function ‘isl_ast_expr* get_upper_bound(isl_ast_node*)’:
/home/mankeli/src/amiga-gcc/projects/gcc/gcc/graphite-isl-ast-to-gimple.c:752:11: error: ‘isl_val_int_from_si’ was not declared in this scope; did you mean ‘isl_val_int_from_gmp’?
  752 |           isl_val_int_from_si (isl_ast_expr_get_ctx (for_cond), 1);
      |           ^~~~~~~~~~~~~~~~~~~
      |           isl_val_int_from_gmp
In file included from /home/mankeli/src/amiga-gcc/projects/gcc/gcc/hash-table.h:236,
                 from /home/mankeli/src/amiga-gcc/projects/gcc/gcc/coretypes.h:348,
                 from /home/mankeli/src/amiga-gcc/projects/gcc/gcc/graphite-isl-ast-to-gimple.c:29:
/home/mankeli/src/amiga-gcc/projects/gcc/gcc/vec.h: In instantiation of ‘bool vec<T, va_heap, vl_ptr>::reserve(unsigned int, bool) [with T = std::pair<gphi*, gphi*>]’:
/home/mankeli/src/amiga-gcc/projects/gcc/gcc/vec.h:1515:3:   required from ‘T* vec<T, va_heap, vl_ptr>::safe_push(const T&) [with T = std::pair<gphi*, gphi*>]’
/home/mankeli/src/amiga-gcc/projects/gcc/gcc/graphite-isl-ast-to-gimple.c:1881:38:   required from here
/home/mankeli/src/amiga-gcc/projects/gcc/gcc/vec.h:1409:14: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘struct std::pair<gphi*, gphi*>’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
 1409 |       memcpy (m_vec->address (), oldvec->address (), sizeof (T) * oldsize);
      |       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:64,
                 from /usr/include/c++/13.2.1/bits/stl_tree.h:63,
                 from /usr/include/c++/13.2.1/map:62,
                 from /home/mankeli/src/amiga-gcc/projects/gcc/gcc/system.h:228,
                 from /home/mankeli/src/amiga-gcc/projects/gcc/gcc/graphite-isl-ast-to-gimple.c:28:
/usr/include/c++/13.2.1/bits/stl_pair.h:187:12: note: ‘struct std::pair<gphi*, gphi*>’ declared here
  187 |     struct pair
      |            ^~~~
make[2]: *** [Makefile:1121: graphite-isl-ast-to-gimple.o] Error 1

isl related lines from configure gcc.log are:

checking for isl 0.16, 0.15, or deprecated 0.14... yes
checking for isl 0.16 or 0.15... yes
bebbo commented 4 months ago

check the existing issues

mankeli commented 4 months ago

Sorry. I couldn't find any tickets about ISL in this repo. But the tip you left in the original repo helped. Thank you! Link: https://github.com/bebbo/amiga-gcc/issues/386