Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 791232 - x11-drivers/nvidia-drivers-465.31 fails to compile with gcc-11
Summary: x11-drivers/nvidia-drivers-465.31 fails to compile with gcc-11
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-20 15:40 UTC by jms
Modified: 2021-05-20 16:00 UTC (History)
2 users (show)

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


Attachments
build log (x11-drivers:nvidia-drivers-465.31:20210520-152625.log,7.14 KB, text/x-log)
2021-05-20 15:45 UTC, jms
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jms 2021-05-20 15:40:47 UTC
x11-drivers/nvidia-drivers-465.31 and probably all other below fails to compile with gcc-11 

cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:279: /var/tmp/portage/x11-drivers/nvidia-drivers-465.31/work/kernel/nvidia-peermem/nvidia-ib-peermem-stub.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1820: /var/tmp/portage/x11-drivers/nvidia-drivers-465.31/work/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-5.11.16-gentoo'
make: *** [Makefile:80: modules] Error 2
 * ERROR: x11-drivers/nvidia-drivers-465.31::gentoo failed (compile phase):
 *   emake failed

should this be marked in ebuild?


Reproducible: Always
Comment 1 jms 2021-05-20 15:42:23 UTC
emerge --info '=x11-drivers/nvidia-drivers-465.31::gentoo'
Portage 3.0.18 (python 3.8.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.1.0, glibc-2.32-r7, 5.11.16-gentoojms-0.7.19 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.11.16-gentoojms-0.7.19-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.2.5
KiB Mem:    32892044 total,  19047304 free
KiB Swap:   33791996 total,  33791996 free
Timestamp of repository gentoo: Thu, 20 May 2021 10:30:01 +0000
Head commit of repository gentoo: cb7a5f7a37a70e41c378a66b7c8aa534b5367b4c
Timestamp of repository Case_Of: Sat, 15 May 2021 20:05:13 +0000
Head commit of repository Case_Of: d97d60e8cdda1ca7c72d0dd3b5afad4eadd2d3fd

Timestamp of repository kde: Sun, 16 May 2021 10:50:07 +0000
Head commit of repository kde: e8b51aed9fc5e03374a3d7d160eaa84617e20daa

Timestamp of repository robert7k: Thu, 13 May 2021 14:05:18 +0000
Head commit of repository robert7k: ed3509c9894af9e47532cea8de1ac5783355af79

Timestamp of repository steam-overlay: Wed, 12 May 2021 10:07:12 +0000
Head commit of repository steam-overlay: 81b3aec6f24f5b2755219194ab2a1e504bf7b903

sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18_p9::gentoo, 3.8.9_p2::gentoo, 3.9.4_p1::gentoo
dev-lang/rust-bin:        1.51.0::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.23::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            11.1.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

Case_Of
    location: /var/db/repos/Case_Of
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/Case_Of.git
    masters: gentoo

jmslocalrepo
    location: /var/db/repos/localrepo
    masters: gentoo

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo

robert7k
    location: /var/db/repos/robert7k
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/robert7k.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=znver2 -O2 -pipe"
DISTDIR="/opt/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=znver2 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver2 -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fr es"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 apache2 berkdb bindist bluetooth bluray branding bzip2 cairo cdda cddb cdr cgroups cli crypt cups dbus declarative dri dri3 dts dvbpsi dvd dvdr ebook efi egl elogind emboss encode epub exif ffmpeg flac fortran gbm gdbm gif glamor gles gles2 gpm grub gtk gui iconv icu ipv6 jpeg kde kipi kwallet lame lcms libass libcaca libglvnd libnotify libtirpc lm-sensors lm_sensors logrotate lzma mad matroska mng mobi mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ogg opengl openmax openmp opus pam pango pcre pdf phonon php plasma png policykit ppds projectm pulseaudio qml qt5 qtmedia readline sddm sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg taglib tcpd theora threads tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi vlm vorbis vpx wayland widgets wxwidgets x264 x265 xa xattr xcb xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en-GB fr-FR es-ES en fr es" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="hp hp4200 hp5400 hp5590" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 2 jms 2021-05-20 15:45:18 UTC
Created attachment 710016 [details]
build log
Comment 3 jms 2021-05-20 15:50:37 UTC
correct me if I am wrong this is a blocker to gcc-11 right?
Comment 4 Ionen Wolkens gentoo-dev 2021-05-20 15:55:19 UTC
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so

This isn't because of gcc11 in itself, it's because the gcc version you used to build your kernel is mismatching the one you're using now, e.g. would happen with gcc9->gcc10 too.

Solution is to `make clean` and rebuild your kernel with same version of gcc.

Nothing I can do from nvidia-drivers' end.
Comment 5 jms 2021-05-20 16:00:30 UTC
(In reply to Ionen Wolkens from comment #4)
> cc1: error: incompatible gcc/plugin versions
> cc1: error: failed to initialize plugin
> ./scripts/gcc-plugins/structleak_plugin.so
> 
> This isn't because of gcc11 in itself, it's because the gcc version you used
> to build your kernel is mismatching the one you're using now, e.g. would
> happen with gcc9->gcc10 too.
> 
> Solution is to `make clean` and rebuild your kernel with same version of gcc.
> 
> Nothing I can do from nvidia-drivers' end.

ah ok sorry.
and thanks for clearing this up