[Bug lto/121588] [15/16 regression] gcc 15.2.0 crashes when building u-boot 2022.07 with LTO
sjames at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 19 19:45:54 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121588
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
For reference, I did that, ran ARCH=... CROSS_COMPILE=... make V=1, saw the ICE
after editing .config, then ran:
ARCH=arm CROSS_COMPILE=armv7a-unknown-linux-gnueabihf- make -j32 -l32 -Onone
V=1 |& tee /tmp/log
then re-run the failing command and started pruning objects s.t. it still ICEs.
Once that's done, I'll get preprocessed source by grepping through the logs to
see how to build the objects needed.
Then ran `ar t xyz.o > xyz` to generate lists and replaced the .o references in
the failing gcc command with @xyz (response files).
With some mangling, I then get:
/home/sam/bugs/u-boot/arch/arm/cpu/armv7/sctlr.o
/home/sam/bugs/u-boot/arch/arm/lib/crt0.o
/home/sam/bugs/u-boot/common/board_f.o
/home/sam/bugs/u-boot/common/board_r.o
/home/sam/bugs/u-boot/lib/efi_loader/efi_setup.o
I'm reducing it now.
More information about the Gcc-bugs
mailing list