| Summary: | sys-devel/gcc-9.3.0-r1[debug]: ICE when building dev-qt/qtwebengine-5.15.1 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Ervin Peters <ervin.peters> |
| Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ervin.peters, jstein, qt, sam |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://gcc.gnu.org/PR94163 | ||
| See Also: | https://bugs.gentoo.org/show_bug.cgi?id=758437 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
emerge --info
build.log |
||
Created attachment 668165 [details]
emerge --info
Created attachment 668168 [details]
build.log
I have observed the exact same issue here, though with no 'lto' enabled in gcc. Assuming I'm reading this right, please follow https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide. I was not able to reproduce it locally. Please extract preprocedded file and exact command that you can observe the crash. Looking at the crash:
> interner Compiler-Fehler: in set_ptr_info_alignment, bei tree-ssanames.c:671
it checks for alignment in 'gcc_checking_assert (align != 0);'.
gcc_checking_assert() should perform some action only for gcc compiled with USE=debug (if I read it correctly). What is your 'gcc -v' output?
(In reply to Sergei Trofimovich from comment #6) > Looking at the crash: > > > interner Compiler-Fehler: in set_ptr_info_alignment, bei tree-ssanames.c:671 > > it checks for alignment in 'gcc_checking_assert (align != 0);'. > > gcc_checking_assert() should perform some action only for gcc compiled with > USE=debug (if I read it correctly). What is your 'gcc -v' output? ...reads reasonable: my failing gcc has the debug useflag set: peters@muli ~ $ gcc -v Es werden eingebaute Spezifikationen verwendet. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/9.3.0/lto-wrapper Ziel: x86_64-pc-linux-gnu Konfiguriert mit: /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/9.3.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=yes --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 9.3.0-r1 p3' --disable-esp --enable-libstdcxx-time --with-build-config=bootstrap-lto --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-libada --disable-systemtap --enable-vtable-verify --enable-lto --with-isl --disable-isl-version-check --enable-default-pie --enable-default-ssp Thread-Modell: posix gcc-Version 9.3.0 (Gentoo 9.3.0-r1 p3) It was fixed upstream in https://gcc.gnu.org/PR94163, Should be in next gcc-9 release. We can try to backport it before official release as well. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=3f9f4ffb0ee9da59e44ff405a872c00736fa7159 commit 3f9f4ffb0ee9da59e44ff405a872c00736fa7159 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-11-01 00:32:41 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-11-01 00:32:41 +0000 9.3.0: backport assume_aligned fix (PR94163) Reported-by: Ervin Peters Bug: https://bugs.gentoo.org/750905 Bug: https://gcc.gnu.org/PR94163 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> 9.3.0/gentoo/32_all_assume-aligned.patch | 31 +++++++++++++++++++++++++++++++ 9.3.0/gentoo/README.history | 1 + 2 files changed, 32 insertions(+) I'll try to cut next gcc patchset this weekend. Meanwhile you can drop the patch to /etc/portage/patches/sys-devel/gcc:9.3.0 and rebuild gcc to check if it fixes crash for you. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=363ff6cb28a438d29a65efc77c07f40ed8e6c9ec commit 363ff6cb28a438d29a65efc77c07f40ed8e6c9ec Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-11-04 07:24:45 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-11-04 07:43:49 +0000 sys-devel/gcc: 9.3.0: cut 4 patchset Three new patches: + 30_all_plugin-objdump.patch: always use prefixed objdump + 31_all_ipa-to_frequency.patch: fix ICE on empty profile merges. + 32_all_assume-aligned.patch: don't assume alignment Bug: https://bugs.gentoo.org/746578 Bug: https://gcc.gnu.org/PR97295 Bug: https://bugs.gentoo.org/750905 Bug: https://gcc.gnu.org/PR94163 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-9.3.0-r2.ebuild | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=3a85230e907766210c490f3d5d39153f7728f73c commit 3a85230e907766210c490f3d5d39153f7728f73c Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-11-04 00:07:29 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-11-04 07:25:58 +0000 9.3.0: cut 4 patchset Three new patches: + 30_all_plugin-objdump.patch: always use prefixed objdump + 31_all_ipa-to_frequency.patch: fix ICE on empty profile merges. + 32_all_assume-aligned.patch: don't assume alignment Bug: https://bugs.gentoo.org/746578 Bug: https://gcc.gnu.org/PR97295 Bug: https://bugs.gentoo.org/750905 Bug: https://gcc.gnu.org/PR94163 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> 9.3.0/gentoo/README.history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Should be fixed by gcc-9.3.0-r2. (In reply to Sergei Trofimovich from comment #13) > Should be fixed by gcc-9.3.0-r2. Should this be backported to gcc-8.4.0 ? I've hit the same internal compiler error compiling qtwebengine with gcc-8.4.0-r1. (In reply to Laurent Pinchart from comment #14) > (In reply to Sergei Trofimovich from comment #13) > > Should be fixed by gcc-9.3.0-r2. > > Should this be backported to gcc-8.4.0 ? I've hit the same internal compiler > error compiling qtwebengine with gcc-8.4.0-r1. We can try. Any reason you don't use gcc-9 branch? The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=28c80aeb200a8269ab50dfd079e5a0999a84a403 commit 28c80aeb200a8269ab50dfd079e5a0999a84a403 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-11-08 11:44:36 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-11-08 11:44:36 +0000 8.4.0: backport assume_aligned fix (PR94163) Reported-by: Ervin Peters Bug: https://bugs.gentoo.org/750905 Bug: https://gcc.gnu.org/PR94163 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> 8.4.0/gentoo/32_all_assume-aligned.patch | 31 +++++++++++++++++++++++++++++++ 8.4.0/gentoo/README.history | 7 ++++--- 2 files changed, 35 insertions(+), 3 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4e4ba111e5723e3635f3d832120d7ffe07e73fe commit c4e4ba111e5723e3635f3d832120d7ffe07e73fe Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-12-18 21:11:27 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-12-18 21:11:32 +0000 sys-devel/gcc: 8.4.0: cut 3 patchset Two new patches: + 31_all_plugin-objdump.patch: always use tool-prefixed objdump + 32_all_assume-aligned.patch: fix constraint alignment And one update: U 11_all_extra-options.patch: fix diff file name. Should be a no-op. Bug: https://gcc.gnu.org/PR95648 Bug: https://bugs.gentoo.org/750905 Bug: https://gcc.gnu.org/PR94163 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-8.4.0-r2.ebuild | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=6481462f57a83df375ce5e469f01c9adfa75286b commit 6481462f57a83df375ce5e469f01c9adfa75286b Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-12-18 21:07:02 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-12-18 21:07:02 +0000 8.4.0: cut 3 patchset Two new patches: + 31_all_plugin-objdump.patch: always use tool-prefiles objdump + 32_all_assume-aligned.patch: fix constraint alignment And one update: U 11_all_extra-options.patch: fix diff file name. Should be a no-op. Bug: https://gcc.gnu.org/PR95648 Bug: https://bugs.gentoo.org/750905 Bug: https://gcc.gnu.org/PR94163 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> 8.4.0/gentoo/README.history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) |
Doing the latest updates, seeing differences betwween 2 machines. On my 'muli' the build fails with: ... FAILED: obj/v8/v8_compiler/access-info.o ... Im Durchlauf GIMPLE: pre ../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/v8/src/compiler/access-info.cc: In Elementfunktion »v8::internal::compiler::PropertyAccessInfo v8::internal::compiler::AccessInfoFactory::ComputeAccessorDescriptorAccessInfo(v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Map>, v8::internal::MaybeHandle<v8::internal::JSObject>, v8::internal::InternalIndex, v8::internal::compiler::AccessMode) const«: ../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/v8/src/compiler/access-info.cc:414:20: interner Compiler-Fehler: in set_ptr_info_alignment, bei tree-ssanames.c:671 414 | PropertyAccessInfo AccessInfoFactory::ComputeAccessorDescriptorAccessInfo( | ^~~~~~~~~~~~~~~~~ On the other machine it compiles fine 'Gimple' points to 'link time optimization' of gcc and indeed: 'lto' flag is enabled for gcc-9.3.0-r1 on the machine where the build fails. Don't know how to deal with it at best, any ideas? Reproducible: Always