On 22/01/2026 23:04, Adam Willis via Gcc wrote:
> Hello,
> 
> I'm hitting an ICE in GCC 15.1.0 when building the Linux kernel with LTO
> for aarch64. The same build succeeds with GCC 14.2.0.
> 
> Target: aarch64-linux-gnu
> Host: x86_64-pc-linux-gnu (cross-compile)
> GCC: 15.1.0
> 
> LTO flags: -flto=jobserver -fipa-pta -fno-fat-lto-objects
> -fuse-linker-plugin -fwhole-program
> 
> The crash occurs during the final link of vmlinux.o:
> 
>   LD      vmlinux.o
> during IPA pass: icf
> lto1: internal compiler error: Segmentation fault
> 0x1fc85c8 diagnostic_context::diagnostic_impl(rich_location*,
> diagnostic_metadata const*, diagnostic_option_id, char const*,
> __va_list_tag (*) [1], diagnostic_t)
>         ???:0
> 0x1fda171 internal_error(char const*, ...)
>         ???:0
> 0xbd68fd lto_get_decl_name_mapping(lto_file_decl_data*, char const*)
>         ???:0
> 0x8722ad cgraph_node::get_untransformed_body()
>         ???:0
> 0x1e1d8ac ipa_icf::sem_function::init(ipa_icf_gimple::func_checker*)
>         ???:0
> 0x1e20705 ipa_icf::sem_item_optimizer::parse_nonsingleton_classes()
>         ???:0
> 0x1e29a40 ipa_icf::sem_item_optimizer::execute()
>         ???:0
> 0x1e2b09c ipa_icf::pass_ipa_icf::execute(function*)
>         ???:0
> 
> Workaround: -fno-ipa-icf allows the build to proceed.
> 
> Kernel: Linux 6.1.159 (android14-6.1)
> Source: https://github.com/0ctobot/neutrino_kernel_google_caimito
> Branch: neutrino-google-caimito-6.1
> Defconfig: neutrino_caimito_defconfig
> 
> I don't have a reduced test case, but happy to provide more info or test
> patches if needed.
> 
> $ aarch64-linux-gnu-gcc -v
> Using built-in specs.
> COLLECT_GCC=aarch64-linux-gnu-gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/15.1.0/lto-wrapper
> Target: aarch64-linux-gnu
> Configured with: /build/aarch64-linux-gnu-gcc/src/gcc-15.1.0/configure
> --prefix=/usr --program-prefix=aarch64-linux-gnu-
> --with-local-prefix=/usr/aarch64-linux-gnu
> --with-sysroot=/usr/aarch64-linux-gnu
> --with-build-sysroot=/usr/aarch64-linux-gnu
> --with-native-system-header-dir=/include --libdir=/usr/lib
> --libexecdir=/usr/lib --target=aarch64-linux-gnu --host=x86_64-pc-linux-gnu
> --build=x86_64-pc-linux-gnu --disable-nls --enable-default-pie
> --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
> --with-system-zlib --with-isl --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch
> --disable-libssp --enable-gnu-unique-object --enable-linker-build-id
> --enable-lto --enable-plugin --enable-install-libiberty
> --with-linker-hash-style=gnu --enable-gnu-indirect-function
> --disable-multilib --disable-werror --enable-checking=release
> Thread model: posix
> Supported LTO compression algorithms: zlib zstd
> gcc version 15.1.0 (GCC)
> 
> Kind regards,
> Adam W.

Please report a bug in our bugzilla: https://gcc.gnu.org/bugzilla.  Include as 
much information as you can so that somebody can try to reproduce the issue.

R.

Reply via email to