opencv / opencv

Open Source Computer Vision Library
https://opencv.org
Apache License 2.0
79.32k stars 55.85k forks source link

Unable to install OpenCV with Cuda #22132

Open santhoshyantraone opened 2 years ago

santhoshyantraone commented 2 years ago
System information (version)
Detailed description

following this post to install How to install OpenCV 4.5.2 with CUDA 11.2 and CUDNN 8.2 in Ubuntu 20.04

Steps to reproduce

Followed all the instructions

First of all install update and upgrade your system:

    $ sudo apt update
    $ sudo apt upgrade

Then, install required libraries:

We will now proceed with the installation (see the Qt flag that is disabled to do not have conflicts with Qt5.0).

$ wget -O opencv.zip https://github.com/opencv/opencv/archive/refs/tags/4.5.2.zip
$ wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/refs/tags/4.5.2.zip
$ unzip opencv.zip
$ unzip opencv_contrib.zip

$ echo "Create a virtual environtment for the python binding module (OPTIONAL)"
$ sudo pip install virtualenv virtualenvwrapper
$ sudo rm -rf ~/.cache/pip
$ echo "Edit ~/.bashrc"
$ export WORKON_HOME=$HOME/.virtualenvs
$ export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
$ source /usr/local/bin/virtualenvwrapper.sh
$ mkvirtualenv cudacv -p python3
$ pip install numpy

$ echo "Procced with the installation"
$ cd opencv-4.5.2
$ mkdir build
$ cd build

cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_TBB=ON \
-D ENABLE_FAST_MATH=1 \
-D CUDA_FAST_MATH=1 \
-D WITH_CUBLAS=1 \
-D WITH_CUDA=ON \
-D BUILD_opencv_cudacodec=OFF \
-D WITH_CUDNN=ON \
-D OPENCV_DNN_CUDA=ON \
-D CUDA_ARCH_BIN=7.5 \
-D WITH_V4L=ON \
-D WITH_QT=OFF \
-D WITH_OPENGL=ON \
-D WITH_GSTREAMER=ON \
    -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-11.5 \
-D OPENCV_GENERATE_PKGCONFIG=ON \
-D OPENCV_PC_FILE_NAME=opencv4cuda.pc \
-D OPENCV_ENABLE_NONFREE=ON \
-D OPENCV_PYTHON3_INSTALL_PATH=~/.virtualenvs/cudacv/lib/python3.8/site-packages \
-D PYTHON_EXECUTABLE=~/.virtualenvs/cudacv/bin/python \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-4.5.2/modules \
-D INSTALL_PYTHON_EXAMPLES=OFF \
-D INSTALL_C_EXAMPLES=OFF \
-D BUILD_EXAMPLES=OFF ..

on running cmake i get this error

CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
  CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
  directory
Call Stack (most recent call first):
  CMakeLists.txt:1010 (include)

