2016-04-30 12:55 GMT+02:00 Alan McKinnon <alan.mckinnon@gmail.com>:
On 30/04/2016 12:52, Jacques Montier wrote:
> Hello all,
>
> I need nvidia-drivers-340.76 for my Nvidia GeForce GT240 graphic card.
> I use nvidia-drivers-340.76 from a local overlay with the
> nvidia-drivers-340-76-kernel-4.0.patch which works fine with
> gentoo-sources-4.1.15-r1.
> I would like to upgrade to the 4.4.6 kernel.
> Unfortunately, nvidia-drivers-340.76 does not compile anymore.
> I get the errors :
>
> 3410:make[3]: ***
> [/var/tmp/portage/x11-drivers/nvidia-drivers-340.76/work/kernel/nv-procfs.o]
> Error 1
> 3651:make[2]: ***
> [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-340.76/work/kernel]
> Error 2
> 3654:make[1]: *** [sub-make] Error 2
> 3659:make: *** [nvidia.ko] Error 1
>
> Any idea ? New patch ?
>
> Thanks a lot,
>
> Regards,
>
> /--/
> /Jacques/


The real error is higher up in the output. Please post it.

--
Alan McKinnon
alan.mckinnon@gmail.com



Ok Alan, 
here are some lines up the first error.
You can get the complete log in the attached file 
x11-drivers:nvidia-drivers-340.76:20160430-104727.log
 

......................
^[[01;32m^[[K   ^^[[m^[[K
^[[01m^[[K/var/tmp/portage/x11-drivers/nvidia-drivers-340.76/work/kernel/nv-procfs.c:556:1:^[[m^[[K ^[[01;35m^[[Kwarning: ^[[m^[[Kcontrol reaches end of non-void function [-Wreturn-type]
 }
^[[01;32m^[[K ^^[[m^[[K
^[[01m^[[K/var/tmp/portage/x11-drivers/nvidia-drivers-340.76/work/kernel/nv-procfs.c:^[[m^[[K In function ‘^[[01m^[[Knv_procfs_read_registry^[[m^[[K’:
^[[01m^[[K/var/tmp/portage/x11-drivers/nvidia-drivers-340.76/work/kernel/nv-procfs.c:360:1:^[[m^[[K ^[[01;35m^[[Kwarning: ^[[m^[[Kcontrol reaches end of non-void function [-Wreturn-type]
 }
^[[01;32m^[[K ^^[[m^[[K
/usr/src/linux-4.4.6-gentoo/scripts/Makefile.build:258: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-340.76/work/kernel/nv-procfs.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-340.76/work/kernel/nv-procfs.o] Error 1
.................


Regards,

--
Jacques