Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] incompatible gcc/plugin error when compiling stuff
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Utsuho Reiuji
Apprentice
Apprentice


Joined: 03 Apr 2013
Posts: 179

PostPosted: Sat Nov 09, 2019 11:06 pm    Post subject: [solved] incompatible gcc/plugin error when compiling stuff Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23387

PostPosted: Sun Nov 10, 2019 1:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Utsuho Reiuji
Apprentice
Apprentice


Joined: 03 Apr 2013
Posts: 179

PostPosted: Sun Nov 10, 2019 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23387

PostPosted: Sun Nov 10, 2019 6:43 pm    Post subject: Reply with quote

What do you think should have been done differently here?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum