1 |
Hi Alan, |
2 |
|
3 |
That is expected with 4.10 kernels. |
4 |
You can grab a patch from my /etc/portage repository: |
5 |
https://github.com/fsvm88/gentoo-portage_etc/blob/master/patches/x11-drivers/nvidia-drivers/378.09-4.10-rc8.patch |
6 |
|
7 |
I took it from the NVidia forums, you can also find it there, I just |
8 |
rebased it for portage. |
9 |
|
10 |
Il mer 5 apr 2017, 16:19 Alan Grimes <ALONZOTG@×××××××.net> ha scritto: |
11 |
|
12 |
> I'm still running on my old kernel as I re-build my system, Nvidia |
13 |
> drivers just barfed |
14 |
> |
15 |
> ########################### |
16 |
> tortoise src # ls -l |
17 |
> total 12 |
18 |
> lrwxrwxrwx 1 root root 13 Apr 5 09:50 linux -> linux-4.10.8/ |
19 |
> drwxr-xr-x 25 root root 4096 Apr 5 10:01 linux-4.10.8 |
20 |
> drwxrwxr-x 25 root root 4096 Apr 4 22:34 linux-4.6.7 |
21 |
> drwxr-xr-x 7 root root 4096 Nov 23 2014 rpm |
22 |
> tortoise src # |
23 |
> ########################### |
24 |
> |
25 |
> |
26 |
> x86_64-pc-linux-gnu-gcc |
27 |
> |
28 |
> -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/.nv-pat.o.d |
29 |
> -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include |
30 |
> -I/usr/src/linux-4.10.8/arch/x86/include |
31 |
> -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated |
32 |
> -I/usr/src/linux-4.10.8/include -I./include |
33 |
> -I/usr/src/linux-4.10.8/arch/x86/include/uapi |
34 |
> -I/usr/src/linux-4.10.8/include/uapi -I./include/generated/uapi -include |
35 |
> /usr/src/linux-4.10.8/include/linux/kconfig.h |
36 |
> |
37 |
> -I/usr/src/linux-4.10.8//var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel |
38 |
> -I/var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel |
39 |
> -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs |
40 |
> -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration |
41 |
> -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 |
42 |
> -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 |
43 |
> -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup |
44 |
> -march=k8 -mno-red-zone -mcmodel=kernel -funit-at-a-time |
45 |
> -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 |
46 |
> -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 |
47 |
> -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 |
48 |
> -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 |
49 |
> -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare |
50 |
> -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 |
51 |
> --param=allow-store-data-races=0 -Wframe-larger-than=2048 |
52 |
> -fno-stack-protector -Wno-unused-but-set-variable |
53 |
> -fno-omit-frame-pointer -fno-optimize-sibling-calls |
54 |
> -fno-var-tracking-assignments -fno-inline-functions-called-once |
55 |
> -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow |
56 |
> -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes |
57 |
> -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO |
58 |
> -I/var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/common/inc |
59 |
> -I/var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel -Wall |
60 |
> -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE |
61 |
> -DNVRM -DNV_VERSION_STRING=\"378.13\" -Wno-unused-function |
62 |
> -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel |
63 |
> -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args -Werror=undef |
64 |
> -I/var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia |
65 |
> -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -DMODULE |
66 |
> -DKBUILD_BASENAME='"nv_pat"' -DKBUILD_MODNAME='"nvidia"' -c -o |
67 |
> |
68 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.o |
69 |
> |
70 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c |
71 |
> |
72 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c: |
73 |
> In function ‘nvidia_cpu_callback’: |
74 |
> |
75 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:213:14: |
76 |
> error: ‘CPU_DOWN_FAILED’ undeclared (first use in this function) |
77 |
> case CPU_DOWN_FAILED: |
78 |
> ^ |
79 |
> |
80 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:213:14: |
81 |
> note: each undeclared identifier is reported only once for each function |
82 |
> it appears in |
83 |
> |
84 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:220:14: |
85 |
> error: ‘CPU_DOWN_PREPARE’ undeclared (first use in this function) |
86 |
> case CPU_DOWN_PREPARE: |
87 |
> ^ |
88 |
> In file included from |
89 |
> |
90 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:15:0: |
91 |
> |
92 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c: |
93 |
> In function ‘nv_init_pat_support’: |
94 |
> |
95 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/common/inc/nv-linux.h:391:34: |
96 |
> error: implicit declaration of function ‘register_cpu_notifier’ |
97 |
> [-Werror=implicit-function-declaration] |
98 |
> #define register_hotcpu_notifier register_cpu_notifier |
99 |
> ^ |
100 |
> |
101 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:258:17: |
102 |
> note: in expansion of macro ‘register_hotcpu_notifier’ |
103 |
> if (register_hotcpu_notifier(&nv_hotcpu_nfb) != 0) |
104 |
> ^ |
105 |
> |
106 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c: |
107 |
> In function ‘nv_teardown_pat_support’: |
108 |
> |
109 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/common/inc/nv-linux.h:388:36: |
110 |
> error: implicit declaration of function ‘unregister_cpu_notifier’ |
111 |
> [-Werror=implicit-function-declaration] |
112 |
> #define unregister_hotcpu_notifier unregister_cpu_notifier |
113 |
> ^ |
114 |
> |
115 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.c:283:9: |
116 |
> note: in expansion of macro ‘unregister_hotcpu_notifier’ |
117 |
> unregister_hotcpu_notifier(&nv_hotcpu_nfb); |
118 |
> ^ |
119 |
> cc1: some warnings being treated as errors |
120 |
> make[3]: *** [/usr/src/linux-4.10.8/scripts/Makefile.build:295: |
121 |
> |
122 |
> /var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel/nvidia/nv-pat.o] |
123 |
> Error 1 |
124 |
> make[2]: *** [/usr/src/linux-4.10.8/Makefile:1490: |
125 |
> _module_/var/tmp/portage/x11-drivers/nvidia-drivers-378.13/work/kernel] |
126 |
> Error 2 |
127 |
> make[2]: Leaving directory '/usr/src/linux-4.10.8' |
128 |
> make[1]: *** [Makefile:150: sub-make] Error 2 |
129 |
> make[1]: Leaving directory '/usr/src/linux-4.10.8' |
130 |
> make: *** [Makefile:81: modules] Error 2 |
131 |
> * ERROR: x11-drivers/nvidia-drivers-378.13::gentoo failed (compile phase): |
132 |
> |
133 |
> |
134 |
> |
135 |
> -- |
136 |
> Strange Game. |
137 |
> The only winning move is not to play. |
138 |
> |
139 |
> Powers are not rights. |
140 |
> |
141 |
> |
142 |
> |