Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662500 - sys-devel/gcc-8.2.0 with =dev-libs/isl-0.20: graphite-dependences.c:48:16: error: ‘isl_space_get_tuple_id’ was not declared in this scope
Summary: sys-devel/gcc-8.2.0 with =dev-libs/isl-0.20: graphite-dependences.c:48:16: er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard:
Keywords:
: 662794 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-07-31 01:06 UTC by cyrillic
Modified: 2018-08-19 08:15 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,550.99 KB, text/plain)
2018-07-31 01:07 UTC, cyrillic
Details
gcc-8.2.0-fix-graphite-isl-includes-r263194.patch (gcc-8.2.0-fix-graphite-isl-includes-r263194.patch,502 bytes, patch)
2018-08-02 19:37 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cyrillic 2018-07-31 01:06:49 UTC
cannot compile sys-devel/gcc-8.2.0 when dev-libs/isl-0.20 is installed, but it does work fine with dev-libs/isl-0.19

Reproducible: Always
Comment 1 cyrillic 2018-07-31 01:07:35 UTC
Created attachment 541842 [details]
build.log
Comment 2 Alexander Tsoy 2018-07-31 06:45:23 UTC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86724
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2018-07-31 21:35:02 UTC
Let's wait for an upstream fix a bit and grab it.
Comment 4 Dennis Schridde 2018-08-02 19:37:26 UTC
Created attachment 542168 [details, diff]
gcc-8.2.0-fix-graphite-isl-includes-r263194.patch
Comment 5 Dennis Schridde 2018-08-02 21:30:33 UTC
(In reply to Dennis Schridde from comment #4)
> Created attachment 542168 [details, diff] [details, diff]
> gcc-8.2.0-fix-graphite-isl-includes-r263194.patch

This patch fixes the issue for me.
Comment 6 NHO 2018-08-03 19:42:25 UTC
(In reply to Dennis Schridde from comment #5)
> (In reply to Dennis Schridde from comment #4)
> > Created attachment 542168 [details, diff] [details, diff] [details, diff]
> > gcc-8.2.0-fix-graphite-isl-includes-r263194.patch
> 
> This patch fixes the issue for me.

Confirming, same error, patch fixed it for me, x86_64.
Comment 7 cyrillic 2018-08-03 19:50:46 UTC
(In reply to Dennis Schridde from comment #5)
> This patch fixes the issue for me.

Me too
Comment 8 Arfrever Frehtes Taifersar Arahesis 2018-08-04 19:47:14 UTC
*** Bug 662794 has been marked as a duplicate of this bug. ***
Comment 9 LE GARREC Vincent 2018-08-05 15:54:13 UTC
Same problem, same solution for sys-devel/gcc-7.3.0-r3
Comment 10 LE GARREC Vincent 2018-08-05 17:00:02 UTC
Add sys-devel/gcc-6.4.0-r1. No idea for the others.
Comment 11 Eugene Bright 2018-08-06 12:57:28 UTC
I'm quoting more errors here to let search engines easier find this bug.

> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-dependences.c:159:3: error: 'isl_space_free' was not declared in this scope
>    isl_space_free (space);
>    ^~~~~~~~~~~~~~
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c: In function 'void ivs_params_clear(ivs_params&)':
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:83:7: error: 'isl_id_free' was not declared in this scope
>        isl_id_free (it->first);
>        ^~~~~~~~~~~
> ...skipping...
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:802:31: note: suggested alternative: 'isl_arg_user'
>    poly_bb_p pbb = (poly_bb_p) isl_id_get_user (name_id);
>                                ^~~~~~~~~~~~~~~
>                                isl_arg_user
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:808:3: error: 'isl_id_free' was not declared in this scope
>    isl_id_free (name_id);
>    ^~~~~~~~~~~
> make[3]: *** [Makefile:1112: graphite-optimize-isl.o] Error 1
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:808:3: note: suggested alternative: 'isl_aff_free'
>    isl_id_free (name_id);
>    ^~~~~~~~~~~
>    isl_aff_free
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c: In function 'isl_id* ast_build_before_for(isl_ast_build*, void*)':
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1367:19: error: 'isl_space_dim' was not declared in this scope
>    int dimension = isl_space_dim (schedule_space, isl_dim_out);
>                    ^~~~~~~~~~~~~
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1367:19: note: suggested alternative: 'isl_aff_dim'
>    int dimension = isl_space_dim (schedule_space, isl_dim_out);
>                    ^~~~~~~~~~~~~
>                    isl_aff_dim
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1371:3: error: 'isl_space_free' was not declared in this scope
>    isl_space_free (schedule_space);
>    ^~~~~~~~~~~~~~
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1371:3: note: suggested alternative: 'isl_aff_free'
>    isl_space_free (schedule_space);
>    ^~~~~~~~~~~~~~
>    isl_aff_free
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1372:16: error: 'isl_id_alloc' was not declared in this scope
>    isl_id *id = isl_id_alloc (isl_ast_build_get_ctx (build), "", for_info);
>                 ^~~~~~~~~~~~
> /var/tmp/portage/sys-devel/gcc-8.2.0/work/gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1372:16: note: suggested alternative: 'isl_mat_alloc'
>    isl_id *id = isl_id_alloc (isl_ast_build_get_ctx (build), "", for_info);
Comment 12 Larry the Git Cow gentoo-dev 2018-08-08 08:37:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=50495d7af772db3076f1a82e6d460e3cc86cf4f7

commit 50495d7af772db3076f1a82e6d460e3cc86cf4f7
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-08-08 08:37:06 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-08-08 08:37:06 +0000

    8.2.0: fix building against isl-0.20 (PR86724)
    
    Bug: https://bugs.gentoo.org/662500
    Bug: https://gcc.gnu.org/PR86724
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 8.2.0/gentoo/100_all-isl-include.patch | 35 ++++++++++++++++++++++++++++++++++
 8.2.0/gentoo/README.history            |  1 +
 2 files changed, 36 insertions(+)
Comment 13 Sergei Trofimovich (RETIRED) gentoo-dev 2018-08-08 08:39:28 UTC
gcc-8.2.0-r1 should be out over the weekend.

Meanwhile you can use user patches locally: https://wiki.gentoo.org/wiki//etc/portage/patches
Comment 14 Larry the Git Cow gentoo-dev 2018-08-12 20:30:37 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b20da412f83eb9d91d5990499b1ee77e7c683922

commit b20da412f83eb9d91d5990499b1ee77e7c683922
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-08-12 20:30:05 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-08-12 20:30:30 +0000

    sys-devel/gcc: new 1.1 patchset for 8.2.0
    
    3 new patches:
    + 98_all_sh_textrel-on-libitm.patch: fix TEXTRELs in libitm on sh target
    + 99_all_m68k-textrel-on-libgcc.patch: fix TEXTRELs in libgcc on m68k target
    + 100_all-isl-include.patch: fix build failures against isl-0.20
    
    Bug: https://bugs.gentoo.org/662500
    Package-Manager: Portage-2.3.46, Repoman-2.3.10

 sys-devel/gcc/Manifest            |  1 +
 sys-devel/gcc/gcc-8.2.0-r1.ebuild | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)
Comment 15 Mike Lothian 2018-08-12 21:29:30 UTC
This still isn't building for me, does isl need to be multilib enabled?
Comment 16 cyrillic 2018-08-12 22:06:19 UTC
(In reply to Larry the Git Cow from comment #14)

>     3 new patches:
>     + 98_all_sh_textrel-on-libitm.patch: fix TEXTRELs in libitm on sh target
>     + 99_all_m68k-textrel-on-libgcc.patch: fix TEXTRELs in libgcc on m68k
> target
>     + 100_all-isl-include.patch: fix build failures against isl-0.20
>

I see patch 100 in the tarball, but it does not get applied when I try to compile gcc.


# tar -tjf /mnt/distfiles/gcc-8.2.0-patches-1.1.tar.bz2
patch/
patch/exclude/
patch/100_all-isl-include.patch
patch/10_all_default-fortify-source.patch
patch/11_all_default-warn-format-security.patch
patch/12_all_default-warn-trampolines.patch
patch/13_all_default-ssp-fix.patch
patch/25_all_alpha-mieee-default.patch
patch/34_all_ia64_note.GNU-stack.patch
patch/35_all_i386_libgcc_note.GNU-stack.patch
patch/50_all_libiberty-asprintf.patch
patch/51_all_libiberty-pic.patch
patch/54_all_nopie-all-flags.patch
patch/55_all_extra-options.patch
patch/90_all_pr55930-dependency-tracking.patch
patch/92_all_sh-drop-sysroot-suffix.patch
patch/94_all_mips-o32-asan.patch
patch/95_all_ia64-TEXTREL.patch
patch/97_all_disable-systemtap-switch.patch
patch/98_all_sh_textrel-on-libitm.patch
patch/99_all_m68k-textrel-on-libgcc.patch
patch/README.Gentoo.patches


>>> Emerging (2 of 3) sys-devel/gcc-8.2.0-r1::gentoo
 * gcc-8.2.0.tar.xz BLAKE2B SHA512 size ;-) ...                                                                              [ ok ]
 * gcc-8.2.0-patches-1.1.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking gcc-8.2.0.tar.xz to /tmp/portage/sys-devel/gcc-8.2.0-r1/work
>>> Unpacking gcc-8.2.0-patches-1.1.tar.bz2 to /tmp/portage/sys-devel/gcc-8.2.0-r1/work
>>> Source unpacked in /tmp/portage/sys-devel/gcc-8.2.0-r1/work
>>> Preparing source in /tmp/portage/sys-devel/gcc-8.2.0-r1/work/gcc-8.2.0 ...
 * Applying Gentoo patches ...
 *   10_all_default-fortify-source.patch ...                                                                                 [ ok ]
 *   11_all_default-warn-format-security.patch ...                                                                           [ ok ]
 *   12_all_default-warn-trampolines.patch ...                                                                               [ ok ]
 *   13_all_default-ssp-fix.patch ...                                                                                        [ ok ]
 *   25_all_alpha-mieee-default.patch ...                                                                                    [ ok ]
 *   34_all_ia64_note.GNU-stack.patch ...                                                                                    [ ok ]
 *   35_all_i386_libgcc_note.GNU-stack.patch ...                                                                             [ ok ]
 *   50_all_libiberty-asprintf.patch ...                                                                                     [ ok ]
 *   51_all_libiberty-pic.patch ...                                                                                          [ ok ]
 *   54_all_nopie-all-flags.patch ...                                                                                        [ ok ]
 *   55_all_extra-options.patch ...                                                                                          [ ok ]
 *   90_all_pr55930-dependency-tracking.patch ...                                                                            [ ok ]
 *   92_all_sh-drop-sysroot-suffix.patch ...                                                                                 [ ok ]
 *   94_all_mips-o32-asan.patch ...                                                                                          [ ok ]
 *   95_all_ia64-TEXTREL.patch ...                                                                                           [ ok ]
 *   97_all_disable-systemtap-switch.patch ...                                                                               [ ok ]
 *   98_all_sh_textrel-on-libitm.patch ...                                                                                   [ ok ]
 *   99_all_m68k-textrel-on-libgcc.patch ...                                                                                 [ ok ]
 * Done with patching
 * Updating gcc to use automatic PIE building ...
 * Updating gcc to use automatic SSP building ...
Comment 17 cyrillic 2018-08-12 22:31:40 UTC
If I had to guess, I would say only 2 digit patch numbers are supported ...
Comment 18 Larry the Git Cow gentoo-dev 2018-08-12 22:56:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=6e140d8a739d5c78d190a92523972841903c6cac

commit 6e140d8a739d5c78d190a92523972841903c6cac
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-08-12 22:53:34 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-08-12 22:53:34 +0000

    8.2.0: fix underscore around arch selector
    
    100_all-isl-include.patch was not applied by epatch
    as it was not match by _all_ arch selector.
    
    Reported-by: cyrillic
    Bug: https://bugs.gentoo.org/662500
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 8.2.0/gentoo/{100_all-isl-include.patch => 100_all_isl-include.patch} | 0
 8.2.0/gentoo/README.history                                           | 3 +++
 2 files changed, 3 insertions(+)
Comment 19 Larry the Git Cow gentoo-dev 2018-08-12 22:58:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01d7f9782e7e15c44c0f3e54988d9bee893adece

commit 01d7f9782e7e15c44c0f3e54988d9bee893adece
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-08-12 22:58:26 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-08-12 22:58:47 +0000

    sys-devel/gcc: new 1.2 patchset for 8.2.0
    
    One renamed patch to match _all_ arch selector:
    - 100_all-isl-include.patch
    + 100_all_isl-include.patch
    
    Reported-by: cyrillic
    Bug: https://bugs.gentoo.org/662500
    Package-Manager: Portage-2.3.46, Repoman-2.3.10

 sys-devel/gcc/Manifest                                     | 2 +-
 sys-devel/gcc/{gcc-8.2.0-r1.ebuild => gcc-8.2.0-r2.ebuild} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 20 Sergei Trofimovich (RETIRED) gentoo-dev 2018-08-12 23:00:38 UTC
(In reply to cyrillic from comment #16)
> (In reply to Larry the Git Cow from comment #14)
> 
> >     3 new patches:
> >     + 98_all_sh_textrel-on-libitm.patch: fix TEXTRELs in libitm on sh target
> >     + 99_all_m68k-textrel-on-libgcc.patch: fix TEXTRELs in libgcc on m68k
> > target
> >     + 100_all-isl-include.patch: fix build failures against isl-0.20
> >
> 
> I see patch 100 in the tarball, but it does not get applied when I try to
> compile gcc.

Nice catch and thanks for a quick test! fixed patch name to match _all_ selector in gcc-8.2.0-r2.
Comment 21 cyrillic 2018-08-12 23:24:30 UTC
It works now :)
Comment 22 Alexey Shvetsov archtester gentoo-dev 2018-08-18 18:02:14 UTC
Same problem with gcc-7.3.0
Comment 23 Larry the Git Cow gentoo-dev 2018-08-18 20:00:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=65e2fb65809b6d4e5267779e327707190b693742

commit 65e2fb65809b6d4e5267779e327707190b693742
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-08-18 19:56:09 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-08-18 19:56:09 +0000

    6.4.0: fix building against isl-0.20 (PR86724)
    
    Bug: https://bugs.gentoo.org/662500
    Bug: https://gcc.gnu.org/PR86724
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 6.4.0/gentoo/100_all_isl-include.patch | 35 ++++++++++++++++++++++++++++++++++
 6.4.0/gentoo/README.history            |  2 ++
 2 files changed, 37 insertions(+)

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=add3fe56a47bed5c2330edd600d2c468fec63b2e

commit add3fe56a47bed5c2330edd600d2c468fec63b2e
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-08-18 19:55:16 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-08-18 19:55:16 +0000

    7.3.0: fix building against isl-0.20 (PR86724)
    
    Bug: https://bugs.gentoo.org/662500
    Bug: https://gcc.gnu.org/PR86724
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 7.3.0/gentoo/97_all_isl-include.patch | 35 +++++++++++++++++++++++++++++++++++
 7.3.0/gentoo/README.history           |  2 ++
 2 files changed, 37 insertions(+)
Comment 24 Larry the Git Cow gentoo-dev 2018-08-18 20:07:49 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87712034f7c8a1bec20e9ae60278581ed1fe4080

commit 87712034f7c8a1bec20e9ae60278581ed1fe4080
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-08-18 20:06:27 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-08-18 20:07:35 +0000

    sys-devel/gcc: 1.6 patchset for 6.4.0-r3
    
    Single new patch:
    100_all_isl-include.patch: fix build failure against isl-0.20
    
    Bug: https://bugs.gentoo.org/662500
    Package-Manager: Portage-2.3.46, Repoman-2.3.10

 sys-devel/gcc/Manifest            | 2 +-
 sys-devel/gcc/gcc-6.4.0-r3.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65ae601088eca6e2438d87775cb77c8f9ad574a1

commit 65ae601088eca6e2438d87775cb77c8f9ad574a1
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-08-18 20:04:45 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-08-18 20:07:35 +0000

    sys-devel/gcc: 1.6 patchset for 7.3.0-r4
    
    Single new patch:
    97_all_isl-include.patch: fix build failure against isl-0.20
    
    Bug: https://bugs.gentoo.org/662500
    Package-Manager: Portage-2.3.46, Repoman-2.3.10

 sys-devel/gcc/Manifest            | 2 +-
 sys-devel/gcc/gcc-7.3.0-r4.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 25 Larry the Git Cow gentoo-dev 2018-08-19 08:15:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b0c510dd364f6295c9d699cfbf6bef0f0850be6

commit 3b0c510dd364f6295c9d699cfbf6bef0f0850be6
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-08-19 08:13:26 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-08-19 08:13:26 +0000

    sys-devel/gcc: restore ~arch keywords for 6.4.0-r3
    
    Closes: https://bugs.gentoo.org/662500
    Package-Manager: Portage-2.3.47, Repoman-2.3.10

 sys-devel/gcc/gcc-6.4.0-r3.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d16a0525997886f06e396560956560f914fc500b

commit d16a0525997886f06e396560956560f914fc500b
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-08-19 08:11:50 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-08-19 08:11:50 +0000

    sys-devel/gcc: restore ~arch keywords for 7.3.0-r4
    
    Closes: https://bugs.gentoo.org/662500
    Package-Manager: Portage-2.3.47, Repoman-2.3.10

 sys-devel/gcc/gcc-7.3.0-r4.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dd656ade466af30a1d8e4c8c2c58babbf3605a6

commit 4dd656ade466af30a1d8e4c8c2c58babbf3605a6
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-08-19 08:08:44 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-08-19 08:08:44 +0000

    sys-devel/gcc: restore ~arch keywords for 8.2.0-r2
    
    Closes: https://bugs.gentoo.org/662500
    Package-Manager: Portage-2.3.47, Repoman-2.3.10

 sys-devel/gcc/gcc-8.2.0-r2.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)