Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820881 - sys-devel/gcc-11.2.0: ira.c:5976:24: internal compiler error: Segmentation fault
Summary: sys-devel/gcc-11.2.0: ira.c:5976:24: internal compiler error: Segmentation fault
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-30 21:12 UTC by Dmytro 'daks' Fomenko
Modified: 2021-10-31 00:12 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge_--info.txt,6.01 KB, text/plain)
2021-10-30 21:15 UTC, Dmytro 'daks' Fomenko
Details
Build logs (gcc-build-logs.tar.bz2,677.53 KB, application/x-bzip2)
2021-10-30 21:16 UTC, Dmytro 'daks' Fomenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmytro 'daks' Fomenko 2021-10-30 21:12:20 UTC
Failed to compile sys-devel/gcc-11.2.0. Here are the last lines:

/var/tmp/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0/gcc/ira.c: In member function ‘execute’:
/var/tmp/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0/gcc/ira.c:5976:24: internal compiler error: Segmentation fault
 5976 |   virtual unsigned int execute (function *)
      |                        ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
lto-wrapper: fatal error: /var/tmp/portage/sys-devel/gcc-11.2.0/work/build/./prev-gcc/xg++ returned 1 exit status
compilation terminated.
/usr/x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[3]: *** [/var/tmp/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0/gcc/c/Make-lang.in:87: cc1] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.2.0/work/build/gcc'
make[2]: *** [Makefile:5026: all-stagefeedback-gcc] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.2.0/work/build'
make[1]: *** [Makefile:24853: stagefeedback-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.2.0/work/build'
make: *** [Makefile:24873: profiledbootstrap] Error 2
 * ERROR: sys-devel/gcc-11.2.0::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-11.2.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-11.2.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-11.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-11.2.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-11.2.0/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0'


Reproducible: Always

Steps to Reproduce:
1. emerge -avu sys-devel/gcc

Actual Results:  
Compilation of the gcc:11 package failed with the "Segmentation fault" error.

Expected Results:  
sys-devel/gcc-10.3.0-r2:10::gentoo successfully updated to sys-devel/gcc-11.2.0:11::gentoo

I'm suspecting this happened because of USE="+lto" flag. Going to try to compile gcc:11 with "-lto" flag.
Comment 1 Dmytro 'daks' Fomenko 2021-10-30 21:15:36 UTC
Created attachment 747543 [details]
emerge --info
Comment 2 Dmytro 'daks' Fomenko 2021-10-30 21:16:21 UTC
Created attachment 747546 [details]
Build logs
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-30 21:17:31 UTC
Thanks for the report. Can you try following https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide please?

Thank you.
Comment 4 Dmytro 'daks' Fomenko 2021-10-30 23:07:12 UTC
Sorry, I cannot reproduce the issue after reboot, sys-devel/gcc-11.2.0:11::gentoo compiled without any issues