-- 
-- General configuration for OpenCV 4.5.2 =====================================
--   Version control:               unknown
-- 
--   Extra modules:
--     Location (extra):            /mnt/workspace1/user1/opencv_contrib-4.5.2/modules
--     Version control (extra):     unknown
-- 
--   Platform:
--     Timestamp:                   2022-06-20T10:31:20Z
--     Host:                        Linux 5.13.0-48-generic x86_64
--     CMake:                       3.16.3
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /usr/bin/make
--     Configuration:               RELEASE
-- 
--   CPU/HW features:
--     Baseline:                    SSE SSE2 SSE3
--       requested:                 SSE3
--     Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
--       requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
--       SSE4_1 (17 files):         + SSSE3 SSE4_1
--       SSE4_2 (2 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
--       FP16 (1 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
--       AVX (5 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
--       AVX2 (31 files):           + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
--       AVX512_SKX (7 files):      + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ standard:                11
--     C++ Compiler:                /usr/bin/c++  (ver 9.4.0)
--     C++ flags (Release):         -fsigned-char -ffast-math -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 -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 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -fsigned-char -ffast-math -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 -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 -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
--     C Compiler:                  /usr/bin/cc
--     C flags (Release):           -fsigned-char -ffast-math -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 -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 -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -fsigned-char -ffast-math -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 -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 -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
--     Linker flags (Release):      -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a   -Wl,--gc-sections -Wl,--as-needed  
--     Linker flags (Debug):        -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a   -Wl,--gc-sections -Wl,--as-needed  
--     ccache:                      NO
--     Precompiled headers:         NO
--     Extra dependencies:          m pthread /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so cudart_static dl rt nppc nppial nppicc nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda-11.5/lib64 -L/usr/lib/x86_64-linux-gnu
--     3rdparty dependencies:
-- 
--   OpenCV modules:
--     To be built:                 alphamat aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv datasets dnn dnn_objdetect dnn_superres dpm face features2d flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot python3 quality rapid reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab wechat_qrcode xfeatures2d ximgproc xobjdetect xphoto
--     Disabled:                    cudacodec world
--     Disabled by dependency:      -
--     Unavailable:                 cnn_3dobj java julia matlab ovis python2 viz
--     Applications:                tests perf_tests apps
--     Documentation:               NO
--     Non-free algorithms:         YES
-- 
--   GUI: 
--     QT:                          YES (ver 5.12.8)
--       QT OpenGL support:         YES (Qt5::OpenGL 5.12.8)
--     OpenGL support:              YES (/usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so)
--     VTK support:                 NO
-- 
--   Media I/O: 
--     ZLib:                        /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11)
--     JPEG:                        /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80)
--     WEBP:                        build (ver encoder: 0x020f)
--     PNG:                         /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.37)
--     TIFF:                        /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.1.0)
--     JPEG 2000:                   build (ver 2.4.0)
--     OpenEXR:                     build (ver 2.3.0)
--     HDR:                         YES
--     SUNRASTER:                   YES
--     PXM:                         YES
--     PFM:                         YES
-- 
--   Video I/O:
--     DC1394:                      YES (2.2.5)
--     FFMPEG:                      YES
--       avcodec:                   YES (58.54.100)
--       avformat:                  YES (58.29.100)
--       avutil:                    YES (56.31.100)
--       swscale:                   YES (5.5.100)
--       avresample:                YES (4.0.0)
--     GStreamer:                   YES (1.16.2)
--     v4l/v4l2:                    YES (linux/videodev2.h)
-- 
--   Parallel framework:            TBB (ver 2020.1 interface 11101)
-- 
--   Trace:                         YES (with Intel ITT)
-- 
--   Other third-party libraries:
--     Intel IPP:                   2020.0.0 Gold [2020.0.0]
--            at:                   /mnt/workspace1/user1/opencv-4.5.2/build/3rdparty/ippicv/ippicv_lnx/icv
--     Intel IPP IW:                sources (2020.0.0)
--               at:                /mnt/workspace1/user1/opencv-4.5.2/build/3rdparty/ippicv/ippicv_lnx/iw
--     VA:                          NO
--     Lapack:                      NO
--     Eigen:                       YES (ver 3.3.7)
--     Custom HAL:                  NO
--     Protobuf:                    build (3.5.1)
-- 
--   NVIDIA CUDA:                   YES (ver 11.5, CUFFT CUBLAS FAST_MATH)
--     NVIDIA GPU arch:             75
--     NVIDIA PTX archs:
-- 
--   OpenCL:                        YES (no extra features)
--     Include path:                /mnt/workspace1/user1/opencv-4.5.2/3rdparty/include/opencl/1.2
--     Link libraries:              Dynamic load
-- 
--   Python 3:
--     Interpreter:                 /mnt/workspace1/user1/.virtualenvs/cudacv/bin/python3 (ver 3.8.10)
--     Libraries:                   /usr/lib/x86_64-linux-gnu/libpython3.8.so (ver 3.8.10)
--     numpy:                       /mnt/workspace1/user1/.virtualenvs/cudacv/lib/python3.8/site-packages/numpy/core/include (ver 1.22.4)
--     install path:                /mnt/workspace1/user1/.virtualenvs/cudacv/lib/python3.8/site-packages/cv2/python-3.8
-- 
--   Python (for build):            /mnt/workspace1/user1/.virtualenvs/cudacv/bin/python3
-- 
--   Java:                          
--     ant:                         NO
--     JNI:                         NO
--     Java wrappers:               NO
--     Java tests:                  NO
-- 
--   Install to:                    /mnt/workspace1/softwares
-- -----------------------------------------------------------------
-- 
-- Configuring incomplete, errors occurred!
See also "/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeError.log".

CmakeError.log

Build output check failed:
    Regex: 'argument .* is not valid'
    Output line: 'cc1: warning: ??-Werror=?? argument ??-Werror=non-virtual-dtor?? is not valid for C'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -ffast-math -W -Wall -Werror=return-type  -Werror=non-virtual-dtor'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_d6845/fast && /usr/bin/make -f CMakeFiles/cmTC_d6845.dir/build.make CMakeFiles/cmTC_d6845.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d6845.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE    -fsigned-char -ffast-math -W -Wall -Werror=return-type  -Werror=non-virtual-dtor -o CMakeFiles/cmTC_d6845.dir/src.c.o   -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c
cc1: warning: ??-Werror=?? argument ??-Werror=non-virtual-dtor?? is not valid for C
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
Linking C executable cmTC_d6845
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d6845.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_d6845.dir/src.c.o  -o cmTC_d6845 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'command[- ]line option .* is valid for .* but not for C\+\+'
    Output line: 'cc1plus: warning: command line option ??-Wmissing-prototypes?? is valid for C/ObjC but not for C++'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations  -Wmissing-prototypes'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_4e414/fast && /usr/bin/make -f CMakeFiles/cmTC_4e414.dir/build.make CMakeFiles/cmTC_4e414.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_4e414.dir/src.cxx.o
