Created attachment 499994 [details] emerge --info Linux 4.10.x => 4.11.y introduces a change in include/linux/mm.h, where the 1st arg of vm_operations_struct.fault is removed. Resulting error is like that: /var/tmp/portage/x11-drivers/nvidia-drivers-340.104/work/kernel/uvm/nvidia_uvm_lite.c: At top level: /var/tmp/portage/x11-drivers/nvidia-drivers-340.104/work/kernel/uvm/nvidia_uvm_lite.c:857:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .fault = _fault, ^ /var/tmp/portage/x11-drivers/nvidia-drivers-340.104/work/kernel/uvm/nvidia_uvm_lite.c:857:14: note: (near initialization for 'uvmlite_vma_ops.fault') /var/tmp/portage/x11-drivers/nvidia-drivers-340.104/work/kernel/uvm/nvidia_uvm_lite.c:887:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .fault = _sigbus_fault, ^ /var/tmp/portage/x11-drivers/nvidia-drivers-340.104/work/kernel/uvm/nvidia_uvm_lite.c:887:14: note: (near initialization for 'counters_vma_ops.fault') cc1: some warnings being treated as errors This could most probably also affect different versions of the driver(s) - I'd expect newer drivers to be more supported, but my old notebook limits me to that version. Furthermore, flavour of kernel should not matter much (pf-sources-4.13-p4 in my case), as the problem seems to be introduced from a change in mainline kernel.
only happens with USE="uvm"
nvidia-drivers-340.104.ebuild: if use kernel_linux && kernel_is ge 4 10; then ewarn "Gentoo supports kernels which are supported by NVIDIA" ewarn "which are limited to the following kernels:" ewarn "<sys-kernel/gentoo-sources-4.10" ewarn "<sys-kernel/vanilla-sources-4.10" ewarn "" ewarn "You are free to utilize eapply_user to provide whatever" ewarn "support you feel is appropriate, but will not receive" ewarn "support as a result of those changes." ewarn "" ewarn "Do not file a bug report about this." ewarn "" fi