CONFTEST: is_export_symbol_gpl_refcount_dec_and_test x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-387.22/work/kernel/nvidia/.nv-gpu-numa.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include -I/usr/src/linux-4.13.12-gentoo/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-4.13.12-gentoo/include -I./include -I/usr/src/linux-4.13.12-gentoo/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-4.13.12-gentoo/include/uapi -I./include/generated/uapi -include /usr/src/linux-4.13.12-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-387.22/work/kernel -I/var/tmp/portage/x11-drivers/nvidia-drivers-387.22/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -fplugin=./scripts/gcc-plugins/structleak_plugin.so -fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so -DSTRUCTLEAK_PLUGIN -DRANDSTRUCT_PLUGIN -fplugin-arg-randomize_layout_plugin-performance-mode -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/var/tmp/portage/x11-drivers/nvidia-drivers-387.22/work/kernel/common/inc -I/var/tmp/portage/x11-drivers/nvidia-drivers-387.22/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"387.22\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args -Werror=undef -I/var/tmp/portage/x11-drivers/nvidia-drivers-387.22/work/kernel/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -DKBUILD_BASENAME='"nv_gpu_numa"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-387.22/work/kernel/nvidia/.tmp_nv-gpu-numa.o /var/tmp/portage/x11-drivers/nvidia-drivers-387.22/work/kernel/nvidia/nv-gpu-numa.c cc1: error: incompatible gcc/plugin versions cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so cc1: error: incompatible gcc/plugin versions cc1: error: fail to initialize plugin ./scripts/gcc-plugins/randomize_layout_plugin.so make[3]: *** [/usr/src/linux-4.13.12-gentoo/scripts/Makefile.build:303: /var/tmp/portage/x11-drivers/nvidia-drivers-387.22/work/kernel/nvidia/nv-gpu-numa.o] Error 1 make[2]: *** [/usr/src/linux-4.13.12-gentoo/Makefile:1512: _module_/var/tmp/portage/x11-drivers/nvidia-drivers-387.22/work/kernel] Error 2 make[2]: Leaving directory '/usr/src/linux-4.13.12-gentoo' make[1]: *** [Makefile:145: sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.13.12-gentoo' make: *** [Makefile:84: modules] Error 2
Portage 2.3.16 (python 3.6.3-final-0, default/linux/amd64/13.0/systemd, gcc-7.2.0, glibc-2.26-r3, 4.13.12-gentoo x86_64) ================================================================= System uname: Linux-4.13.12-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-gentoo-2.4.1 KiB Mem: 55696272 total, 16873240 free KiB Swap: 3906556 total, 3906556 free Timestamp of repository gentoo: Fri, 24 Nov 2017 14:30:01 +0000 Head commit of repository gentoo: 0f6115b843cd77e0946b91ef08009b50861c9abf sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.26.9999::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.6.3-r1::gentoo dev-util/cmake: 3.10.0::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.6::gentoo sys-apps/sandbox: 2.12::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 5.4.0-r3::gentoo, 6.3.0::gentoo, 6.4.0::gentoo, 7.2.0::gentoo sys-devel/gcc-config: 1.9.0::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: Local-Grotto location: /usr/local/portage masters: gentoo priority: 0 andy location: /var/lib/layman/andy masters: gentoo priority: 50 cg location: /var/lib/layman/cg masters: gentoo priority: 50 gamerlay location: /var/lib/layman/gamerlay masters: gentoo priority: 50 games-overlay location: /var/lib/layman/games-overlay masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 50 stuff location: /var/lib/layman/stuff sync-uri: https://github.com/istitov/stuff.git masters: gentoo priority: 50 sunrise location: /var/lib/layman/sunrise masters: gentoo priority: 50 x11 location: /var/lib/layman/x11 masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb" 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.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -mtune=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j28" PKGDIR="/usr/portage/packages" 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 account acl aio alsa amd64 ao apache2 archive asio audit aura bash-completion berkdb bzip2 caps cddb cg cgmanager cinder clang cleartype cli client cluster context corefonts cpudetection cracklib crypt cuda curl custom-cflags custom-optimization cxx d3d9 dbus declarative dhcp-tools dri dri3 drm eds egl evdev examples extensions extra extraengine faac ffmpeg fontconfig fortran fpm fuse gallium games gbm gcj gd gdbm gegl gimp glamor glance gnome gnome-keyring gnutls gold gphoto2 graphics gstaudio gstreamer gstvideo gtk gtk3 hbci hidpi horizon http humanities icedtea7 iconv inotify introspection ipv6 jabber javascript jemalloc jingle jpeg keystone lame libcaca libcanberra libkms libnotify libsecret llvm-shared-libs logrotate lxc lzma lzo mad md5sum meanwhile metapost mmap mms mmx mmxext modules monitor mp3 mp4 mpeg mtp multilib music mysql mysqli mysqlnd ncat ncurses ndiff networkmanager neutron nftables nls nova nping nptl nsplugin numa nvenc offensive ofx ogg omega omxil opcache opencl opencv openexr opengl openmp opus osmesa pam pcap pcre pdo pgo pipelight pkcs11 playlist pm-utils png postgres postproc prelink projectm pstricks publishers pulseaudio qos qrcode qt5 r600-llvm-compiler readline rfc3779 rtmp s3tc science sctp seccomp secure-delete session shout smbtav2 soap sockets source speex sphinx spice ssh ssl staging stats streaming svc swift system-cairo system-harfbuzz system-icu system-jpeg system-libevent system-sqlite systemd systemtap sysv-utils tcpd terminal tex4ht texi2html themes theora threads tiff tokudb tools tor-hardening truetype type1 udev udisks unicode usbredir utils uvm uxa vaapi vala vdpau vim-syntax virtualbox visio vorbis vpx vte webp widevine x264 x265 xa xattr xcb xcomposite xetex xindy xinerama xml xmlreader xmlrpc xmlwriter xmpp xorg xpm xrandr xscreensaver xslt xvfb xvmc zenmap zip zlib zsh-completion" ABI_X86="64 32" 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="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation proxy proxy_balancer proxy_connect proxy_fdpass proxy_fcgi proxy_http proxy_scgi proxy_wstunnel ratelimit rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu efi-64 pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_us" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi gunzip gzip_static metrics mp4 naxsi security realip stub_status pcre-jit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0 php7-1" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="brightness clock power trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
cc1: error: incompatible gcc/plugin versions You need to build the kernel with the same compiler.