/usr/bin/c++    -O3 -DNDEBUG -fPIE    -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations  -Wmissing-prototypes -std=c++11 -o CMakeFiles/cmTC_4e414.dir/src.cxx.o -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx
cc1plus: warning: command line option ??-Wmissing-prototypes?? is valid for C/ObjC but not for C++
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
Linking CXX executable cmTC_4e414
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4e414.dir/link.txt --verbose=1
/usr/bin/c++    -O3 -DNDEBUG    CMakeFiles/cmTC_4e414.dir/src.cxx.o  -o cmTC_4e414 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'command[- ]line option .* is valid for .* but not for C\+\+'
    Output line: 'cc1plus: warning: command line option ??-Wstrict-prototypes?? is valid for C/ObjC but not for C++'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations  -Wstrict-prototypes'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_263dc/fast && /usr/bin/make -f CMakeFiles/cmTC_263dc.dir/build.make CMakeFiles/cmTC_263dc.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_263dc.dir/src.cxx.o
/usr/bin/c++    -O3 -DNDEBUG -fPIE    -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations  -Wstrict-prototypes -std=c++11 -o CMakeFiles/cmTC_263dc.dir/src.cxx.o -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx
cc1plus: warning: command line option ??-Wstrict-prototypes?? is valid for C/ObjC but not for C++
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
Linking CXX executable cmTC_263dc
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_263dc.dir/link.txt --verbose=1
/usr/bin/c++    -O3 -DNDEBUG    CMakeFiles/cmTC_263dc.dir/src.cxx.o  -o cmTC_263dc 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'command[- ]line option .* is valid for .* but not for C'
    Output line: 'cc1: warning: command line option ??-Wsign-promo?? is valid for C++/ObjC++ but not for C'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -ffast-math -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  -Wsign-promo'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_8e4d0/fast && /usr/bin/make -f CMakeFiles/cmTC_8e4d0.dir/build.make CMakeFiles/cmTC_8e4d0.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8e4d0.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE    -fsigned-char -ffast-math -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  -Wsign-promo -o CMakeFiles/cmTC_8e4d0.dir/src.c.o   -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ??-Wsign-promo?? is valid for C++/ObjC++ but not for C
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
Linking C executable cmTC_8e4d0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8e4d0.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_8e4d0.dir/src.c.o  -o cmTC_8e4d0 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'command[- ]line option .* is valid for .* but not for C'
    Output line: 'cc1: warning: command line option ??-Wsuggest-override?? is valid for C++/ObjC++ but not for C'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -ffast-math -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  -Wsuggest-override'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_3df1f/fast && /usr/bin/make -f CMakeFiles/cmTC_3df1f.dir/build.make CMakeFiles/cmTC_3df1f.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3df1f.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE    -fsigned-char -ffast-math -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  -Wsuggest-override -o CMakeFiles/cmTC_3df1f.dir/src.c.o   -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ??-Wsuggest-override?? is valid for C++/ObjC++ but not for C
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
Linking C executable cmTC_3df1f
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3df1f.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_3df1f.dir/src.c.o  -o cmTC_3df1f 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'command[- ]line option .* is valid for .* but not for C'
    Output line: 'cc1: warning: command line option ??-Wno-delete-non-virtual-dtor?? is valid for C++/ObjC++ but not for C'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -ffast-math -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  -Wno-delete-non-virtual-dtor'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_c11f1/fast && /usr/bin/make -f CMakeFiles/cmTC_c11f1.dir/build.make CMakeFiles/cmTC_c11f1.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c11f1.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE    -fsigned-char -ffast-math -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  -Wno-delete-non-virtual-dtor -o CMakeFiles/cmTC_c11f1.dir/src.c.o   -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ??-Wno-delete-non-virtual-dtor?? is valid for C++/ObjC++ but not for C
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
Linking C executable cmTC_c11f1
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c11f1.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_c11f1.dir/src.c.o  -o cmTC_c11f1 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1plus: warning: unrecognized command line option ??-Wno-unnamed-type-template-args??'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -fsigned-char -ffast-math -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 -Wsuggest-override -Wno-delete-non-virtual-dtor  -Wno-unnamed-type-template-args'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_3667a/fast && /usr/bin/make -f CMakeFiles/cmTC_3667a.dir/build.make CMakeFiles/cmTC_3667a.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_3667a.dir/src.cxx.o
/usr/bin/c++    -O3 -DNDEBUG -fPIE    -fsigned-char -ffast-math -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 -Wsuggest-override -Wno-delete-non-virtual-dtor  -Wno-unnamed-type-template-args -std=c++11 -o CMakeFiles/cmTC_3667a.dir/src.cxx.o -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
cc1plus: warning: unrecognized command line option ??-Wno-unnamed-type-template-args??
Linking CXX executable cmTC_3667a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3667a.dir/link.txt --verbose=1
/usr/bin/c++    -O3 -DNDEBUG    CMakeFiles/cmTC_3667a.dir/src.cxx.o  -o cmTC_3667a 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1: warning: unrecognized command line option ??-Wno-unnamed-type-template-args??'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -ffast-math -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  -Wno-unnamed-type-template-args'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_472a4/fast && /usr/bin/make -f CMakeFiles/cmTC_472a4.dir/build.make CMakeFiles/cmTC_472a4.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_472a4.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE    -fsigned-char -ffast-math -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  -Wno-unnamed-type-template-args -o CMakeFiles/cmTC_472a4.dir/src.c.o   -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
cc1: warning: unrecognized command line option ??-Wno-unnamed-type-template-args??
Linking C executable cmTC_472a4
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_472a4.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_472a4.dir/src.c.o  -o cmTC_472a4 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'command[- ]line option .* is valid for .* but not for C'
    Output line: 'cc1: warning: command line option ??-fvisibility-inlines-hidden?? is valid for C++/ObjC++ but not for C'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -ffast-math -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 -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 -fvisibility=hidden  -fvisibility-inlines-hidden'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_babfd/fast && /usr/bin/make -f CMakeFiles/cmTC_babfd.dir/build.make CMakeFiles/cmTC_babfd.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_babfd.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE    -fsigned-char -ffast-math -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 -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 -fvisibility=hidden  -fvisibility-inlines-hidden -o CMakeFiles/cmTC_babfd.dir/src.c.o   -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ??-fvisibility-inlines-hidden?? is valid for C++/ObjC++ but not for C
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
Linking C executable cmTC_babfd
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_babfd.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_babfd.dir/src.c.o  -o cmTC_babfd 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1: warning: unrecognized command line option ??-Wno-implicit-const-int-float-conversion??'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -Wno-implicit-const-int-float-conversion'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_f6253/fast && /usr/bin/make -f CMakeFiles/cmTC_f6253.dir/build.make CMakeFiles/cmTC_f6253.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f6253.dir/src.c.o
/usr/bin/cc   -fsigned-char -ffast-math -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 -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 -fvisibility=hidden  -O3 -DNDEBUG  -DNDEBUG -fPIE    -Wno-implicit-const-int-float-conversion -o CMakeFiles/cmTC_f6253.dir/src.c.o   -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.c:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
cc1: warning: unrecognized command line option ??-Wno-implicit-const-int-float-conversion??
Linking C executable cmTC_f6253
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f6253.dir/link.txt --verbose=1
/usr/bin/cc    -fsigned-char -ffast-math -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 -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 -fvisibility=hidden  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed  CMakeFiles/cmTC_f6253.dir/src.c.o  -o cmTC_f6253 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Determining if the _aligned_malloc exist failed with the following output:
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_68dea/fast && /usr/bin/make -f CMakeFiles/cmTC_68dea.dir/build.make CMakeFiles/cmTC_68dea.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_68dea.dir/CheckSymbolExists.c.o
/usr/bin/cc   -fsigned-char -ffast-math -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 -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 -fvisibility=hidden  -O3 -DNDEBUG  -DNDEBUG -fPIE   -o CMakeFiles/cmTC_68dea.dir/CheckSymbolExists.c.o   -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ??main??:
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ??_aligned_malloc?? undeclared (first use in this function)
    8 |   return ((int*)(&_aligned_malloc))[argc];
      |                   ^~~~~~~~~~~~~~~
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:4:14: warning: parameter ??argc?? set but not used [-Wunused-but-set-parameter]
    4 | int main(int argc, char** argv)
      |          ~~~~^~~~
