Re: Bug#1141885: linux: FTBFS on sh4 due to internal compiler error, works with gcc-16
John Paul Adrian Glaubitz <[email protected]> Sat, 25 Jul 2026 08:05:16 +0200
| Newsgroups | gmane.linux.debian.ports.superh |
|---|---|
| Message-ID | <961919c220a5ed42a766331de2ed8f16a45f5512.camel@physik.fu-berlin.de> |
retitle -1 linux: FTBFS on sh4 due to internal compiler error, works with w= ireless stack disabled Hi, On Sun, 2026-07-12 at 10:58 +0200, John Paul Adrian Glaubitz wrote: > the kernel build on sh4 fails with an internal compiler error as manual b= uilds > have shown. This issue is fixed by updating to at least gcc-16 which cont= ains > a lot of fixes for the GCC SH backend, including a switch to the new regi= ster > allocator LRA. >=20 > After the switch, GCC may still run out of virtual memory on sh4 when bui= lding > 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. OK, so I got this sorted out: (unstable-sh4-sbuild)glaubitz@esk:~/linux-sh4-3$ ls -l linux-image*deb -rw-r--r-- 1 glaubitz glaubitz 459630732 Jul 24 17:08 linux-image-7.1.4+deb= 14-sh7751r-dbg_7.1.4-1_sh4.deb -rw-r--r-- 1 glaubitz glaubitz 1840 Jul 24 17:13 linux-image-7.1.4+deb= 14-sh7751r_7.1.4-1_sh4.deb -rw-r--r-- 1 glaubitz glaubitz 1168 Jul 24 17:14 linux-image-sh7751r-d= bg_7.1.4-1_sh4.deb -rw-r--r-- 1 glaubitz glaubitz 1648 Jul 24 17:14 linux-image-sh7751r_7= .1.4-1_sh4.deb (unstable-sh4-sbuild)glaubitz@esk:~/linux-sh4-3$ Disabling the wireless stack is enough. Since we don't use wireless support= on sh4 anyway, I will open a pull request shortly pending an additional build test= of the patch. I've also found a way to resolve the GCC OOM issues on sh4 which I will imp= lement on all sh4 buildds shortly. Adrian --=20 .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913