nvidia-drivers (latest and previous) builds fine with kernel 4.6.x, but fails with 4.7.0 and 4.7.1. x11-drivers/nvidia-drivers-370.23/work/kernel/nvidia/nv-frontend.c * ACCESS DENIED: fopen_wr: /usr/src/linux-4.7.1-gentoo/nv-frontend.d /mnt/storage/portage/x11-drivers/nvidia-drivers-370.23/work/kernel/nvidia/nv-frontend.c:16:0: fatal error: opening dependency file nv-frontend.d: Permission denied * ACCESS DENIED: fopen_wr: /usr/src/linux-4.7.1-gentoo/nv-instance.d /mnt/storage/portage/x11-drivers/nvidia-drivers-370.23/work/kernel/nvidia/nv-instance.c:16:0: fatal error: opening dependency file nv-instance.d: Permission denied * ACCESS DENIED: fopen_wr: /usr/src/linux-4.7.1-gentoo/nv.d /mnt/storage/portage/x11-drivers/nvidia-drivers-370.23/work/kernel/nvidia/nv.c:49:0: fatal error: opening dependency file nv.d: Permission denied * ACCESS DENIED: fopen_wr: /usr/src/linux-4.7.1-gentoo/nv-acpi.d /mnt/storage/portage/x11-drivers/nvidia-drivers-370.23/work/kernel/nvidia/nv-acpi.c:17:0: fatal error: opening dependency file nv-acpi.d: Permission denied and for all subsequent source files. Wondering if anybody was able to build nvidia-drivers with 4.7.
Do not copy arch teams on bug reports.
Please attach a full build log and provide emerge --info.
Created attachment 443756 [details] logs.tar.bz2
Comment on attachment 443756 [details] logs.tar.bz2 - log of failed build with kernel 4.7.1 - log of successful build with kernel 4.6.7 - output of emerge --info
Can confirm. I'm also having this issue for kernel 4.7.1 and nvidia-drivers 370.23.
I found this somewhere in Twitter: https://twitter.com/Cynede/status/765879300348342272?lang=es A workaround: install the previous version (367.35-r1) and then apply this patch: http://pastebin.com/cw1tncgm Works fine with Kernel 4.7.
*** This bug has been marked as a duplicate of bug 586066 ***
I can't do anything about your filesystem permissions.
I think what's going on here is that kernel 4.7 adds a new option TRIM_UNUSED_KSYMS, and when this is enabled then the nvidia-drivers build tries to create some stuff in /usr/src/linux Maybe nvidia-drivers should CONFIG_CHECK="~!TRIM_UNUSED_KSYMS" ?
I can confirm that nvidia-drivers 370.23 merges successfully against kernel 4.7.2 with TRIM_UNUSED_KSYMS=n.
*** This bug has been marked as a duplicate of bug 591832 ***
*** Bug 591840 has been marked as a duplicate of this bug. ***
*** Bug 591832 has been marked as a duplicate of this bug. ***
*** Bug 592400 has been marked as a duplicate of this bug. ***
*** Bug 593590 has been marked as a duplicate of this bug. ***
i confirm x11-drivers/nvidia-drivers-370.28 won't build if TRIM_UNUSED_KSYMS is enabled. I think comment #9 is a good idea.
This been fixed for a few years, linux-mod.eclass has: # External modules use kernel symbols (bug #591832) CONFIG_CHECK+=" !TRIM_UNUSED_KSYMS" Closing.