Created attachment 515546 [details] emerge --info x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.106/work/kernel/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include -I/usr/src/linux-4.14.13-gentoo/arch/ x86/include -I./arch/x86/include/generated -I/usr/src/linux-4.14.13-gentoo/include -I./include -I/usr/sr c/linux-4.14.13-gentoo/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-4.14.13 -gentoo/include/uapi -I./include/generated/uapi -include /usr/src/linux-4.14.13-gentoo/include/linux/kcon fig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.106/work/kernel -I/var/tmp/portage/x11-drivers/n vidia-drivers-340.106/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-stri ct-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu 89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-803 87 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=k ernel -funit-at-a-time -DCONFIG_X86_X32_ABI -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_A S_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 -fplugi n=./scripts/gcc-plugins/cyc_complexity_plugin.so -Wframe-larger-than=1024 -fstack-protector -Wno-unused-b ut-set-variable -Wno-unused-const-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclarati on-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=impli cit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated -init -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/ x11-drivers/nvidia-drivers-340.106/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KER NEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.106\" -Wno-unused-function -Wuninitialized -fno-strict-al iasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKB UILD_BASENAME='"nv"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.1 06/work/kernel/.tmp_nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.106/work/kernel/nv.c cc1: error: incompatible gcc/plugin versions cc1: error: fail to initialize plugin ./scripts/gcc-plugins/cyc_complexity_plugin. so make[3]: *** [/usr/src/linux-4.14.13-gentoo/scripts/Makefile.build:315: /var/tmp/portage/x11-drivers/nvid ia-drivers-340.106/work/kernel/nv.o] Error 1 make[2]: *** [/usr/src/linux-4.14.13-gentoo/Makefile:1507: _module_/var/tmp/portage/x11-drivers/nvidia-dr ivers-340.106/work/kernel] Error 2 make[2]: Leaving directory '/usr/src/linux-4.14.13-gentoo' make[1]: *** [Makefile:146: sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.14.13-gentoo' NVIDIA: left KBUILD. nvidia.ko failed to build! make: *** [Makefile:191: nvidia.ko] Error 1 * ERROR: x11-drivers/nvidia-drivers-340.106::gentoo failed (compile phase): * emake failed
Created attachment 515548 [details] emerge -pqv
Created attachment 515550 [details] build.log
Created attachment 515552 [details] environment
You have TWO problems here. = NUMBER ONE = * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/4.14.13-gentoo/build * Found sources for kernel version: * 4.14.13-gentoo * Gentoo supports kernels which are supported by NVIDIA * which are limited to the following kernels: * <sys-kernel/gentoo-sources-4.10 * <sys-kernel/vanilla-sources-4.10 * You ignored a warning about the kernel version you use. I actually test the sources for kernel compatibility and I didn't raise the kernel version for this ebuild because it was already correct. Changes in include/linux/include/mm.h mean that you can't use a newer than 4.11. The output still says 4.10 and I am in the process of correcting that, but believe me: you won't get a nvidia.ko compiled with 4.14.x. = NUMBER TWO = cc1: error: incompatible gcc/plugin versions cc1: error: fail to initialize plugin ./scripts/gcc-plugins/cyc_complexity_plugin.so You updated your compiler and didn't yet recompile the kernel, so the external kernel modules cannot be compiled for the stated reason. Recompile your kernel first after switching compilers, then recompile external modules.
We here in the not-swimming-in-money world are patching nvidia-drivers-340 for newer kernels for a long time now, because despite it being incompatible to newer versions of the kernel, and those newer kernels are vital to keeping our systems secure and stable, it is still in Portage. If you keep it in Portage, and are the official maintainer of this package, do the job that that entails, and keep it working with a recent system. Otherwise it is pointless. The patches are out there. We all waste time hunting them down and applying them. Instead of the so-called maintainer doing it only once, like it was intended. Or, if you can’t do the job you apparently signed up to do, quit, and take nvidia-drivers-340 out of portage. Or let somebody take over, who actually cares for what he maintains. I would say I’m sorry for being angry, but I’m not the one doing the harming, and this is precisely what anger exists for.
nvidia-drivers emerge works well now for kernel 4.17.0. previously it works for 4.16.11 but failed 4.16.12. so need not angry now.
Simply just WORKSFORME: # equery list gentoo-sources nvidia-drivers vmware-modules [IP-] [ ] sys-kernel/gentoo-sources-5.3.11:5.3.11 [IP-] [ ] x11-drivers/nvidia-drivers-440.31:0/440 [I-O] [ ] app-emulation/vmware-modules-15.5.0-r1:0
(In reply to Navid Zamani from comment #5) I deeply disagree. @ Jeroen: Thanks for so many years of reliable contributions in so many areas!
(In reply to fkhp from comment #0) Confirmed with a PNY GTX 550 Ti, GF116, released 15. Mrz. 2011 <--- (In reply to Navid Zamani from comment #5) > ... in the not-swimming-in-money world ... Having this "problem" reveals running <= GTX 5xx: My second-oldest PNY GTX 660 Ti XLR 2 is still supported by current Version: 440.31, Release Date: 2019.11.4 <--- I'd happily grant it as a gift. (In reply to Navid Zamani from comment #5) > Or, if you can’t do the job you apparently signed up to do, quit, and take > nvidia-drivers-340 out of portage. Or let somebody take over, who actually > cares for what he maintains. Nobody keeps you from contributing e.g. via an overlay. PostScriptum: Your "emerge --info" reveals still having [vmware] overlay installed. Containing versions being EOL for very long, this had to be removed from MainPortageTree. Acting as potential virus' spray guns, I pray you don't misuse it for VMs being connected to the net. [https://bugs.gentoo.org/627666#c15] [https://bugs.gentoo.org/639162#c21] Please switch to [stefantalpalaru] overlay. Latest: please c.f. Bug 695402 - app-emulation/vmware-workstation-15.5.0 version bump It also supports the Plaer version (free of cost).