make[1]: *** [CMakeFiles/cmTC_68dea.dir/build.make:66: CMakeFiles/cmTC_68dea.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_68dea/fast] Error 2

File /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <malloc.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef _aligned_malloc
  return ((int*)(&_aligned_malloc))[argc];
#else
  (void)argc;
  return 0;
#endif
}
Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1plus: warning: unrecognized command line option ??-Wno-inconsistent-missing-override??'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-inconsistent-missing-override'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_72cc9/fast && /usr/bin/make -f CMakeFiles/cmTC_72cc9.dir/build.make CMakeFiles/cmTC_72cc9.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_72cc9.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wsign-promo -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 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-unused -Wno-sign-compare -Wno-undef -Wno-missing-declarations -Wno-uninitialized -Wno-switch -Wno-parentheses -Wno-array-bounds -Wno-extra -Wno-deprecated-declarations -Wno-misleading-indentation -Wno-deprecated -Wno-suggest-override  -O3 -DNDEBUG  -DNDEBUG -fPIE    -Wno-inconsistent-missing-override -std=c++11 -o CMakeFiles/cmTC_72cc9.dir/src.cxx.o -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
cc1plus: warning: unrecognized command line option ??-Wno-inconsistent-missing-override??
Linking CXX executable cmTC_72cc9
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_72cc9.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wsign-promo -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 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-unused -Wno-sign-compare -Wno-undef -Wno-missing-declarations -Wno-uninitialized -Wno-switch -Wno-parentheses -Wno-array-bounds -Wno-extra -Wno-deprecated-declarations -Wno-misleading-indentation -Wno-deprecated -Wno-suggest-override  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed  CMakeFiles/cmTC_72cc9.dir/src.cxx.o  -o cmTC_72cc9 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'command[- ]line option .* is valid for .* but not for C\+\+'
    Output line: 'cc1plus: warning: command line option ??-Wno-missing-prototypes?? is valid for C/ObjC but not for C++'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-missing-prototypes'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_d8b39/fast && /usr/bin/make -f CMakeFiles/cmTC_d8b39.dir/build.make CMakeFiles/cmTC_d8b39.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_d8b39.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wsign-promo -Wno-delete-non-virtual-dtor -Wno-comment -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-unused -Wno-sign-compare -Wno-undef -Wno-missing-declarations -Wno-uninitialized -Wno-switch -Wno-parentheses -Wno-array-bounds -Wno-extra -Wno-deprecated-declarations -Wno-misleading-indentation -Wno-deprecated -Wno-suggest-override -Wno-implicit-fallthrough -Wno-tautological-compare  -O3 -DNDEBUG  -DNDEBUG -fPIE    -Wno-missing-prototypes -std=c++11 -o CMakeFiles/cmTC_d8b39.dir/src.cxx.o -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx
