[SOLVED] nvidia driver "kernel does not support PIC mode"

Everything about X, Gnome, KDE, ... and everything running on it

[SOLVED] nvidia driver "kernel does not support PIC mode"

Postby warthog » 2016-11-15 01:35

After updating my Debian (testing) system via apt-get a few days ago, I was unable to compile/install Nvidia's proprietary driver from nvidia.com. The relevant error message seemed to be "kernel does not support PIC mode".

After much fumbling about, I finally got it to compile via the following:

Code: Select all
$ export KCPPFLAGS="-fno-pie -Wno-pointer-sign -fno-stack-protector -mfentry"
$ export CPPFLAGS="$KCPPFLAGS"                                                     
$ sh NVIDIA-Linux-x86_64-367.57.run

NOTE 1: I'm not sure if the export CPPFLAGS="$KCPPFLAGS" line is necessary or not.
NOTE 2: Without the "-mfentry" option, the module seems to compile, but trying to actually use it results in a fatal error regarding "mcount".

Hopefully this post will save someone the time/frustration that it took me to get it sorted.
Posts: 8
Joined: 2016-04-27 02:35

Re: [SOLVED] nvidia driver "kernel does not support PIC mode

Postby fabrixx » 2016-11-17 21:44

Work for me on Debian testing
Thank you.
User avatar
Posts: 170
Joined: 2009-12-14 23:00

Re: [SOLVED] nvidia driver "kernel does not support PIC mode

Postby AndyMender » 2016-11-18 14:07

Is there any reason why you didn't install the nVidia drivers metapackage from the Testing/Stretch repositories (nvidia-driver)?
If you check https://packages.debian.org/stretch/nvidia-driver, you'll see it's the exact same version as you tried installing manually.
Posts: 5
Joined: 2016-11-16 14:29

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 19 guests