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
Created attachment 541842 [details] build.log
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86724
Let's wait for an upstream fix a bit and grab it.
Created attachment 542168 [details, diff] gcc-8.2.0-fix-graphite-isl-includes-r263194.patch
(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.
(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.
(In reply to Dennis Schridde from comment #5) > This patch fixes the issue for me. Me too
*** Bug 662794 has been marked as a duplicate of this bug. ***
Same problem, same solution for sys-devel/gcc-7.3.0-r3
Add sys-devel/gcc-6.4.0-r1. No idea for the others.
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);
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(+)
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
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(+)
This still isn't building for me, does isl need to be multilib enabled?
(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 ...
If I had to guess, I would say only 2 digit patch numbers are supported ...
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(+)
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(-)
(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.
It works now :)
Same problem with gcc-7.3.0
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(+)
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(-)
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(-)