cc1plus: warning: command line option ??-Wno-missing-prototypes?? is valid for C/ObjC but not for C++
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
Linking CXX executable cmTC_d8b39
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d8b39.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wsign-promo -Wno-delete-non-virtual-dtor -Wno-comment -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-unused -Wno-sign-compare -Wno-undef -Wno-missing-declarations -Wno-uninitialized -Wno-switch -Wno-parentheses -Wno-array-bounds -Wno-extra -Wno-deprecated-declarations -Wno-misleading-indentation -Wno-deprecated -Wno-suggest-override -Wno-implicit-fallthrough -Wno-tautological-compare  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed  CMakeFiles/cmTC_d8b39.dir/src.cxx.o  -o cmTC_d8b39 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1plus: warning: unrecognized command line option ??-Wno-implicit-const-int-float-conversion??'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-implicit-const-int-float-conversion'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_c9ffb/fast && /usr/bin/make -f CMakeFiles/cmTC_c9ffb.dir/build.make CMakeFiles/cmTC_c9ffb.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_c9ffb.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wsign-promo -Wno-delete-non-virtual-dtor -Wno-comment -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-unused -Wno-sign-compare -Wno-undef -Wno-missing-declarations -Wno-uninitialized -Wno-switch -Wno-parentheses -Wno-array-bounds -Wno-extra -Wno-deprecated-declarations -Wno-misleading-indentation -Wno-deprecated -Wno-suggest-override -Wno-implicit-fallthrough -Wno-tautological-compare -Wno-reorder -Wno-unused-result  -O3 -DNDEBUG  -DNDEBUG -fPIE    -Wno-implicit-const-int-float-conversion -std=c++11 -o CMakeFiles/cmTC_c9ffb.dir/src.cxx.o -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
cc1plus: warning: unrecognized command line option ??-Wno-implicit-const-int-float-conversion??
Linking CXX executable cmTC_c9ffb
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c9ffb.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wsign-promo -Wno-delete-non-virtual-dtor -Wno-comment -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-unused -Wno-sign-compare -Wno-undef -Wno-missing-declarations -Wno-uninitialized -Wno-switch -Wno-parentheses -Wno-array-bounds -Wno-extra -Wno-deprecated-declarations -Wno-misleading-indentation -Wno-deprecated -Wno-suggest-override -Wno-implicit-fallthrough -Wno-tautological-compare -Wno-reorder -Wno-unused-result  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed  CMakeFiles/cmTC_c9ffb.dir/src.cxx.o  -o cmTC_c9ffb 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Determining if the function sgemm_ exists failed with the following output:
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_234b9/fast && /usr/bin/make -f CMakeFiles/cmTC_234b9.dir/build.make CMakeFiles/cmTC_234b9.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_234b9.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fsigned-char -ffast-math -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 -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 -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=sgemm_ -O3 -DNDEBUG  -DNDEBUG -fPIE   -o CMakeFiles/cmTC_234b9.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
Linking C executable cmTC_234b9
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_234b9.dir/link.txt --verbose=1
/usr/bin/cc    -fsigned-char -ffast-math -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 -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 -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=sgemm_ -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed  CMakeFiles/cmTC_234b9.dir/CheckFunctionExists.c.o  -o cmTC_234b9 
/usr/bin/ld: CMakeFiles/cmTC_234b9.dir/CheckFunctionExists.c.o: in function `main':
CheckFunctionExists.c:(.text.startup.main+0x10): undefined reference to `sgemm_'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_234b9.dir/build.make:87: cmTC_234b9] Error 1
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_234b9/fast] Error 2

