See attached build.log
Created attachment 362536 [details]
build log showing the error
Created attachment 362538 [details]
output of emerge --info '=x11-drivers/nvidia-drivers-331.17::gentoo'
Created attachment 362540 [details]
output of emerge -pqv '=x11-drivers/nvidia-drivers-331.17::gentoo'
This is known issue with kernels >= 3.11.0. I'll attach patch which works for me on 319.60 and 325.15.
Created attachment 362542 [details, diff]
fix compile error with kernel >= 3.11.0
Created attachment 362544 [details, diff]
patch for 325.15.ebuild
(In reply to Alex Efros from comment #5)
> Created attachment 362542 [details, diff] [details, diff]
> fix compile error with kernel >= 3.11.0
Going by https://devtalk.nvidia.com/default/topic/628864/unix-graphics-announcements-and-news/num_physpages-and-support-for-3-11-and-later-kernels/
this patch is plain wrong.
...or at least incomplete. I wonder though how will the upstream's real fix will look like.
This bug is for nvidia-drivers-331.17 not 319.60 or 32.15. Have you tested your patch with 331.17?
*** This bug has been marked as a duplicate of bug 447566 ***