https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123896
Bug ID: 123896
Summary: LTO failure on 32bit ARM
Product: gcc
Version: 15.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: tom.rini at gmail dot com
Target Milestone: ---
When building U-Boot v2026.01 and the "omap3_logic" configuration (which is
32bit ARM) and the gcc-15.2.0 from
https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/15.2.0/
specifically, we end up with a link time failure:
during IPA pass: icf
lto1: internal compiler error: Segmentation fault
0x755a8ad3728a __libc_start_main
???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error:
/opt/gcc-15.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc returned 1
exit status
compilation terminated.
/opt/gcc-15.2.0-nolibc/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/15.2.0/../../../../arm-linux-gnueabi/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [Makefile:2038: u-boot] Error 1
And since this is LTO, it's harder to know which preprocessed sources might be
required here.