Created attachment 888573 [details] Build log I am trying to update from default/linux/ppc64/17.0 to default/linux/ppc64/23.0/split-usr and the results of running emerge --ask --oneshot sys-devel/gcc is that the build fails with: during RTL pass: dwarf2 /var/tmp/portage/sys-devel/gcc-13.2.1_p20240210/work/gcc-13-20240210/libgo/go/runtime/mheap.go: In function ‘runtime.mheap.reclaimChunk..stub2’: /var/tmp/portage/sys-devel/gcc-13.2.1_p20240210/work/gcc-13-20240210/libgo/go/runtime/mheap.go:808:29: internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2cfi.cc:1844 808 | func (h *mheap) reclaimChunk(arenas []arenaIdx, pageIdx, n uintptr) uintptr { | ^
Created attachment 888574 [details] emerge --info '=sys-devel/gcc-13.2.1_p20240210::gentoo'
Created attachment 888575 [details] emerge -pqv '=sys-devel/gcc-13.2.1_p20240210::gentoo'
The build is successful if I add -go to the use flags.
I confirm the same behaviour. With the 17.0 profile it built ok. Maybe related to default-stack-clash-protection ?
By the way, the issue does not occur when building sys-devel/gcc[go] on a system that has previously been migrated to default/linux/ppc64le/23.0/split-usr So might be that ELFABIv1 is needed to trigger the problem. Or possibly gcc can be rebuilt with USE=go when profile migration is complete; I'll need to try that later (still some 1700 packages to rebuild first... :)
Migration complete, and sys-devel/gcc-13.2.1_p20240210 still fails to build with USE=go. Also, sys-devel/gcc-14.1.0 fails in the same way.
gcc-13.2.1_p20240210 builds fine with USE="vanilla go", so there is definitely some connection to the Gentoo patches (as expected from the profile change being the triggering factor).
Could you try to narrow down which patch it seems to be?
Yes. It is "24_all_DEF_GENTOO_SCP-fstack-clash-protection.patch". If I zap this file only from work/patch between unpack and prepare, then the build succeeds.
Gah, thanks.
Actually, I suppose it might not be miscompiled.
Yeah, it could just be triggering a dormant bug by creating the appropriate preconditions.