https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113357
Bug ID: 113357
Summary: [14 regression] m68k-linux bootstrap failure in stage2
due to segfault compiling unwind-dw2.c
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: mikpelinux at gmail dot com
Target Milestone: ---
gcc-14 native(*) bootstrap on m68k-linux-gnu fails during stage2 as follows:
ranlib libgcov.a
/mnt/scratch/objdir14/./gcc/xgcc -B/mnt/scratch/objdir14/./gcc/
-B/mnt/scratch/install14/m68k-unknown-linux-gnu/bin/
-B/mnt/scratch/install14/m68k-unknown-linux-gnu/lib/ -isystem
/mnt/scratch/install14/m68k-unknown-linux-gnu/include -isystem
/mnt/scratch/install14/m68k-unknown-linux-gnu/sys-include -fno-checking -g
-O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem
./include -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector
-fPIC -I. -I. -I../.././gcc -I/mnt/scratch/gcc-14-20240107/libgcc
-I/mnt/scratch/gcc-14-20240107/libgcc/.
-I/mnt/scratch/gcc-14-20240107/libgcc/../gcc
-I/mnt/scratch/gcc-14-20240107/libgcc/../include -DHAVE_CC_TLS -o
unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c
/mnt/scratch/gcc-14-20240107/libgcc/unwind-dw2.c -fvisibility=hidden
-DHIDE_EXPORTS
during GIMPLE pass: switchlower
/mnt/scratch/gcc-14-20240107/libgcc/unwind-dw2.c: In function
'execute_stack_op':
/mnt/scratch/gcc-14-20240107/libgcc/unwind-dw2.c:524:1: internal compiler
error: Segmentation fault
524 | execute_stack_op (const unsigned char *op_ptr, const unsigned char
*op_end,
| ^~~~~~~~~~~~~~~~
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
make[3]: *** [/mnt/scratch/gcc-14-20240107/libgcc/shared-object.mk:14:
unwind-dw2.o] Error 1
make[3]: Leaving directory
'/mnt/scratch/objdir14/m68k-unknown-linux-gnu/libgcc'
make[2]: *** [Makefile:17845: all-stage2-target-libgcc] Error 2
make[2]: Leaving directory '/mnt/scratch/objdir14'
make[1]: *** [Makefile:21317: stage2-bubble] Error 2
make[1]: Leaving directory '/mnt/scratch/objdir14'
make: *** [Makefile:21513: bootstrap] Error 2
This has been going on since 20231022, 20231015 was good. gcc-13 is also good.
Starting a git bisect now, but it'll take at least several weeks to get a
result.
(*) M1 mini running Aranym running m68k-linux-gnu full-system emulation.