Hi Alan, That is expected with 4.10 kernels. You can grab a patch from my /etc/portage repository: https://github.com/fsvm88/gentoo-portage_etc/blob/master/patches/x11-drivers/nvidia-drivers/378.09-4.10-rc8.patch
I took it from the NVidia forums, you can also find it there, I just rebased it for portage. Il mer 5 apr 2017, 16:19 Alan Grimes <alonz...@verizon.net> ha scritto: > I'm still running on my old kernel as I re-build my system, Nvidia > drivers just barfed > > ########################### > tortoise src # ls -l > total 12 > lrwxrwxrwx 1 root root 13 Apr 5 09:50 linux -> linux-4.10.8/ > drwxr-xr-x 25 root root 4096 Apr 5 10:01 linux-4.10.8 > drwxrwxr-x 25 root root 4096 Apr 4 22:34 linux-4.6.7 > drwxr-xr-x 7 root root 4096 Nov 23 2014 rpm > tortoise src # > ########################### > > > x86_64-pc-linux-gnu-gcc > > -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/.nv-pat.o.d > -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include > -I/usr/src/linux-4.10.8/arch/x86/include > -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated > -I/usr/src/linux-4.10.8/include -I./include > -I/usr/src/linux-4.10.8/arch/x86/include/uapi > -I/usr/src/linux-4.10.8/include/uapi -I./include/generated/uapi -include > /usr/src/linux-4.10.8/include/linux/kconfig.h > > -I/usr/src/linux-4.10.8//var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel > -I/var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel > -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs > -fno-strict-aliasing -fno-common -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=k8 -mno-red-zone -mcmodel=kernel -funit-at-a-time > -maccumulate-outgoing-args -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 -O2 > --param=allow-store-data-races=0 -Wframe-larger-than=2048 > -fno-stack-protector -Wno-unused-but-set-variable > -fno-omit-frame-pointer -fno-optimize-sibling-calls > -fno-var-tracking-assignments -fno-inline-functions-called-once > -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow > -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes > -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO > -I/var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/common/inc > -I/var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel -Wall > -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE > -DNVRM -DNV_VERSION_STRING=\"378.13\" -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-378.13/work/kernel/nvidia > -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -DMODULE > -DKBUILD_BASENAME='"nv_pat"' -DKBUILD_MODNAME='"nvidia"' -c -o > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.o > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c: > In function ‘nvidia_cpu_callback’: > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:213:14: > error: ‘CPU_DOWN_FAILED’ undeclared (first use in this function) > case CPU_DOWN_FAILED: > ^ > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:213:14: > note: each undeclared identifier is reported only once for each function > it appears in > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:220:14: > error: ‘CPU_DOWN_PREPARE’ undeclared (first use in this function) > case CPU_DOWN_PREPARE: > ^ > In file included from > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:15:0: > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c: > In function ‘nv_init_pat_support’: > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/common/inc/nv-linux.h:391:34: > error: implicit declaration of function ‘register_cpu_notifier’ > [-Werror=implicit-function-declaration] > #define register_hotcpu_notifier register_cpu_notifier > ^ > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:258:17: > note: in expansion of macro ‘register_hotcpu_notifier’ > if (register_hotcpu_notifier(&nv_hotcpu_nfb) != 0) > ^ > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c: > In function ‘nv_teardown_pat_support’: > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/common/inc/nv-linux.h:388:36: > error: implicit declaration of function ‘unregister_cpu_notifier’ > [-Werror=implicit-function-declaration] > #define unregister_hotcpu_notifier unregister_cpu_notifier > ^ > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:283:9: > note: in expansion of macro ‘unregister_hotcpu_notifier’ > unregister_hotcpu_notifier(&nv_hotcpu_nfb); > ^ > cc1: some warnings being treated as errors > make[3]: *** [/usr/src/linux-4.10.8/scripts/Makefile.build:295: > > /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.o] > Error 1 > make[2]: *** [/usr/src/linux-4.10.8/Makefile:1490: > _module_/var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel] > Error 2 > make[2]: Leaving directory '/usr/src/linux-4.10.8' > make[1]: *** [Makefile:150: sub-make] Error 2 > make[1]: Leaving directory '/usr/src/linux-4.10.8' > make: *** [Makefile:81: modules] Error 2 > * ERROR: x11-drivers/nvidia-drivers-378.13::gentoo failed (compile phase): > > > > -- > Strange Game. > The only winning move is not to play. > > Powers are not rights. > > >