Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643846 - media-libs/opencv-3.3.0-r4: error in configure stage
Summary: media-libs/opencv-3.3.0-r4: error in configure stage
Status: RESOLVED DUPLICATE of bug 637078
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-01-08 01:54 UTC by Samuel Bernardo
Modified: 2018-01-18 00:48 UTC (History)
3 users (show)

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


Attachments
complete build log (build.log,47.44 KB, text/x-log)
2018-01-08 01:55 UTC, Samuel Bernardo
Details
Other info (opencv-3.3.0-r4.info,10.39 KB, text/plain)
2018-01-08 01:58 UTC, Samuel Bernardo
Details
opencv-3.3.0-r4.patch (opencv-3.3.0-r4.patch,4.57 KB, patch)
2018-01-15 10:53 UTC, Petross404(Petros S)
Details | Diff
fix_nvcc.patch (fix_nvcc.patch,1.11 KB, patch)
2018-01-15 10:55 UTC, Petross404(Petros S)
Details | Diff
Rejects from fix_nvcc.patch (saturate_cast.hpp.rej,964 bytes, text/x-reject)
2018-01-18 00:48 UTC, Samuel Bernardo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bernardo 2018-01-08 01:54:26 UTC
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
Comment 1 Samuel Bernardo 2018-01-08 01:55:10 UTC
Created attachment 513734 [details]
complete build log
Comment 2 Samuel Bernardo 2018-01-08 01:58:16 UTC
Created attachment 513736 [details]
Other info

-> % emerge -pqv '=media-libs/opencv-3.3.0-r4::gentoo'
[ebuild   R   ] media-libs/opencv-3.3.0-r4  USE="contrib cuda eigen ffmpeg gtk opencl openexr opengl openmp png python qt5 tesseract threads tiff v4l vaapi webp xine -contrib_cvv -contrib_hdf -contrib_sfm -contrib_xfeatures2d -debug -examples -gdal -gflags -glog -gphoto2 -gstreamer -ieee1394 (-ipp) -java -jpeg -jpeg2k -lapack -libav -pch -testprograms -vtk" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_4 -python3_5"
Comment 3 Petross404(Petros S) 2018-01-15 10:53:51 UTC
Created attachment 514866 [details, diff]
opencv-3.3.0-r4.patch

I found this patch here : https://forums.gentoo.org/viewtopic-p-8142970.html?sid=1ae416c5b143176cb4b001b8cdc1723c  
 

But I get another error : nvcc fatal   : Unsupported gpu architecture 'compute_20'

Now this patch is supposed to solve the second error, but I can't get the patch to actually apply. Ebuild.sh stops when applying the second patch.

https://github.com/opencv/opencv/pull/9769/commits/5669ee815bf724a1f3bf12429a07e6199154e230
Comment 4 Petross404(Petros S) 2018-01-15 10:55:47 UTC
Created attachment 514868 [details, diff]
fix_nvcc.patch

The second patch (fix_nvcc.patch)
Comment 5 Petross404(Petros S) 2018-01-15 10:56:38 UTC
For more, visit this thread : https://forums.gentoo.org/viewtopic-p-8142970.html?sid=1ae416c5b143176cb4b001b8cdc1723c
Comment 6 Amy Liffey gentoo-dev 2018-01-16 09:42:35 UTC

*** This bug has been marked as a duplicate of bug 637078 ***
Comment 7 Samuel Bernardo 2018-01-18 00:48:49 UTC
Created attachment 515208 [details]
Rejects from fix_nvcc.patch

I applied both patches to ebuild but receive rejects from fix_nvcc.patch in the file in attachement.

The error is:
 * Applying fix_nvcc.patch ...
3 out of 3 hunks FAILED -- saving rejects to file modules/cudev/include/opencv2/cudev/util/saturate_cast.hpp.rej
 [ !! ]
 * ERROR: media-libs/opencv-3.3.0-r4::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/media-libs/opencv-3.3.0-r4/fix_nvcc.patch
 *
 * Call stack:
 *               ebuild.sh, line  124:  Called src_prepare
 *             environment, line 6447:  Called cmake-utils_src_prepare
 *             environment, line 1300:  Called default_src_prepare
 *      phase-functions.sh, line  918:  Called __eapi6_src_prepare
 *             environment, line  375:  Called eapply_user
 *             environment, line 1641:  Called eapply '/etc/portage/patches/media-libs/opencv-3.3.0-r4/fix_nvcc.patch'
 *             environment, line 1611:  Called _eapply_patch '/etc/portage/patches/media-libs/opencv-3.3.0-r4/fix_nvcc.patch'
 *             environment, line 1549:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/media-libs/opencv-3.3.0-r4/fix_nvcc.patch'
 *   isolated-functions.sh, line  117:  Called die