Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 750905 - sys-devel/gcc-9.3.0-r1[debug]: ICE when building dev-qt/qtwebengine-5.15.1
Summary: sys-devel/gcc-9.3.0-r1[debug]: ICE when building dev-qt/qtwebengine-5.15.1
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/PR94163
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-23 19:37 UTC by Ervin Peters
Modified: 2020-12-29 09:55 UTC (History)
4 users (show)

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


Attachments
emerge --info (750905-qtwebengine-5.15.1-lto-emerge-info.txt,9.30 KB, text/plain)
2020-10-23 19:46 UTC, Ervin Peters
Details
build.log (750905-qtwebengine-5.15.1-lto-build.log.bz2,233.38 KB, application/x-bzip)
2020-10-23 19:47 UTC, Ervin Peters
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ervin Peters 2020-10-23 19:37:40 UTC
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
Comment 1 Ervin Peters 2020-10-23 19:46:08 UTC
Created attachment 668165 [details]
emerge --info
Comment 2 Ervin Peters 2020-10-23 19:47:08 UTC
Created attachment 668168 [details]
build.log
Comment 3 Aldo 2020-10-29 03:17:09 UTC
I have observed the exact same issue here, though with no 'lto' enabled in gcc.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-29 03:19:31 UTC
Assuming I'm reading this right, please follow https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2020-10-30 22:34:13 UTC
I was not able to reproduce it locally. Please extract preprocedded file and exact command that you can observe the crash.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2020-10-30 22:46:40 UTC
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?
Comment 7 Ervin Peters 2020-10-31 05:54:58 UTC
(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)
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2020-11-01 00:25:25 UTC
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.
Comment 9 Larry the Git Cow gentoo-dev 2020-11-01 00:33:35 UTC
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(+)
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2020-11-01 00:34:49 UTC
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.
Comment 11 Larry the Git Cow gentoo-dev 2020-11-04 07:43:56 UTC
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(+)
Comment 12 Larry the Git Cow gentoo-dev 2020-11-04 07:47:46 UTC
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(-)
Comment 13 Sergei Trofimovich (RETIRED) gentoo-dev 2020-11-04 07:50:23 UTC
Should be fixed by gcc-9.3.0-r2.
Comment 14 Laurent Pinchart 2020-11-07 22:28:19 UTC
(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.
Comment 15 Sergei Trofimovich (RETIRED) gentoo-dev 2020-11-08 11:42:30 UTC
(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?
Comment 16 Larry the Git Cow gentoo-dev 2020-11-08 11:46:36 UTC
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(-)
Comment 17 Larry the Git Cow gentoo-dev 2020-12-18 21:11:35 UTC
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(+)
Comment 18 Larry the Git Cow gentoo-dev 2020-12-29 09:55:22 UTC
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(-)