Determining if the function cheev_ exists failed with the following output:
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_5fae4/fast && /usr/bin/make -f CMakeFiles/cmTC_5fae4.dir/build.make CMakeFiles/cmTC_5fae4.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5fae4.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fsigned-char -ffast-math -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 -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 -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=cheev_ -O3 -DNDEBUG  -DNDEBUG -fPIE   -o CMakeFiles/cmTC_5fae4.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
Linking C executable cmTC_5fae4
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5fae4.dir/link.txt --verbose=1
/usr/bin/cc    -fsigned-char -ffast-math -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 -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 -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=cheev_ -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed  CMakeFiles/cmTC_5fae4.dir/CheckFunctionExists.c.o  -o cmTC_5fae4  /usr/lib/x86_64-linux-gnu/libf77blas.so /usr/lib/x86_64-linux-gnu/libatlas.so 
/usr/bin/ld: CMakeFiles/cmTC_5fae4.dir/CheckFunctionExists.c.o: in function `main':
CheckFunctionExists.c:(.text.startup.main+0x10): undefined reference to `cheev_'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_5fae4.dir/build.make:89: cmTC_5fae4] Error 1
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_5fae4/fast] Error 2

Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1plus: warning: unrecognized command line option ??-Wno-tautological-undefined-compare??'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-tautological-undefined-compare'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_ee8b3/fast && /usr/bin/make -f CMakeFiles/cmTC_ee8b3.dir/build.make CMakeFiles/cmTC_ee8b3.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_ee8b3.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -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 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-sign-compare -Wno-sign-promo -Wno-undef  -O3 -DNDEBUG  -DNDEBUG -fPIE    -Wno-tautological-undefined-compare -std=c++11 -o CMakeFiles/cmTC_ee8b3.dir/src.cxx.o -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
cc1plus: warning: unrecognized command line option ??-Wno-tautological-undefined-compare??
Linking CXX executable cmTC_ee8b3
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ee8b3.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -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 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-sign-compare -Wno-sign-promo -Wno-undef  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed  CMakeFiles/cmTC_ee8b3.dir/src.cxx.o  -o cmTC_ee8b3 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1plus: warning: unrecognized command line option ??-Wno-shorten-64-to-32??'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-shorten-64-to-32'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_67854/fast && /usr/bin/make -f CMakeFiles/cmTC_67854.dir/build.make CMakeFiles/cmTC_67854.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_67854.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -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 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-sign-compare -Wno-sign-promo -Wno-undef -Wno-ignored-qualifiers -Wno-extra -Wno-unused-function -Wno-unused-const-variable  -O3 -DNDEBUG  -DNDEBUG -fPIE    -Wno-shorten-64-to-32 -std=c++11 -o CMakeFiles/cmTC_67854.dir/src.cxx.o -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
cc1plus: warning: unrecognized command line option ??-Wno-shorten-64-to-32??
Linking CXX executable cmTC_67854
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_67854.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -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 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-sign-compare -Wno-sign-promo -Wno-undef -Wno-ignored-qualifiers -Wno-extra -Wno-unused-function -Wno-unused-const-variable  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed  CMakeFiles/cmTC_67854.dir/src.cxx.o  -o cmTC_67854 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1plus: warning: unrecognized command line option ??-Wno-enum-compare-switch??'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-enum-compare-switch'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_34e89/fast && /usr/bin/make -f CMakeFiles/cmTC_34e89.dir/build.make CMakeFiles/cmTC_34e89.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_34e89.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -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 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-sign-compare -Wno-sign-promo -Wno-undef -Wno-ignored-qualifiers -Wno-extra -Wno-unused-function -Wno-unused-const-variable -Wno-invalid-offsetof  -O3 -DNDEBUG  -DNDEBUG -fPIE    -Wno-enum-compare-switch -std=c++11 -o CMakeFiles/cmTC_34e89.dir/src.cxx.o -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
cc1plus: warning: unrecognized command line option ??-Wno-enum-compare-switch??
Linking CXX executable cmTC_34e89
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_34e89.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -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 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-sign-compare -Wno-sign-promo -Wno-undef -Wno-ignored-qualifiers -Wno-extra -Wno-unused-function -Wno-unused-const-variable -Wno-invalid-offsetof  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed  CMakeFiles/cmTC_34e89.dir/src.cxx.o  -o cmTC_34e89 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

Determining if the include file sys/videoio.h exists failed with the following output:
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_75b2f/fast && /usr/bin/make -f CMakeFiles/cmTC_75b2f.dir/build.make CMakeFiles/cmTC_75b2f.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_75b2f.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fsigned-char -ffast-math -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 -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 -fvisibility=hidden  -O3 -DNDEBUG  -DNDEBUG -fPIE   -o CMakeFiles/cmTC_75b2f.dir/CheckIncludeFile.c.o   -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: sys/videoio.h: No such file or directory
    1 | #include <sys/videoio.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_75b2f.dir/build.make:66: CMakeFiles/cmTC_75b2f.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_75b2f/fast] Error 2

Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1plus: warning: unrecognized command line option ??-Wno-unused-private-field??'
Compilation failed:
    source file: '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-unused-private-field'
