Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591640 - x11-drivers/nvidia-drivers-370.23 - .../work/kernel/nvidia/nv-frontend.c:16:0: fatal error: opening dependency file nv-frontend.d: Permission denied
Summary: x11-drivers/nvidia-drivers-370.23 - .../work/kernel/nvidia/nv-frontend.c:16:0...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jeroen Roovers
URL:
Whiteboard:
Keywords:
: 591840 592400 593590 (view as bug list)
Depends on: 591832
Blocks:
  Show dependency tree
 
Reported: 2016-08-18 23:09 UTC by eu9gu4
Modified: 2016-12-24 09:13 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
logs.tar.bz2 (logs.tar.bz2,41.40 KB, application/x-bzip-compressed-tar)
2016-08-19 09:44 UTC, eu9gu4
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eu9gu4 2016-08-18 23:09:28 UTC
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.
Comment 1 Mike Gilbert gentoo-dev 2016-08-19 02:29:42 UTC
Do not copy arch teams on bug reports.
Comment 2 Mike Gilbert gentoo-dev 2016-08-19 02:31:07 UTC
Please attach a full build log and provide emerge --info.
Comment 3 eu9gu4 2016-08-19 09:44:18 UTC
Created attachment 443756 [details]
logs.tar.bz2
Comment 4 eu9gu4 2016-08-19 09:48:18 UTC
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
Comment 5 Anders Larsson 2016-08-20 10:47:22 UTC
Can confirm. I'm also having this issue for kernel 4.7.1 and nvidia-drivers 370.23.
Comment 6 jorgicio 2016-08-21 00:24:04 UTC
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.
Comment 7 Jeroen Roovers gentoo-dev 2016-08-21 10:02:31 UTC

*** This bug has been marked as a duplicate of bug 586066 ***
Comment 8 Jeroen Roovers gentoo-dev 2016-08-21 12:18:44 UTC
I can't do anything about your filesystem permissions.
Comment 9 Ben Kohler gentoo-dev 2016-08-21 16:27:47 UTC
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" ?
Comment 10 Anders Larsson 2016-08-21 17:17:50 UTC
I can confirm that nvidia-drivers 370.23 merges successfully against kernel 4.7.2 with TRIM_UNUSED_KSYMS=n.
Comment 11 Alex Xu (Hello71) 2016-08-21 23:38:30 UTC

*** This bug has been marked as a duplicate of bug 591832 ***
Comment 12 Jeroen Roovers gentoo-dev 2016-08-22 08:49:56 UTC
*** Bug 591840 has been marked as a duplicate of this bug. ***
Comment 13 Jeroen Roovers gentoo-dev 2016-08-22 08:51:26 UTC
*** Bug 591832 has been marked as a duplicate of this bug. ***
Comment 14 Ben Kohler gentoo-dev 2016-08-29 21:47:20 UTC
*** Bug 592400 has been marked as a duplicate of this bug. ***
Comment 15 Jeroen Roovers gentoo-dev 2016-09-12 14:48:55 UTC
*** Bug 593590 has been marked as a duplicate of this bug. ***
Comment 16 László Szalma 2016-10-26 19:40:00 UTC
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.