/var/tmp/portage/media-libs/flac-1.4.3/work/flac-1.4.3/src/libFLAC/fixed_intrin_avx2.c:57:10: internal compiler error: Segmentation fault I'll attach emerge --info and build.log This is on amd64. Reproducible: Always Steps to Reproduce: 1. emerge media-libs/flac-1.4.3 with gcc-14.1.1_p20240518 2. 3. Actual Results: ICE Expected Results: successful compile Not sure to file against gcc-14 or flac.
Created attachment 895891 [details] emerge --info
Created attachment 895892 [details] build.log
Could you try follow https://wiki.gentoo.org/wiki/GCC_ICE_reporting_guide? The most important parts I need are: a) the preprocessed source (so fixed_intrin_avx2.i), b) expanded -march=native Thanks!
I'll work on it, but I'll have to extract the exact file that fails from the full build. Also, what's the best way to expand -march=native? cpuid2cpuflags gives me CPU_FLAGS_X86: aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 but I'm not sure that's exactly what you want.
(In reply to Jack from comment #4) > I'll work on it, but I'll have to extract the exact file that fails from the > full build. Right, just make it fail, then cd into the build dir, run the failing command again with -save-temps appended. > Also, what's the best way to expand -march=native? https://wiki.gentoo.org/wiki/GCC_ICE_reporting_guide#Expand_-march.3Dnative.2C_exact_gcc_version_and_other_system-specific_options
Created attachment 895893 [details] preprocessed output
Created attachment 895894 [details] expansion of march=native It has both methods listed at the link, but the latter is over twice the size of the former, even though it says it should minimize the diff. Let me know if I can provide anything else.
Reproduced and looking. Thanks!
$ gcc-14 -c a.i -march=znver1 -m32 -mfpmath=sse -O2 during GIMPLE pass: slp /var/tmp/portage/media-libs/flac-1.4.3/work/flac-1.4.3/src/libFLAC/fixed_intrin_avx2.c: In function 'FLAC__fixed_compute_best_predictor_wide_intrin_avx2': /var/tmp/portage/media-libs/flac-1.4.3/work/flac-1.4.3/src/libFLAC/fixed_intrin_avx2.c:57:10: internal compiler error: Segmentation fault 0x55ccfe748bc3 crash_signal /usr/src/debug/sys-devel/gcc-14.1.1_p20240608/gcc-14-20240608/gcc/toplev.cc:319 0x55ccfeaceb36 vect_schedule_slp_node /usr/src/debug/sys-devel/gcc-14.1.1_p20240608/gcc-14-20240608/gcc/tree-vect-slp.cc:9279 0x55ccfeae8643 vect_schedule_slp_node /usr/src/debug/sys-devel/gcc-14.1.1_p20240608/gcc-14-20240608/gcc/tree-vect-slp.cc:9248 0x55ccfeae8643 vect_schedule_scc /usr/src/debug/sys-devel/gcc-14.1.1_p20240608/gcc-14-20240608/gcc/tree-vect-slp.cc:9682 0x55ccfeae86a8 vect_schedule_scc /usr/src/debug/sys-devel/gcc-14.1.1_p20240608/gcc-14-20240608/gcc/tree-vect-slp.cc:9663 0x55ccfeae8e7a vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr> const&) /usr/src/debug/sys-devel/gcc-14.1.1_p20240608/gcc-14-20240608/gcc/tree-vect-slp.cc:9827 0x55ccfeaebcc9 vect_slp_region /usr/src/debug/sys-devel/gcc-14.1.1_p20240608/gcc-14-20240608/gcc/tree-vect-slp.cc:7948 0x55ccfeaed54a vect_slp_bbs /usr/src/debug/sys-devel/gcc-14.1.1_p20240608/gcc-14-20240608/gcc/tree-vect-slp.cc:8048 0x55ccfeaedbea vect_slp_function(function*) /usr/src/debug/sys-devel/gcc-14.1.1_p20240608/gcc-14-20240608/gcc/tree-vect-slp.cc:8170 0x55ccfeaf9b75 execute /usr/src/debug/sys-devel/gcc-14.1.1_p20240608/gcc-14-20240608/gcc/tree-vectorizer.cc:1533 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions.
Thanks! Reported upstream at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115508. Reducing it too.
It'll be fixed in the next 14 snapshot.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43711137d90df5b496cc396b784c826b154b84db commit 43711137d90df5b496cc396b784c826b154b84db Author: Sam James <sam@gentoo.org> AuthorDate: 2024-06-22 23:11:04 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-06-22 23:11:04 +0000 sys-devel/gcc: add 14.1.1_p20240622 Closes: https://bugs.gentoo.org/934383 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-14.1.1_p20240622.ebuild | 56 +++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+)
I confirm it works for me. Thanks.