View previous topic :: View next topic |
Author |
Message |
Utsuho Reiuji Apprentice


Joined: 03 Apr 2013 Posts: 179
|
Posted: Sat Nov 09, 2019 11:06 pm Post subject: [solved] incompatible gcc/plugin error when compiling stuff |
|
|
After doing an update today, I noticed that the nvidia-drivers package (version 440.31) did not compile:
Code: | cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:281: /var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work/kernel/nvidia/nv.o] Error 1
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so |
I do not know what gcc plugin that is supposed to be. Currently (and since several month, I have been using
Code: | gcc-config --list-profiles
[1] x86_64-pc-linux-gnu-9.2.0 *
| without problem. Last week I upgraded my kernel to 5.3.7, but rebuilding nvidia-drivers-440.26 wasn't an issue then.
Anyone got a clue what the issue could be?
Edit: Now that I think of it, there was a minor gcc update:
Code: | [ebuild U ] sys-devel/gcc-9.2.0-r2:9.2.0::gentoo [9.2.0-r1:9.2.0::gentoo] | Could this be a bug with this new version of gcc?
Last edited by Utsuho Reiuji on Sun Nov 10, 2019 2:30 pm; edited 1 time in total |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23387
|
Posted: Sun Nov 10, 2019 1:30 am Post subject: |
|
|
Why do you think it is a bug that the system has detected and warned you that you are trying to mix gcc versions? This check is specifically to avoid bugs caused by silent ABI changes. This check typically only impacts people who use out-of-tree modules. Did you recompile your core kernel with the same version of gcc as you are now using for the nVidia proprietary blob? |
|
Back to top |
|
 |
Utsuho Reiuji Apprentice


Joined: 03 Apr 2013 Posts: 179
|
Posted: Sun Nov 10, 2019 2:06 pm Post subject: |
|
|
There was a gcc update after my kernel update. So all it takes is to recompile my kernel?
I'm using gentoo since years and this is the 1st time this happened, so yeah, I thought it would be a bug.
Edit: I used this opportunity to do a kernel update. nvidia-drives compiled without issue after that. |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23387
|
Posted: Sun Nov 10, 2019 6:43 pm Post subject: |
|
|
What do you think should have been done differently here? |
|
Back to top |
|
 |
|