Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235231 - x11-drivers/nvidia-drivers doesn't compile with kernel 2.6.27-rc3-git5
Summary: x11-drivers/nvidia-drivers doesn't compile with kernel 2.6.27-rc3-git5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ricardo Mendoza (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-19 21:39 UTC by Fabio Catarinella
Modified: 2008-08-21 05:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for 2.6.27-rc1 and nvidia 177.13 (NVIDIA_2.6.27.patch,12.54 KB, patch)
2008-08-19 21:54 UTC, Fabio Catarinella
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Catarinella 2008-08-19 21:39:31 UTC
The nvidia-drivers package does not compile with kernel 2.6.27-rc3-git5.
I did not test with other kernels, the last working kernel source for me was 2.5.25-gentoo-r6.

Reproducible: Always

Steps to Reproduce:
1. emerge git-sources
2. emerge nvidia-drivers
3. watch the emerge fail

Actual Results:  
The following errors appear:
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86-177.13-pkg0/usr/src/nv/nv.c:14:
/var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86-177.13-pkg0/usr/src/nv/nv-linux.h: In function ‘nv_execute_on_all_cpus’:
/var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86-177.13-pkg0/usr/src/nv/nv-linux.h:674: error: too many arguments to function ‘on_each_cpu’

I guess this has something to do with SMP, but I'm no expert.

Expected Results:  
A clean compile of nvidia-drivers.
Comment 1 Fabio Catarinella 2008-08-19 21:54:25 UTC
Created attachment 163332 [details, diff]
Patch for 2.6.27-rc1 and nvidia 177.13

This patch fixes the problems, allows a clean compile and the driver runs without any problems.
I'm running this now on 2.6.27-rc3-git5 with NVIDIA 177.13.

More info at http://www.nvnews.net/vbulletin/showthread.php?t=117209
Comment 2 Robert Förster 2008-08-20 11:17:20 UTC
i think its a better idea to add 177.67 to the tree, masked; as usual for betas
Comment 3 Ricardo Mendoza (RETIRED) gentoo-dev 2008-08-21 05:35:33 UTC
nvidia-drivers-177.13 doesnt explicitly support new kernel coding schemes, so you are advised to use most recent beta version if you deem it necessary.

nvidia-drivers-177.67 has been added to the tree, masked as per betas; waiting on bump for nvidia-settings too but thats being taken care of.