Opencv (-cpu_flags_x86_f16c)

Давно не пользовался nomacs и при запуске стал выдавать такое


OpenCV build configuration is:

General configuration for OpenCV 4.5.0 =====================================
  Version control:               unknown

  Extra modules:
    Location (extra):            /var/calculate/tmp/portage/media-libs/opencv-4.5.0/work/opencv_contrib-4.5.0/modules
    Version control (extra):     unknown

    Timestamp:                   2020-11-18T06:04:52Z
    Host:                        Linux 5.4.57-calculate x86_64
    CMake:                       3.17.4
    CMake generator:             Ninja
    CMake build tool:            /usr/bin/ninja
    Configuration:               Gentoo

  CPU/HW features:
    Baseline:                    SSE SSE2 SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      requested:                 AVX FP16 POPCNT SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2

    Built as dynamic libs?:      YES
    C++ standard:                11
    C++ Compiler:                /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++  (ver 9.3.0)
    C++ flags (Release):         -march=bdver1 -O2 -pipe -g -ggdb -Wall   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mf16c -mavx -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -march=bdver1 -O2 -pipe -g -ggdb -Wall   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mf16c -mavx -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -g  -DDEBUG -D_DEBUG
    C Compiler:                  /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
    C flags (Release):           -march=bdver1 -O2 -pipe -g -ggdb -Wall   -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mf16c -mavx -fvisibility=hidden -fopenmp -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -march=bdver1 -O2 -pipe -g -ggdb -Wall   -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mf16c -mavx -fvisibility=hidden -fopenmp -g  -DDEBUG -D_DEBUG
    Linker flags (Release):      -Wl,--as-needed  -Wl,--gc-sections -Wl,--as-needed  
    Linker flags (Debug):        -Wl,--as-needed  -Wl,--gc-sections -Wl,--as-needed  
    ccache:                      YES
    Precompiled headers:         NO
    Extra dependencies:          dl m pthread rt /usr/lib64/ /usr/lib64/
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 alphamat aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dnn_superres dpm face features2d flann fuzzy hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot python3 quality rapid reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab ximgproc xobjdetect xphoto
    Disabled:                    cvv freetype world xfeatures2d
    Disabled by dependency:      -
    Unavailable:                 cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev gapi hdf java js julia matlab ovis python2 sfm ts viz
    Applications:                -
    Documentation:               NO
    Non-free algorithms:         NO

    QT:                          YES (ver 5.15.1)
      QT OpenGL support:         YES (Qt5::OpenGL 5.15.1)
    OpenGL support:              YES (/usr/lib64/ /usr/lib64/

  Media I/O: 
    ZLib:                        /usr/lib64/ (ver 1.2.11)
    JPEG:                        /usr/lib64/ (ver unknown)
    WEBP:                        /usr/lib64/ (ver encoder: 0x020f)
    PNG:                         /usr/lib64/ (ver 1.6.37)
    TIFF:                        /usr/lib64/ (ver 42 / 4.1.0)
    JPEG 2000:                   OpenJPEG (ver 2.3.1)
    OpenEXR:                     /usr/lib64/ /usr/lib64/ /usr/lib64/ /usr/lib64/ /usr/lib64/ (ver 2_5)
    HDR:                         YES
    SUNRASTER:                   YES
    PXM:                         YES
    PFM:                         YES

  Video I/O:
    DC1394:                      YES (2.2.5)
    FFMPEG:                      YES
      avcodec:                   YES (58.91.100)
      avformat:                  YES (58.45.100)
      avutil:                    YES (56.51.100)
      swscale:                   YES (5.7.100)
      avresample:                YES (4.0.0)
    GStreamer:                   YES (1.16.2)
    v4l/v4l2:                    YES (linux/videodev2.h)
    gPhoto2:                     YES

  Parallel framework:            TBB (ver 2019.0 interface 11008)

  Trace:                         YES (built-in)

  Other third-party libraries:
    VA:                          YES
    Eigen:                       YES (ver 3.3.7)
    Custom HAL:                  NO
    Protobuf:                    /usr/lib64/ (3.12.4)

  OpenCL:                        YES (no extra features)
    Include path:                /var/calculate/tmp/portage/media-libs/opencv-4.5.0/work/opencv-4.5.0/3rdparty/include/opencl/1.2
    Link libraries:              Dynamic load

  Python 3:
    Interpreter:                 /var/calculate/tmp/portage/media-libs/opencv-4.5.0/temp/python3.7/bin/python (ver 3.7.9)
    Libraries:                   /usr/lib64/ (ver 3.7.9)
    numpy:                       /usr/lib/python3.7/site-packages/numpy/core/include (ver 1.19.1)
    install path:                lib/python3.7/site-packages/cv2/python-3.7

  Python (for build):            python3.7

  Install to:                    /usr

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

Required baseline features:
    ID=  2 (SSE) - OK
    ID=  3 (SSE2) - OK
    ID=  4 (SSE3) - OK
    ID=  5 (SSSE3) - OK
    ID=  6 (SSE4.1) - OK
    ID=  8 (POPCNT) - OK
    ID=  7 (SSE4.2) - OK
    ID=  9 (FP16) - NOT AVAILABLE
    ID= 10 (AVX) - OK
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.5.0) /var/calculate/tmp/portage/media-libs/opencv-4.5.0/work/opencv-4.5.0/modules/core/src/system.cpp:626: error: (-215:Assertion failed) Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup. in function 'initialize'

Аварийный останов

пришлось пересобрать без cpu_flags_x86_f16c

Мой процессор не поддерживает CVT16 (Convert 16).

Сейчас OpenCV собирается только с sse sse2 sse3.