Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365493 - media-libs/opencv-2.2.0-r10 fails to build
Summary: media-libs/opencv-2.2.0-r10 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-01 03:23 UTC by Matt
Modified: 2011-05-01 23:56 UTC (History)
1 user (show)

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


Attachments
build.log and "emerge --info" (opencv_fail.tar.bz2,5.21 KB, application/x-bzip2)
2011-05-01 03:24 UTC, Matt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt 2011-05-01 03:23:45 UTC
Compiling opencv-2.2.0-r10 (updated dep for media-plugins/frei0r-plugins which is dep for ffmpeg and mlt via "frei0r" USE flag).

Configure fails with:

"FindLAPACK is Fortran-only so Fortran must be enabled."

opencv current USE flags:

[ebuild     U ~] media-libs/opencv-2.2.0-r10 [2.1.0] USE="ffmpeg gtk jpeg jpeg2k openexr%* opengl%* png python qt4%* sse sse2 sse3 ssse3 tiff v4l xine -cuda% -doc% -eigen% -examples -gstreamer -ieee1394 -ipp -test (-debug%) (-deprecated%*) (-octave%)" 0 kB


Attachment contains "emerge --info" and the build.log.


Thank you.


M.
Comment 1 Matt 2011-05-01 03:24:45 UTC
Created attachment 271705 [details]
build.log and "emerge --info"

Sorry.  Forgot to put a description before hitting Submit...
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-01 15:34:31 UTC
Just out of curiosity how did you managed to install virtual/lapack without having fortran compiler?

And yes we should check for it in the ebuild.
Comment 3 Matt 2011-05-01 15:50:02 UTC
(In reply to comment #2)
> Just out of curiosity how did you manage to install virtual/lapack without
> having fortran compiler?
> 
> And yes we should check for it in the ebuild.

Fantastic question to which I do not have an answer.  Portage just did whatever it did and it's all there.  There were no warnings/errors so I hadn't even thought to check into that.

$ qlist -Iv lapack
app-admin/eselect-lapack-0.1
sci-libs/clapack-3.2.1-r4
sci-libs/lapack-reference-3.1.1-r1
virtual/lapack-3.1



M.
Comment 4 Matt 2011-05-01 15:58:13 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Just out of curiosity how did you manage to install virtual/lapack without
> > having fortran compiler?
> > 
> > And yes we should check for it in the ebuild.
> 
> Fantastic question to which I do not have an answer.  Portage just did whatever
> it did and it's all there.  There were no warnings/errors so I hadn't even
> thought to check into that.
> 
> $ qlist -Iv lapack
> app-admin/eselect-lapack-0.1
> sci-libs/clapack-3.2.1-r4
> sci-libs/lapack-reference-3.1.1-r1
> virtual/lapack-3.1
> 
> 
> 
> M.

This is how:


[ebuild   R    ] sys-devel/gcc-3.4.6-r2  USE="fortran gtk nls nptl (-altivec) -bootstrap -boundschecking -build -d -doc -gcj (-hardened) -ip28 -ip32r10k (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 0 kB

$ grep -ri fortran /etc/portage/*
$
$ grep fortan /etc/make.conf
$

GCC seems to be adding that it by default.


M.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2011-05-01 16:50:01 UTC
(In reply to comment #0)
> Compiling opencv-2.2.0-r10 (updated dep for media-plugins/frei0r-plugins which
> is dep for ffmpeg and mlt via "frei0r" USE flag).
> 
> Configure fails with:
> 
> "FindLAPACK is Fortran-only so Fortran must be enabled."
> 

That's likely a bug in the OpenCV CMakeLists.txt... The error means that CMake is not set up to handle Fortran. Should be easy to fix, give me a moment.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2011-05-01 17:55:26 UTC
Should be fixed, please resync in an hour and try again. 

Just out of curiosity, what's your output for 
equery belongs FindLAPACK.cmake
???
Comment 7 Matt 2011-05-01 23:56:36 UTC
(In reply to comment #6)
> Should be fixed, please resync in an hour and try again. 
> 
> Just out of curiosity, what's your output for 
> equery belongs FindLAPACK.cmake
> ???

(Sorry for the delay - I tried to do it from my phone, but the "Save Changes" button was only "Search" for whatever reason).


$ equery b FindLAPACK.cmake
 * Searching for FindLAPACK.cmake ... 
dev-util/cmake-2.8.1-r2 (/usr/share/cmake/Modules/FindLAPACK.cmake)



M.