Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia.ko fails to build - "make: *** [module] Error 1"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Eregus
n00b
n00b


Joined: 13 Oct 2013
Posts: 5

PostPosted: Sun Oct 27, 2013 2:11 am    Post subject: nvidia.ko fails to build - "make: *** [module] Error 1& Reply with quote

Hi
I started using Gentoo recently ant there's one thing I can't get working - nvidia proprietary drivers. When I emerge it, it fails and gives me some "info" about errors (info, that I don't understand at all).

There's full emerge output: http://bpaste.net/show/144197/
Note: I use pf-sources, but it's not its fault, because I also tried emerging nvidia-drivers on gentoo kernel and got the same.

Any idea?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Oct 27, 2013 2:34 am    Post subject: Reply with quote

Current nVidia drivers do not build against kernel 3-11.

In kernel/nv-linux.h change

Code:
959 #define NV_NUM_PHYSPAGES                num_physpages

to

Code:
959 #define NV_NUM_PHYSPAGES                get_num_physpages


either using a patch or by hand.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Eregus
n00b
n00b


Joined: 13 Oct 2013
Posts: 5

PostPosted: Thu Oct 31, 2013 10:31 pm    Post subject: Reply with quote

Now it works perfectly. Thanks and sorry for quite stupid quesiton.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Oct 31, 2013 11:36 pm    Post subject: Reply with quote

You are welcome! Although the question wasn't stupid. Your only mistake was the failure to read the warning about unsupported kernels.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Fri Nov 01, 2013 3:53 pm    Post subject: Reply with quote

Jaglover wrote:
Current nVidia drivers do not build against kernel 3-11.

In kernel/nv-linux.h change

Code:
959 #define NV_NUM_PHYSPAGES                num_physpages

to

Code:
959 #define NV_NUM_PHYSPAGES                get_num_physpages


either using a patch or by hand.


That's horribly horribly wrong!
1st, get_num_physpages is a function, not a variable. What you're doing here
is assigning the address of this function, not the value it should hold.

2nd, num_physpages was renamed to totalram_pages, use this one instead.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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