Hi all, Because of an old graphic card, i have to compile nvidia-drivers-340.76. nvidia-drivers-340.76 does not compile with the new 4.0.5 kernel. Here is the output error : /var/tmp/portage/x11-drivers/nvidia-drivers-340.76/work/kernel/nv-pat.o] Error 1
I saw a topic about that problem on Gentoo forum : https://forums.gentoo.org/viewtopic-p-7754020.html?sid=3b9fed3069c0b6644c1a41e839455b85 I tried to apply the patch /etc/portage/patches/x11-drivers/nvidia-drivers/nvidia-drivers-340.76.patch *--- a/kernel/nv-pat.c.orig * *+++ b/kernel/nv-pat.c * *@@ -35,8 +35,13 @@ * * unsigned long cr0 = read_cr0(); * * write_cr0(((cr0 & (0xdfffffff)) | 0x40000000)); * * wbinvd(); * *+if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0) * * *cr4 = read_cr4(); * * if (*cr4 & 0x80) write_cr4(*cr4 & ~0x80); * *+else * *+ *cr4 = __read_cr4(); * *+ if (*cr4 & 0x80) __write_cr4(*cr4 & ~0x80); * *+endif * * __flush_tlb(); * * } * *@@ -46,7 +51,11 @@ * * wbinvd(); * * __flush_tlb(); * * write_cr0((cr0 & 0x9fffffff)); * *+if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0) * * if (cr4 & 0x80) write_cr4(cr4); * *+else * *+ if (cr4 & 0x80) __write_cr4(cr4); * *+endif * * } * * static int nv_determine_pat_mode(void)* This patch does not work ; i get the error * Failed Patch: nvidia-drivers-340.76.patch ! * ( /etc/portage/patches//x11-drivers/nvidia-drivers/nvidia-drivers-340.76.patch ) Any idea ? Thanks a lot, Cheers, *--* *Jacques*