Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved] incompatible gcc/plugin error when compiling stuff

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Utsuho Reiuji
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Wed Apr 03, 2013 6:43 am

[solved] incompatible gcc/plugin error when compiling stuff

  • Quote

Post by Utsuho Reiuji » Sat Nov 09, 2019 11:06 pm

After doing an update today, I noticed that the nvidia-drivers package (version 440.31) did not compile:

Code: Select all

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: Select all

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: Select all

[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.
Top
Hu
Administrator
Administrator
Posts: 24386
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sun Nov 10, 2019 1:30 am

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?
Top
Utsuho Reiuji
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Wed Apr 03, 2013 6:43 am

  • Quote

Post by Utsuho Reiuji » Sun Nov 10, 2019 2:06 pm

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.
Top
Hu
Administrator
Administrator
Posts: 24386
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sun Nov 10, 2019 6:43 pm

What do you think should have been done differently here?
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic