Current have x11-drivers/nvidia-drivers-381.22-r1 build against linux-4.10 kernel. After compiling new kernel, emerge @module-rebuild failed. Reproducible: Always Steps to Reproduce: 1. Select and build gentoo-source 4.11.11 kernel. 2. emerge @module-rebuild or emerge =nvidia-drivers-381.22-r1 Actual Results: CONFTEST: drm_atomic_modeset_nonblocking_commit_available ln -sf /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-kernel.o_binary /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-kernel.o x86_64-pc-linux-gnu-ld -m elf_x86_64 -r -o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-frontend.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-instance.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-acpi.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-chrdev.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-cray.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-dma.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-gvi.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-i2c.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-mempool.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-mmap.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-p2p.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-pat.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-procfs.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-usermap.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-vm.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-vtophys.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/os-interface.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/os-mlock.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/os-pci.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/os-registry.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/os-usermap.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-modeset-interface.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-pci-table.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-kthread-q.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-kthread-q-selftest.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv_uvm_interface.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nvlink_linux.o /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-kernel.o x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-frontend.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-instance.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-acpi.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-chrdev.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-cray.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-dma.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-gvi.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-i2c.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-mempool.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-mmap.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-p2p.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-pat.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-procfs.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-usermap.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-vm.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-vtophys.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/os-interface.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/os-mlock.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/os-pci.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/os-registry.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/os-usermap.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-modeset-interface.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-pci-table.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-kthread-q.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv-kthread-q-selftest.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nv_uvm_interface.o: No such file or directory x86_64-pc-linux-gnu-ld: cannot find /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia/nvlink_linux.o: No such file or directory make[3]: *** [/usr/src/linux-4.11.11-gentoo/scripts/Makefile.build:540: /var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel/nvidia.o] Error 1 make[2]: *** [/usr/src/linux-4.11.11-gentoo/Makefile:1492: _module_/var/tmp/portage/x11-drivers/nvidia-drivers-381.22-r1/work/kernel] Error 2 make[2]: Leaving directory '/usr/src/linux-4.11.11-gentoo' make[1]: *** [Makefile:152: sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.11.11-gentoo' make: *** [Makefile:81: modules] Error 2 * ERROR: x11-drivers/nvidia-drivers-381.22-r1::gentoo failed (compile phase): * emake failed nvidia-drivers also seems to require elfutils to compile. But that's probably another story.