[Bug 248674] lang/gcc6-aux fails build with ISL >=20

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Aug 15 19:28:13 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248674

            Bug ID: 248674
           Summary: lang/gcc6-aux fails build with ISL >=20
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86724
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ericbsd at FreeBSD.org
          Reporter: alt2600 at icloud.com
             Flags: maintainer-feedback?(ericbsd at FreeBSD.org)
          Assignee: ericbsd at FreeBSD.org

Created attachment 217240
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=217240&action=edit
manual patch merges changes to graphite.h to reference isl/id.h and isl/space.h

patch attached

gcc6 will not build against isl >=20 because isl has stopped internally
referencing isl/id.h and isl/space.h in their headers. this patch merges gcc
graphite.h patch from august 2018 to allow for new versions of isl such as 22
currently in ports.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86724
isl gcc bug report


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92484
I was concerned this issue about bootstrapping in tree might be an issue with
ALLSTAGES but its not, I actually installed the ALLSTAGES FORTRAN OBJC version
and rebuilt ghdl with it fine. I did notice a few places explicitly calling
c++98 during the build but most places had no language reference. perhaps it is
not an issue if isl comes from external to a full bootstrap of all libraries
inside the gcc tree. I did not try just a bootstrap stage, but it did appear
allstages was using the stage 1& 2 compiler to work through to stage 3. I
thought I saw a few calls into the provided bootstrap folder, but it may have
been for support utilities.

it is worth noting that later versions from our may snapshot after august fix
might be a better route, such as using the official October release of 6.5.0,
but I didn't try that out as I was unsure how to unwind the other patches in
files with the newer source, and just wanted to get Ada building again.

v6.5
 
https://gcc.gnu.org/git/?p=gcc.git;a=tree;h=44d92310d699abb7f14c17ea56d0cde9c2073d16;hb=e31ae982c446804d1b259554203401392b078364

ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-6.5.0/gcc-6.5.0.tar.gz

pre-patch error

F ./.deps/graphite-sese-to-poly.TPo
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-sese-to-poly.c
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-optimize-isl.c: In
function 'isl_schedule_node* get_schedule_for_node_st(isl_schedule_node*,
void*)':
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-optimize-isl.c:59:52:
error: 'isl_space_dim' was not declared in this scope
   unsigned dims = isl_space_dim (space, isl_dim_set);
                                                    ^
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-optimize-isl.c:62:24:
error: 'isl_space_free' was not declared in this scope
   isl_space_free (space);
                        ^
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-dependences.c: In
function 'isl_map* constrain_domain(isl_map*, isl_set*)':
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-dependences.c:48:53:
error: 'isl_space_get_tuple_id' was not declared in this scope
   isl_id *id = isl_space_get_tuple_id (d, isl_dim_in);
                                                     ^
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-dependences.c:51:20:
error: 'isl_space_free' was not declared in this scope
   isl_space_free (d);
                    ^
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-dependences.c: In
function 'isl_stat max_number_of_out_dimensions(isl_map*, void*)':
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-dependences.c:201:49:
error: 'isl_space_dim' was not declared in this scope
   int nb_out = isl_space_dim (space, isl_dim_out);
                                                 ^
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-dependences.c:207:24:
error: 'isl_space_free' was not declared in this scope
   isl_space_free (space);
                        ^
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-dependences.c: In
function 'isl_map* extend_map(isl_map*, int)':
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-dependences.c:217:44:
error: 'isl_space_dim' was not declared in this scope
   int n = isl_space_dim (space, isl_dim_out);
                                            ^
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-dependences.c:219:24:
error: 'isl_space_free' was not declared in this scope
   isl_space_free (space);
                        ^
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-dependences.c: In
function 'bool carries_deps(isl_union_map*, isl_union_map*, int)':
/usr/ports/lang/gcc6-aux/work/gcc-6-20180516/gcc/graphite-dependences.c:294:56:
error: 'isl_space_range' was not declared in this scope
   isl_map *lex = isl_map_lex_le (isl_space_range (space));

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list