As summarized, nvidia-drivers-515.43.04[kernel-open] will fail to compile without the kernel having MMU_NOTIFIER configured in. There's several options to enable it, an easy way is to enable virtualization and KVM. Reproducible: Always Steps to Reproduce: 1. Don't have MMU_NOTIFIER configured into the kernel 2. Compile nvidia-drivers[kernel-open] Actual Results: Compile phase fails because nvidia_uvm requires mmu_notifier Expected Results: I guess this is expected Probably need to add a kernel config check for MMU_NOTIFIER. USE="kernel-open" is still new so there's probably more than one way around it, perhaps as the source is more open more flags can be used to flip features on/off.
Created attachment 778181 [details] no MMU_NOTIFIER failure build log
Created attachment 778184 [details] MMU_NOTIFIER successful build log
Thanks, I have CONFIG_KVM on all my kernels so I wouldn't have noticed. As you suggest, I'll go ahead and set a conditional check if USE=kernel-open, and keep an eye on conftest changes to see if I can remove it at some point. It may be possible to be optional given I see `#if UVM_CAN_USE_MMU_NOTIFIERS()` but I'd rather not do workarounds at this stage and I'll let nvidia polish this (+community now).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b2d2274e07fe5f2b92c0e41bdd76211e09b5cb0 commit 7b2d2274e07fe5f2b92c0e41bdd76211e09b5cb0 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2022-05-12 02:24:39 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2022-05-12 02:40:39 +0000 x11-drivers/nvidia-drivers: require MMU_NOTIFIER with kernel-open Closes: https://bugs.gentoo.org/843827 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> x11-drivers/nvidia-drivers/nvidia-drivers-515.43.04.ebuild | 5 +++++ 1 file changed, 5 insertions(+)