Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663956 - media-libs/opencv-3.4.1 CPU_X86_USE flag popcnt requires sse4_1, but cpuid2cpuflags doesn't match this
Summary: media-libs/opencv-3.4.1 CPU_X86_USE flag popcnt requires sse4_1, but cpuid2cp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-18 08:00 UTC by gentoo
Modified: 2018-08-18 18:58 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo 2018-08-18 08:00:02 UTC
Trying to update my system (amd64) using portage emerge, but getting this complaint from package media-libs/opencv-3.4.1:

  The following REQUIRED_USE flag constraints are unsatisfied:
    cpu_flags_x86_popcnt? ( cpu_flags_x86_sse4_1 )

However, I have set the CPU_X86_USE flags as suggested by the cpuid2cpuflags tool (version 5). That tool says that I should set as follows:

$ cpuid2cpuflags     
CPU_FLAGS_X86: 3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a

Note: popcnt is in the list, but sse4_1 is not.

Here is the flag output from cat /proc/cpuinfo, the CPU is "AMD Athlon(tm) II X2 250 Processor".

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate vmmcall npt lbrv svm_lock nrip_save

I don't know if this is a bug in opencv package (i.e., popcnt can exist without sse4_1) or in the cpu id tool (i.e., the tool fails to write that the cpu also supports sse4_1). But this should be fixed either in ffmpeg or in that cpuid tool.

Related to bug 663954.
Possibly related to bug 456886 ?
Comment 1 Ulenrich 2018-08-18 14:48:31 UTC
Did you try:
 media-libs/opencv-3.4.1-r4

which changes a lot of your issues, also see:
https://bugs.gentoo.org/656638#c41
Comment 2 gentoo 2018-08-18 18:58:45 UTC
I confirm that the problem is fixed in opencv-3.4.1-r4.