After trying update wireguard from 0.0.20191219 to -r2 emerge of wireguard-modules fail with multiple errors:
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
Steps to Reproduce:
1. emerge -au wireguard
Failed to emerge net-vpn/wireguard-modules
Installed wireguard-modules package
Created attachment 601368 [details]
Created attachment 601370 [details]
Created attachment 601372 [details]
Changing memory initialization from CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL to CONFIG_INIT_STACK_NONE fixed the issue, but this is wrong way to go about that.
(In reply to jy6x2b32pie9 from comment #4)
> Changing memory initialization from CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL
> to CONFIG_INIT_STACK_NONE fixed the issue, but this is wrong way to go about
The right way would be to ensure that your kernel is built with the same compiler as external modules such as net-vpn/wireguard-modules.