Re: [PATCH v5 00/11] kbuild: significantly speed up kernel builds

From: Lorenzo Stoakes (ARM)

Date: Fri Dec 04 2026 - 14:40:51 EST


On Fri, Dec 04, 2026 at 05:02:47PM +0100, Nicolas Schier wrote:
> On Fri, Dec 04, 2026 at 03:56:08PM +0100, Uwe Kleine-König wrote:
> > On Wed, Nov 04, 2026 at 06:20:18PM +0000, Lorenzo Stoakes (ARM) wrote:
> > > A typical kernel build consists of a frustratingly large amount of time
> > > spent stuck in single-threaded bottlenecks.
> > >
> > > It turns out that there's a lot we can do about this and doing so
> > > significantly impacts kernel build times.
> > >
> > > This series makes allmodconfig builds up to 36% faster, incremental builds
> > > up to ~70% faster, and noop builds up to ~90% faster.
> >
> > On top of next-20261130 a build test with ARCH=m68k of mine experienced:
> >
> > cp vmlinux vmlinux.tmp
> > m68k-linux-gnu-strip vmlinux.tmp
> > gzip -9c vmlinux.tmp >vmlinux.gz
> > cp vmlinux vmlinux.tmp
> > gzip: vmlinux.tmp: file size changed while zipping
> > rm vmlinux.tmp
> > m68k-linux-gnu-strip vmlinux.tmp
> > m68k-linux-gnu-strip: 'vmlinux.tmp': No such file
> > make[3]: Leaving directory '/home/uwe/work/kbuild/m68k'
> > make[3]: *** [/home/uwe/gsrc/linux/arch/m68k/Makefile:107: vmlinux.gz] Error 1
> >
> > It built fine on retrying (which I guess isn't a big surprise).
> >
> > I didn't try to bisect, but it seems to fit the other errors reported
> > here, so I just throw in my error, too.
>
> Thanks for the report. This is actually a long-standing issue that
> shows up now. 'make -j2 ARCH=m68k vmlinux.gz vmlinux.bz2' was able to
> trigger that before. A fix is proposed at
> https://lore.kernel.org/r/20261204-kbuild-m68k-use-target-specific-temp-files-v1-1-afcc9016a0ce@xxxxxxxxx

Ah nice, glad that this is being looked at and obv. that this one wasn't me
:P

(Am sending out a respin in a second anyway)

>
> --
> Nicolas

--
Cheers, Lorenzo