Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 659012

Summary: media-libs/opencv CPU/HW features baseline not set correctly
Product: Gentoo Linux Reporter: Branko Grubic <bitlord0xff>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: opencv_info
emerge_info

Description Branko Grubic 2018-06-24 19:34:23 UTC
Created attachment 537132 [details]
opencv_info

I'm not sure if this is an upstream bug as well, but it seems that at some point opencv stopped building correctly (it builds, but doesn't run). In my case it's used by kde-apps/kdelinve, which refuses to start, after looking around I found that opencv complains:

//////////////
$ kdenlive
Icon theme "adwaita" not found.
Icon theme "gnome" not found.
Icon theme "adwaita" not found.
Icon theme "gnome" not found.

******************************************************************
* FATAL ERROR:                                                   *
* This OpenCV build doesn't support current CPU/HW configuration *
*                                                                *
* Use OPENCV_DUMP_CONFIG=1 environment variable for details      *
******************************************************************

Required baseline features:
SSE - OK
SSE - OK
SSE2 - OK
SSE2 - OK
SSE3 - OK
SSE3 - OK
SSSE3 - OK
SSSE3 - OK
POPCNT - NOT AVAILABLE
OpenCV(3.4.1) Error: Assertion failed (Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup.) in initialize, file /var/tmp/portage/media-libs/opencv-3.4.1-r2/work/opencv-3.4.1/modules/core/src/system.cpp, line 487
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(3.4.1) /var/tmp/portage/media-libs/opencv-3.4.1-r2/work/opencv-3.4.1/modules/core/src/system.cpp:487: error: (-215) Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup. in function initialize

Aborted
//////////////

It adds POPCNT CPU feature to BASELINE features, which is not supported on my cpu, all packages are build on same machine where they are used. I'll attach opencv version information('OPENCV_DUMP_CONFIG=1 opencv_version'), as well as 'emerge --info' output.

To me this seems like an upstream, but not sure about it. I can file it upstream if needed.
Comment 1 Branko Grubic 2018-06-24 19:34:52 UTC
Created attachment 537134 [details]
emerge_info
Comment 2 Amy Liffey gentoo-dev 2018-07-01 09:19:29 UTC

*** This bug has been marked as a duplicate of bug 656638 ***