You are not logged in.

#1 2016-08-24 05:58:40

wired
Member
Registered: 2014-09-06
Posts: 8

[Solved] nvidia module will not compile since kernel 4.7.0

Hello,

For my custom kernel i need to compile the nvidia module. This has always worked for me the last few years,
but since kernel 4.7.0 it wont compile. My kernel is now 4.7.1-1 and this is one of the messages i get when running makepkg:

CC [M]  /tmp/makepkg/nvidia-schuh/src/NVIDIA-Linux-x86_64-370.23-no-compat32/kernel/nvidia/nv-frontend.o
/tmp/makepkg/nvidia-schuh/src/NVIDIA-Linux-x86_64-370.23-no-compat32/kernel/nvidia/nv-frontend.c:16:0: schwerwiegender Fehler: Abhängigkeitsdatei »nv-frontend.d« wird geöffnet: Keine Berechtigung

Kompilierung beendet.

*( in english that would mean: fatal error: dependent file *.d being opened: no permission - compilation ended )

The same error repeats for all targets of the nvidia module.

Any i idea what to do?

Regards and Thanks,
Alfred

Last edited by wired (2016-08-24 09:58:48)

Offline

#2 2016-08-24 07:55:14

goeb
Member
Registered: 2015-06-03
Posts: 11

Re: [Solved] nvidia module will not compile since kernel 4.7.0

I got the same errors when I enabled

CONFIG_TRIM_UNUSED_KSYMS

in my custom kernel, maybe that's your problem, too.

Offline

#3 2016-08-24 09:33:45

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [Solved] nvidia module will not compile since kernel 4.7.0

Related?  It's only under i686 for me: x86_64 works fine.

https://bugs.archlinux.org/task/50503


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2016-08-24 09:58:07

wired
Member
Registered: 2014-09-06
Posts: 8

Re: [Solved] nvidia module will not compile since kernel 4.7.0

goeb wrote:

I got the same errors when I enabled

CONFIG_TRIM_UNUSED_KSYMS

in my custom kernel, maybe that's your problem, too.

Yes, seems to be the same problem. I triumphantly enabled that when i read it might increase security.
Module compiles fine now, thanks.

Offline

Board footer

Powered by FluxBB