Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311657 - dev-util/nvidia-cuda-toolkit-3.0: Patch to fix header files
Summary: dev-util/nvidia-cuda-toolkit-3.0: Patch to fix header files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-27 20:54 UTC by Clemens Rabe
Modified: 2010-04-01 21:49 UTC (History)
1 user (show)

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


Attachments
Patch to fix the CUDA header files. (nvidia-cuda-toolkit-3.0-enum_fix.patch,2.40 KB, patch)
2010-03-27 20:55 UTC, Clemens Rabe
Details | Diff
Ebuild applying the patch. (nvidia-cuda-toolkit-3.0.ebuild,2.96 KB, text/plain)
2010-03-27 20:56 UTC, Clemens Rabe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clemens Rabe 2010-03-27 20:54:05 UTC
I've experienced (again) compiler problems with the CUDA 3.0 toolkit, when using the pedantic option of gcc. In some of the header files are enumerations that end with a comma, and gcc doesn't like that.

The attached patch corrects these two header files. (The nvidia-cuda-sdk-3.0 and my CUDA applications were successfully tested)

I'll attach my ebuild as well. Please note, that I've removed the dependency on the unstable binutils, since I've not experienced the problem stated in bug #279523 on my amd64 profile and like to stick to the stable version.

Thanks in advance,
 Clemens
Comment 1 Clemens Rabe 2010-03-27 20:55:12 UTC
Created attachment 225485 [details, diff]
Patch to fix the CUDA header files.
Comment 2 Clemens Rabe 2010-03-27 20:56:33 UTC
Created attachment 225487 [details]
Ebuild applying the patch.

Please note that this ebuild has the binutils dependency removed!
Comment 3 Michal Januszewski (RETIRED) gentoo-dev 2010-04-01 21:49:09 UTC
Added to CVS.  Thanks for the patch!