Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464070 - media-libs/opencv-2.4.4a fails to build
Summary: media-libs/opencv-2.4.4a fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on: 457194
Blocks:
  Show dependency tree
 
Reported: 2013-04-01 11:50 UTC by Markus Walter
Modified: 2013-12-08 21:39 UTC (History)
0 users

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


Attachments
build log (media-libs:opencv-2.4.4a:20130401-113614.log,23.54 KB, text/plain)
2013-04-01 11:50 UTC, Markus Walter
Details
emerge --info (info.txt,6.36 KB, text/plain)
2013-04-01 11:50 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2013-04-01 11:50:36 UTC
Created attachment 343922 [details]
build log

On my hardened ~amd64 machine I see the following error when trying to merge opencv-2.4.4a.

===
/usr/bin/cmake -H/var/tmp/portage/media-libs/opencv-2.4.4a/work/opencv-2.4.4 -B/var/tmp/portage/media-libs/opencv-2.4.4a/work/opencv-2.4.4a_build --check-build-system CMakeFiles/Makefile.cmake 0
CMake Error: Parse error in cache file /var/tmp/portage/media-libs/opencv-2.4.4a/work/opencv-2.4.4a_build/CMakeCache.txt. Offending entry: /usr/lib64/python2.7/site-packages/numpy/core/include
Re-run cmake error reading : CMakeFiles/Makefile.cmake
===

I see a somewhat similar error with opencv-2.4.3. My system python is python-3.2.

In the file CMakeCache.txt I found only one line referring to numpy which is the following

===
//Path to numpy headers
PYTHON_NUMPY_INCLUDE_DIR:PATH=Emutramp; OFF
===

This seems like a spurious output. I see the "Emutramp: OFF" message occasionally on the command line, but could not yet determine, what exactly causes it. One thing that produces this reliably is the emerge command.
Comment 1 Markus Walter 2013-04-01 11:50:49 UTC
Created attachment 343924 [details]
emerge --info
Comment 2 Magnus Granberg gentoo-dev 2013-04-01 13:08:51 UTC
remerge the libffi
Comment 3 Markus Walter 2013-04-01 13:59:08 UTC
I remerged libffi-3.0.12 from hardened-dev (since libffi-3.0.13 from main tree has the same problem as 3.0.12). Unfortunately this didn't change anything.
Comment 4 Markus Walter 2013-04-19 13:27:22 UTC
Merging libffi-3.0.13 from hardened-dev solved the problem.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2013-12-07 00:04:00 UTC
Tried 2.4.6.1 already?
Comment 6 Markus Walter 2013-12-08 21:39:04 UTC
(In reply to Andreas K. Hüttel from comment #5)
> Tried 2.4.6.1 already?

I just looked and opencv-2.4.6.1 as well as opencv-2.4.7 work with libffi-3.0.13-r1 from the main tree.