===== BUILD LOG =====
Change Dir: /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_8da1b/fast && /usr/bin/make -f CMakeFiles/cmTC_8da1b.dir/build.make CMakeFiles/cmTC_8da1b.dir/build
make[1]: Entering directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_8da1b.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -ffast-math -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 -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 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-function -Wno-deprecated-declarations -Wno-overloaded-virtual  -O3 -DNDEBUG  -DNDEBUG -fPIE    -Wno-unused-private-field -std=c++11 -o CMakeFiles/cmTC_8da1b.dir/src.cxx.o -c /mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx
/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp/src.cxx:1: warning: ignoring #pragma   [-Wunknown-pragmas]
    1 | #pragma
      | 
cc1plus: warning: unrecognized command line option ??-Wno-unused-private-field??
Linking CXX executable cmTC_8da1b
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8da1b.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -ffast-math -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 -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 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-function -Wno-deprecated-declarations -Wno-overloaded-virtual  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed  CMakeFiles/cmTC_8da1b.dir/src.cxx.o  -o cmTC_8da1b 
make[1]: Leaving directory '/mnt/workspace1/user1/opencv-4.5.2/build/CMakeFiles/CMakeTmp'

===== END =====

What is going wrong?

pedrombmachado commented 2 years ago

Can you try my script? Please adjust the opencv $VER and $PYTHON_VERSION to match the target versions.

installOCV.sh

#! /bin/bash
VER=4.6.0
PYTHON_VERSION=3.8
CORES=2
echo "Script for installing the OpenCV $VER on Ubuntu 18.04 LTS"
echo "Updating the OS..."
sudo apt update 
sudo apt upgrade -y
echo "Installing dependencies..."
sudo apt install build-essential cmake unzip pkg-config -y
sudo apt install libjpeg-dev libpng-dev libtiff-dev -y
sudo apt install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt install libxvidcore-dev libx264-dev -y
sudo apt install libgtk-3-dev -y
sudo apt install libatlas-base-dev gfortran -y
sudo apt install python3-dev libtbb-dev -y
sudo apt install libavcodec-dev libavformat-dev libswscale-dev libavresample-dev -y
sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev -y
sudo apt install libxvidcore-dev x264 libx264-dev libfaac-dev libmp3lame-dev libtheora-dev -y
sudo apt install libfaac-dev libmp3lame-dev libvorbis-dev -y
sudo apt install libdc1394-22 libdc1394-22-dev libxine2-dev libv4l-dev v4l-utils -y
sudo apt install libprotobuf-dev protobuf-compiler -y
sudo apt install libgoogle-glog-dev libgflags-dev -y
sudo apt install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen -y
sudo apt install python-is-python3
echo "Fetching and unpacking OpenCV $VER..."
mkdir -p $HOME/repositories
cd $HOME/repositories
wget -O opencv.zip https://github.com/opencv/opencv/archive/${VER}.zip
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/${VER}.zip
#wget https://bootstrap.pypa.io/get-pip.py
#sudo python3 get-pip.py
sudo -H pip3 install numpy matplotlib imutils -U
unzip opencv.zip
unzip opencv_contrib.zip
rm opencv.zip
rm opencv_contrib.zip
cd opencv-${VER}
mkdir -p build
cd build

echo "Compiling OpenCV $VER... this will take several minutes..."
rm CMakeCache.txt
hostname=$(sudo cat /etc/hostname)
cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D INSTALL_PYTHON_EXAMPLES=OFF \
    -D INSTALL_C_EXAMPLES=OFF \
    -D OPENCV_ENABLE_NONFREE=ON \
    -D OPENCV_EXTRA_MODULES_PATH=~/repositories/opencv_contrib-${VER}/modules \
    -D BUILD_NEW_PYTHON_SUPPORT=ON \
    -D PYTHON3_PACKAGES_PATH=/usr/local/lib/python${PYTHON_VERSION}/dist-packages \
    -D BUILD_opencv_python3=ON \
    -D PYTHON_DEFAULT_EXECUTABLE=$(which python3) \
    -D OPENCV_GENERATE_PKGCONFIG=ON \
    -D OPENCV_PC_FILE_NAME=opencv4.pc \
    -D WITH_TBB=ON \
    -D ENABLE_FAST_MATH=1 \
    -D CUDA_FAST_MATH=1 \
    -D WITH_CUBLAS=1 \
    -D WITH_CUDA=ON \
    -D BUILD_opencv_cudacodec=OFF \
    -D WITH_CUDNN=ON \
    -D OPENCV_DNN_CUDA=ON \
    -D CUDA_ARCH_BIN=7.5 \
    -D WITH_V4L=ON \
    -D WITH_QT=OFF \
    -D WITH_OPENGL=ON \
    -D WITH_QT=OFF \
    -D WITH_GSTREAMER=ON \
    -D WITH_FFMPEG=ON \
    -D WITH_OPENCL=ON \
    -D OPENCV_ENABLE_NONFREE=ON \
    -D ENABLE_PRECOMPILED_HEADERS=YES \
    -D EIGEN_INCLUDE_PATH=/usr/include/eigen3 \
    -D BUILD_EXAMPLES=ON ..
