Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 843218

Summary: sys-devel/gcc: ICE when building dev-lang/php-8.0.16-r1 apprentice.c
Product: Gentoo Linux Reporter: Rick Harris <rickfharris>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED NEEDINFO    
Severity: normal CC: mjo, php-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Rick Harris 2022-05-07 23:58:24 UTC
Created attachment 777338 [details]
build.log

Reliably reproduces with stable gcc-10 and gcc-11:

/var/tmp/portage/dev-lang/php-8.0.16-r1/work/sapis-build/cli/ext/fileinfo/libmagic/apprentice.c:190:1: internal compiler error: Segmentation fault
  190 | struct type_tbl_s {
      | ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
make: *** [Makefile:664: ext/fileinfo/libmagic/apprentice.lo] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: dev-lang/php-8.0.16-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-08 00:00:40 UTC
Internal compiler errors (ICEs) are always compiler bugs, not package bugs.

Please do a memtest first (ICEs are often the result of bad memory). If that passes, please proceed to following https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide. We can help as needed.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-08 00:01:09 UTC
(please also include emerge --info)