Re: [PATCH 12/23] kbuild: avoid re-running compiler and linker probes

From: David Laight

Date: Fri Sep 11 2026 - 13:44:35 EST


On Thu, 10 Sep 2026 17:42:35 +0200
Nicolas Schier <n.schier@xxxxxxxxx> wrote:

...
> Yes, skimming through the patch, I thought about that, too. Moving more
> cc option checks to Kconfig will make building out-of-tree kmods with a
> different compiler more dangerous. Maybe we will have to make the
> warning in Makefile's prepare (external kmods) target a bit louder.

One problem is that distributions have a nasty habit of shipping kernels
that are compiled with a different compiler version to they actually
ship as a compiler.
In some cases the versions are clearly the same - but the version
strings differ.

David