Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia-drivers won't compile with kernel-3.3.0 [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
duryodhana
n00b
n00b


Joined: 13 Jan 2008
Posts: 65

PostPosted: Mon Mar 19, 2012 9:18 pm    Post subject: nvidia-drivers won't compile with kernel-3.3.0 [solved] Reply with quote

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
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2557
Location: Slovenia

PostPosted: Mon Mar 19, 2012 9:40 pm    Post subject: Reply with quote

http://www.nvnews.net/vbulletin/showthread.php?t=173612
Back to top
View user's profile Send private message
pmootrey
n00b
n00b


Joined: 23 Jul 2011
Posts: 15

PostPosted: Tue Mar 20, 2012 2:30 am    Post subject: Quick Fix Reply with quote

Run the commands below:

cd /lib/modules/<kernelname>/source/arch/x86/include/
cp generated/asm/unistd*.h ./asm/

Taken from:
http://weltall.heliohost.org/wordpress/2012/01/20/linux-kernel-3-3-rc1-and-nvidia-drivers/
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1035

PostPosted: Tue Mar 20, 2012 12:49 pm    Post subject: Reply with quote

works. thanks @pmootrey
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
duryodhana
n00b
n00b


Joined: 13 Jan 2008
Posts: 65

PostPosted: Tue Mar 20, 2012 2:42 pm    Post subject: Reply with quote

Thanks it worked.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2557
Location: Slovenia

PostPosted: Tue Mar 20, 2012 4:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
travlr
Apprentice
Apprentice


Joined: 20 Apr 2005
Posts: 151
Location: USA

PostPosted: Wed Aug 29, 2012 9:28 pm    Post subject: Reply with quote

I just wanted to confirm that, after beating my head around for quite awhile, this post finally solved the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum