Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 704024

Summary: net-vpn/wireguard-modules-0.0.20191226 - cc1: error: incompatible gcc/plugin versions
Product: Gentoo Linux Reporter: jy6x2b32pie9
Component: Current packagesAssignee: Jason A. Donenfeld <zx2c4>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Kernel .config
build.log
emerge --info

Description jy6x2b32pie9 2019-12-27 17:34:30 UTC
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

Reproducible: Always

Steps to Reproduce:
1. emerge -au wireguard
Actual Results:  
Failed to emerge net-vpn/wireguard-modules

Expected Results:  
Installed wireguard-modules package
Comment 1 jy6x2b32pie9 2019-12-27 17:35:26 UTC
Created attachment 601368 [details]
Kernel .config
Comment 2 jy6x2b32pie9 2019-12-27 17:36:25 UTC
Created attachment 601370 [details]
build.log
Comment 3 jy6x2b32pie9 2019-12-27 17:37:55 UTC
Created attachment 601372 [details]
emerge --info
Comment 4 jy6x2b32pie9 2019-12-27 18:02:24 UTC
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.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2019-12-27 18:12:42 UTC
(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
> that.

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.