Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704024 - net-vpn/wireguard-modules-0.0.20191226 - cc1: error: incompatible gcc/plugin versions
Summary: net-vpn/wireguard-modules-0.0.20191226 - cc1: error: incompatible gcc/plugin ...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-27 17:34 UTC by jy6x2b32pie9
Modified: 2019-12-27 18:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel .config (.config,121.03 KB, text/plain)
2019-12-27 17:35 UTC, jy6x2b32pie9
Details
build.log (net-vpn:wireguard-modules-0.0.20191226:20191227-173302.log,4.41 KB, text/plain)
2019-12-27 17:36 UTC, jy6x2b32pie9
Details
emerge --info (emerge.txt,7.94 KB, text/plain)
2019-12-27 17:37 UTC, jy6x2b32pie9
Details

Note You need to log in before you can comment on or make changes to this bug.
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.