gcc plugin version mismatch when building out of tree kernel module w/ "different" gcc than kernel
GCC fails due to a plugin version mismatch even when the version is just a change in pkgver, and the actual gcc version is unchanged:
make: Entering directory '/usr/src/linux-headers-5.15.81-0-lts'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924
You are using: gcc (Alpine 12.2.1_git20220924-r5) 12.2.1 20220924
CC [M] /var/lib/akms/5.15.81-0-lts/librem-ec-acpi/0.91/build/librem_ec_acpi.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/stackleak_plugin.so
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/latent_entropy_plugin.so
Is this expected to fail even in this case where it was a packaging change?
It makes building out of tree modules for a kernel impossible if GCC was updated after the kernel package was built...