Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 418157 - media-libs/opencv-2.4.0 GCC version check for CUDA is incorrect
Summary: media-libs/opencv-2.4.0 GCC version check for CUDA is incorrect
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-29 16:37 UTC by Jukka Holappa
Modified: 2012-06-03 08:50 UTC (History)
1 user (show)

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


Attachments
emerge --info (file_418157.txt,5.40 KB, text/plain)
2012-05-29 16:37 UTC, Jukka Holappa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jukka Holappa 2012-05-29 16:37:03 UTC
Created attachment 313547 [details]
emerge --info

OpenCV 2.4.0 ebuild contains check to disable CUDA support if GCC > 4.4 is used. This is no longer correct for new versions of CUDA and OpenCV.

This version of OpenCV can be built with CUDA 4.1 and GCC 4.5.3.

With dev-util/nvidia-cuda-toolkit-4.1, version check seems to be the following in /opt/cuda/include/host_config.h:
#if defined(__GNUC__)

#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5)

#error -- unsupported GNU version! gcc 4.6 and up are not supported!

#endif /* __GNUC__> 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5) */

#endif /* __GNUC__ */
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2012-06-03 08:50:56 UTC
Fixed, thanks!