| View previous topic :: View next topic |
| Author |
Message |
duryodhana n00b

Joined: 13 Jan 2008 Posts: 65
|
Posted: Mon Mar 19, 2012 9:18 pm Post subject: nvidia-drivers won't compile with kernel-3.3.0 [solved] |
|
|
I came across this problem. I emerged and compiled gentoo-souces-3.3.0, virtualbox-modules-4.1.10 compiled fine, but nvidia-drivers-295.20-r1 refuse to do so.
I get the following message.
| Code: | *** Unable to determine the target kernel version. ***
make: *** [select_makefile] Error 1
emake failed
* ERROR: x11-drivers/nvidia-drivers-295.20-r1 failed (compile phase):
* Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=-m elf_x86_64 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/3.3.0-gentoo/build CC=x86_64-pc-linux-gnu-gcc clean module |
Any ideas how to solve this?
Last edited by duryodhana on Tue Mar 20, 2012 2:41 pm; edited 1 time in total |
|
| Back to top |
|
 |
Gusar Advocate

Joined: 09 Apr 2005 Posts: 2557 Location: Slovenia
|
|
| Back to top |
|
 |
pmootrey n00b

Joined: 23 Jul 2011 Posts: 15
|
|
| Back to top |
|
 |
tranquilcool Veteran

Joined: 25 Mar 2005 Posts: 1035
|
Posted: Tue Mar 20, 2012 12:49 pm Post subject: |
|
|
works. thanks @pmootrey _________________ this is a strange strange world. |
|
| Back to top |
|
 |
duryodhana n00b

Joined: 13 Jan 2008 Posts: 65
|
Posted: Tue Mar 20, 2012 2:42 pm Post subject: |
|
|
| Thanks it worked. |
|
| Back to top |
|
 |
Gusar Advocate

Joined: 09 Apr 2005 Posts: 2557 Location: Slovenia
|
Posted: Tue Mar 20, 2012 4:31 pm Post subject: |
|
|
Copying headers around is very hackish. The real solution is to fix the nvidia compile scripts. My links points to posts that explain how. There's even a patch.
This fiddlings around won't be needed for long though, nvidia has fixed it for their next driver release. |
|
| Back to top |
|
 |
travlr Apprentice


Joined: 20 Apr 2005 Posts: 151 Location: USA
|
Posted: Wed Aug 29, 2012 9:28 pm Post subject: |
|
|
| I just wanted to confirm that, after beating my head around for quite awhile, this post finally solved the problem. |
|
| Back to top |
|
 |
|