echo "Compilation has started ..."
make -j$CORES
echo "Installing OpenCV $VER ..."
sudo make -j$CORES install
sudo cp unix-install/opencv4.pc /usr/lib/x86_64-linux-gnu/pkgconfig/
sudo cp unix-install/opencv4.pc /usr/local/lib/pkgconfig
sudo ldconfig
source $HOME/.bashrc
echo "Installation complete"
erolrecep commented 2 years ago

Can you try my script? Please adjust the opencv $VER and $PYTHON_VERSION to match the target versions.

installOCV.sh

#! /bin/bash
VER=4.6.0
PYTHON_VERSION=3.8
CORES=2
echo "Script for installing the OpenCV $VER on Ubuntu 18.04 LTS"
echo "Updating the OS..."
sudo apt update 
sudo apt upgrade -y
echo "Installing dependencies..."
sudo apt install build-essential cmake unzip pkg-config -y
sudo apt install libjpeg-dev libpng-dev libtiff-dev -y
sudo apt install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt install libxvidcore-dev libx264-dev -y
sudo apt install libgtk-3-dev -y
sudo apt install libatlas-base-dev gfortran -y
sudo apt install python3-dev libtbb-dev -y
sudo apt install libavcodec-dev libavformat-dev libswscale-dev libavresample-dev -y
sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev -y
sudo apt install libxvidcore-dev x264 libx264-dev libfaac-dev libmp3lame-dev libtheora-dev -y
sudo apt install libfaac-dev libmp3lame-dev libvorbis-dev -y
sudo apt install libdc1394-22 libdc1394-22-dev libxine2-dev libv4l-dev v4l-utils -y
sudo apt install libprotobuf-dev protobuf-compiler -y
sudo apt install libgoogle-glog-dev libgflags-dev -y
sudo apt install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen -y
sudo apt install python-is-python3
echo "Fetching and unpacking OpenCV $VER..."
mkdir -p $HOME/repositories
cd $HOME/repositories
wget -O opencv.zip https://github.com/opencv/opencv/archive/${VER}.zip
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/${VER}.zip
#wget https://bootstrap.pypa.io/get-pip.py
#sudo python3 get-pip.py
sudo -H pip3 install numpy matplotlib imutils -U
unzip opencv.zip
unzip opencv_contrib.zip
rm opencv.zip
rm opencv_contrib.zip
cd opencv-${VER}
mkdir -p build
cd build

echo "Compiling OpenCV $VER... this will take several minutes..."
rm CMakeCache.txt
hostname=$(sudo cat /etc/hostname)
cmake -D CMAKE_BUILD_TYPE=RELEASE \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D INSTALL_PYTHON_EXAMPLES=OFF \
  -D INSTALL_C_EXAMPLES=OFF \
  -D OPENCV_ENABLE_NONFREE=ON \
  -D OPENCV_EXTRA_MODULES_PATH=~/repositories/opencv_contrib-${VER}/modules \
  -D BUILD_NEW_PYTHON_SUPPORT=ON \
  -D PYTHON3_PACKAGES_PATH=/usr/local/lib/python${PYTHON_VERSION}/dist-packages \
  -D BUILD_opencv_python3=ON \
  -D PYTHON_DEFAULT_EXECUTABLE=$(which python3) \
  -D OPENCV_GENERATE_PKGCONFIG=ON \
  -D OPENCV_PC_FILE_NAME=opencv4.pc \
  -D WITH_TBB=ON \
  -D ENABLE_FAST_MATH=1 \
  -D CUDA_FAST_MATH=1 \
  -D WITH_CUBLAS=1 \
  -D WITH_CUDA=ON \
  -D BUILD_opencv_cudacodec=OFF \
  -D WITH_CUDNN=ON \
  -D OPENCV_DNN_CUDA=ON \
  -D CUDA_ARCH_BIN=7.5 \
  -D WITH_V4L=ON \
  -D WITH_QT=OFF \
  -D WITH_OPENGL=ON \
  -D WITH_QT=OFF \
  -D WITH_GSTREAMER=ON \
  -D WITH_FFMPEG=ON \
  -D WITH_OPENCL=ON \
  -D OPENCV_ENABLE_NONFREE=ON \
  -D ENABLE_PRECOMPILED_HEADERS=YES \
  -D EIGEN_INCLUDE_PATH=/usr/include/eigen3 \
  -D BUILD_EXAMPLES=ON ..
echo "Compilation has started ..."
make -j$CORES
echo "Installing OpenCV $VER ..."
sudo make -j$CORES install
sudo cp unix-install/opencv4.pc /usr/lib/x86_64-linux-gnu/pkgconfig/
sudo cp unix-install/opencv4.pc /usr/local/lib/pkgconfig
sudo ldconfig
source $HOME/.bashrc
echo "Installation complete"

Which version of gcc/g++ used? gcc throws a lot of internal compiler error. I tested your script with; Ubuntu 20.04 LTS CUDA: 11.7 cuDNN: 8.5.0

asmorkalov commented 1 year ago

The issue is most probably caused by WITH_OPENGL option. OpenGL +GTK is broken in OpenCV: https://github.com/opencv/opencv/issues/20850