#1141885 linux: FTBFS on sh4 due to internal compiler error, works with gcc-16

Package:
src:linux
Source:
src:linux
Submitter:
John Paul Adrian Glaubitz
Date:
2026-07-12 08:59:03 UTC
Severity:
normal
Tags:
#1141885#5
Date:
2026-07-12 08:58:06 UTC
From:
To:
Hello,

the kernel build on sh4 fails with an internal compiler error as manual builds
have shown. This issue is fixed by updating to at least gcc-16 which contains
a lot of fixes for the GCC SH backend, including a switch to the new register
allocator LRA.

After the switch, GCC may still run out of virtual memory on sh4 when building
large kernel modules, so the kernel config will just have to be adjusted. I'm
currently testing a modified kernel config for sh4 and will report back.

Thanks,
Adrian