LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-14-2016, 07:31 PM   #1
redbot
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Rep: Reputation: 0
Thumbs up [SOLVED] Cannot compile Nvidia driver: kernel does not support PIC mode


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:
$ export KCPPFLAGS="-fno-pie -Wno-pointer-sign -fno-stack-protector -mfentry"
$ export CPPFLAGS="$KCPPFLAGS"                                                     
$ sh NVIDIA-Linux-x86_64-367.57.run
I'm not sure if the
Code:
export CPPFLAGS="$KCPPFLAGS"
line is necessary or not.

Hopefully this post will save someone the time/frustration that it took me to get it sorted.
 
Old 12-03-2016, 12:48 PM   #2
LBM
Member
 
Registered: Aug 2010
Location: Denmark
Distribution: Debian
Posts: 114

Rep: Reputation: 1
Thanks man.. Worked for me!
 
  


Reply

Tags
compile, compile error, debian, nvidia, nvidia drivers



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile the kernel with direct support for network driver geek.ksa Linux - Newbie 2 07-16-2009 04:43 PM
Driver Does not Support WPA after a Kernel Compile brokenflea Slackware 2 03-03-2007 03:15 PM
how to compile the linux driver to support SMP kernel? beast Programming 1 08-01-2005 10:28 PM
Is it possible to compile kernel with nvidia driver? subaruwrx Linux - Newbie 2 10-04-2004 06:18 AM
NVIDIA Driver Error after Kernel Compile lasindi Linux - General 2 04-26-2004 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration