Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opencv 4.6.0 Complire fail in Ubuntu 18 - with tim-vx CPU A311D #22210

Closed
ctcx opened this issue Jul 8, 2022 · 13 comments
Closed

Opencv 4.6.0 Complire fail in Ubuntu 18 - with tim-vx CPU A311D #22210

ctcx opened this issue Jul 8, 2022 · 13 comments
Assignees
Labels

Comments

@ctcx
Copy link

ctcx commented Jul 8, 2022

  • OpenCV => 4.6.0
  • Operating System / Platform =>Ubuntu 18 64 Bit ARM
  • Compiler => cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local/ -DWITH_TIMVX=ON ..
Detailed description
Build output check failed:
    Regex: 'command[- ]line option .* is valid for .* but not for C'
    Output line: 'cc1: warning: command line option ‘-Wnon-virtual-dtor’ is valid for C++/ObjC++ but not for C'
Compilation failed:
    source file: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -W -Wall -Wreturn-type  -Wnon-virtual-dtor'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_3277e/fast"
/usr/bin/make -f CMakeFiles/cmTC_3277e.dir/build.make CMakeFiles/cmTC_3277e.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3277e.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -o CMakeFiles/cmTC_3277e.dir/src.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ‘-Wnon-virtual-dtor’ is valid for C++/ObjC++ but not for C
/opt/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
Linking C executable cmTC_3277e
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3277e.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_3277e.dir/src.c.o  -o cmTC_3277e 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations  -Wmissing-prototypes'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_3b66d/fast"
/usr/bin/make -f CMakeFiles/cmTC_3b66d.dir/build.make CMakeFiles/cmTC_3b66d.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_3b66d.dir/src.cxx.o
/usr/bin/c++    -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -std=c++11 -o CMakeFiles/cmTC_3b66d.dir/src.cxx.o -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx
cc1plus: warning: command line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
Linking CXX executable cmTC_3b66d
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3b66d.dir/link.txt --verbose=1
/usr/bin/c++    -O3 -DNDEBUG    CMakeFiles/cmTC_3b66d.dir/src.cxx.o  -o cmTC_3b66d 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations  -Wstrict-prototypes'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_46b63/fast"
/usr/bin/make -f CMakeFiles/cmTC_46b63.dir/build.make CMakeFiles/cmTC_46b63.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_46b63.dir/src.cxx.o
/usr/bin/c++    -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wstrict-prototypes -std=c++11 -o CMakeFiles/cmTC_46b63.dir/src.cxx.o -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
Linking CXX executable cmTC_46b63
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_46b63.dir/link.txt --verbose=1
/usr/bin/c++    -O3 -DNDEBUG    CMakeFiles/cmTC_46b63.dir/src.cxx.o  -o cmTC_46b63 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow  -Wsign-promo'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_c7481/fast"
/usr/bin/make -f CMakeFiles/cmTC_c7481.dir/build.make CMakeFiles/cmTC_c7481.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c7481.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -o CMakeFiles/cmTC_c7481.dir/src.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C
/opt/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
Linking C executable cmTC_c7481
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c7481.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_c7481.dir/src.c.o  -o cmTC_c7481 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized  -Wsuggest-override'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_dbe2b/fast"
/usr/bin/make -f CMakeFiles/cmTC_dbe2b.dir/build.make CMakeFiles/cmTC_dbe2b.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_dbe2b.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wsuggest-override -o CMakeFiles/cmTC_dbe2b.dir/src.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ‘-Wsuggest-override’ is valid for C++/ObjC++ but not for C
/opt/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
Linking C executable cmTC_dbe2b
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_dbe2b.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_dbe2b.dir/src.c.o  -o cmTC_dbe2b 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized  -Wno-delete-non-virtual-dtor'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_5de1a/fast"
/usr/bin/make -f CMakeFiles/cmTC_5de1a.dir/build.make CMakeFiles/cmTC_5de1a.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5de1a.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-delete-non-virtual-dtor -o CMakeFiles/cmTC_5de1a.dir/src.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C
/opt/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
Linking C executable cmTC_5de1a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5de1a.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_5de1a.dir/src.c.o  -o cmTC_5de1a 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-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: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d08a0/fast"
/usr/bin/make -f CMakeFiles/cmTC_d08a0.dir/build.make CMakeFiles/cmTC_d08a0.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_d08a0.dir/src.cxx.o
/usr/bin/c++    -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-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_d08a0.dir/src.cxx.o -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx
/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1plus: warning: unrecognized command line option ‘-Wno-unnamed-type-template-args’
Linking CXX executable cmTC_d08a0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d08a0.dir/link.txt --verbose=1
/usr/bin/c++    -O3 -DNDEBUG    CMakeFiles/cmTC_d08a0.dir/src.cxx.o  -o cmTC_d08a0 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized  -Wno-unnamed-type-template-args'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b5e7d/fast"
/usr/bin/make -f CMakeFiles/cmTC_b5e7d.dir/build.make CMakeFiles/cmTC_b5e7d.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b5e7d.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-unnamed-type-template-args -o CMakeFiles/cmTC_b5e7d.dir/src.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.c
/opt/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1: warning: unrecognized command line option ‘-Wno-unnamed-type-template-args’
Linking C executable cmTC_b5e7d
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b5e7d.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_b5e7d.dir/src.c.o  -o cmTC_b5e7d 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden  -fvisibility-inlines-hidden'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_940b8/fast"
/usr/bin/make -f CMakeFiles/cmTC_940b8.dir/build.make CMakeFiles/cmTC_940b8.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_940b8.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/cmTC_940b8.dir/src.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ‘-fvisibility-inlines-hidden’ is valid for C++/ObjC++ but not for C
/opt/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
Linking C executable cmTC_940b8
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_940b8.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_940b8.dir/src.c.o  -o cmTC_940b8 
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1: warning: unrecognized command line option ‘-Wno-shorten-64-to-32’'
Compilation failed:
    source file: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -Wno-shorten-64-to-32'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_5074e/fast"
/usr/bin/make -f CMakeFiles/cmTC_5074e.dir/build.make CMakeFiles/cmTC_5074e.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5074e.dir/src.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-parameter -Wno-sign-compare  -O3 -DNDEBUG  -DNDEBUG -fPIE   -Wno-shorten-64-to-32 -o CMakeFiles/cmTC_5074e.dir/src.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.c
/opt/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1: warning: unrecognized command line option ‘-Wno-shorten-64-to-32’
Linking C executable cmTC_5074e
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5074e.dir/link.txt --verbose=1
/usr/bin/cc    -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-parameter -Wno-sign-compare  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined  CMakeFiles/cmTC_5074e.dir/src.c.o  -o cmTC_5074e 
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'

===== END =====

Determining if the include file io.h exists failed with the following output:
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_8d42d/fast"
/usr/bin/make -f CMakeFiles/cmTC_8d42d.dir/build.make CMakeFiles/cmTC_8d42d.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8d42d.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden  -O3 -DNDEBUG  -DNDEBUG -fPIE   -o CMakeFiles/cmTC_8d42d.dir/CheckIncludeFile.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/opt/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: io.h: No such file or directory
 #include <io.h>
          ^~~~~~
compilation terminated.
CMakeFiles/cmTC_8d42d.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_8d42d.dir/CheckIncludeFile.c.o' failed
make[1]: *** [CMakeFiles/cmTC_8d42d.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_8d42d/fast' failed
make: *** [cmTC_8d42d/fast] Error 2


Determining size of INT8 failed with the following output:
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_36cf1/fast"
/usr/bin/make -f CMakeFiles/cmTC_36cf1.dir/build.make CMakeFiles/cmTC_36cf1.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_36cf1.dir/int8.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden  -O3 -DNDEBUG  -DNDEBUG -fPIE   -o CMakeFiles/cmTC_36cf1.dir/int8.c.o   -c /opt/opencv/build/CMakeFiles/CheckTypeSize/int8.c
/opt/opencv/build/CMakeFiles/CheckTypeSize/int8.c:23:22: error: ‘INT8’ undeclared here (not in a function); did you mean ‘INT8_C’?
 #define SIZE (sizeof(INT8))
                      ^
/opt/opencv/build/CMakeFiles/CheckTypeSize/int8.c:25:12: note: in expansion of macro ‘SIZE’
   ('0' + ((SIZE / 10000)%10)),
            ^~~~
CMakeFiles/cmTC_36cf1.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_36cf1.dir/int8.c.o' failed
make[1]: *** [CMakeFiles/cmTC_36cf1.dir/int8.c.o] Error 1
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_36cf1/fast' failed
make: *** [cmTC_36cf1/fast] Error 2

/opt/opencv/build/CMakeFiles/CheckTypeSize/int8.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>


#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#elif defined(__aarch64__)
# define KEY '_','_','a','a','r','c','h','6','4','_','_'
#elif defined(__ARM_ARCH_7A__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
#elif defined(__ARM_ARCH_7S__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
#endif

#define SIZE (sizeof(INT8))
char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
  ('0' + ((SIZE / 10000)%10)),
  ('0' + ((SIZE / 1000)%10)),
  ('0' + ((SIZE / 100)%10)),
  ('0' + ((SIZE / 10)%10)),
  ('0' +  (SIZE    % 10)),
  ']',
#ifdef KEY
  ' ','k','e','y','[', KEY, ']',
#endif
  '\0'};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_size[argc];
  (void)argv;
  return require;
}


Determining size of INT16 failed with the following output:
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_07af0/fast"
/usr/bin/make -f CMakeFiles/cmTC_07af0.dir/build.make CMakeFiles/cmTC_07af0.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_07af0.dir/int16.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden  -O3 -DNDEBUG  -DNDEBUG -fPIE   -o CMakeFiles/cmTC_07af0.dir/int16.c.o   -c /opt/opencv/build/CMakeFiles/CheckTypeSize/int16.c
/opt/opencv/build/CMakeFiles/CheckTypeSize/int16.c:23:22: error: ‘INT16’ undeclared here (not in a function); did you mean ‘INT16_C’?
 #define SIZE (sizeof(INT16))
                      ^
/opt/opencv/build/CMakeFiles/CheckTypeSize/int16.c:25:12: note: in expansion of macro ‘SIZE’
   ('0' + ((SIZE / 10000)%10)),
            ^~~~
CMakeFiles/cmTC_07af0.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_07af0.dir/int16.c.o' failed
make[1]: *** [CMakeFiles/cmTC_07af0.dir/int16.c.o] Error 1
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_07af0/fast' failed
make: *** [cmTC_07af0/fast] Error 2

/opt/opencv/build/CMakeFiles/CheckTypeSize/int16.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>


#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#elif defined(__aarch64__)
# define KEY '_','_','a','a','r','c','h','6','4','_','_'
#elif defined(__ARM_ARCH_7A__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
#elif defined(__ARM_ARCH_7S__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
#endif

#define SIZE (sizeof(INT16))
char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
  ('0' + ((SIZE / 10000)%10)),
  ('0' + ((SIZE / 1000)%10)),
  ('0' + ((SIZE / 100)%10)),
  ('0' + ((SIZE / 10)%10)),
  ('0' +  (SIZE    % 10)),
  ']',
#ifdef KEY
  ' ','k','e','y','[', KEY, ']',
#endif
  '\0'};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_size[argc];
  (void)argv;
  return require;
}


Determining size of INT32 failed with the following output:
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_29566/fast"
/usr/bin/make -f CMakeFiles/cmTC_29566.dir/build.make CMakeFiles/cmTC_29566.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_29566.dir/int32.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden  -O3 -DNDEBUG  -DNDEBUG -fPIE   -o CMakeFiles/cmTC_29566.dir/int32.c.o   -c /opt/opencv/build/CMakeFiles/CheckTypeSize/int32.c
/opt/opencv/build/CMakeFiles/CheckTypeSize/int32.c:23:22: error: ‘INT32’ undeclared here (not in a function); did you mean ‘INT32_C’?
 #define SIZE (sizeof(INT32))
                      ^
/opt/opencv/build/CMakeFiles/CheckTypeSize/int32.c:25:12: note: in expansion of macro ‘SIZE’
   ('0' + ((SIZE / 10000)%10)),
            ^~~~
CMakeFiles/cmTC_29566.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_29566.dir/int32.c.o' failed
make[1]: *** [CMakeFiles/cmTC_29566.dir/int32.c.o] Error 1
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_29566/fast' failed
make: *** [cmTC_29566/fast] Error 2

/opt/opencv/build/CMakeFiles/CheckTypeSize/int32.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>


#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#elif defined(__aarch64__)
# define KEY '_','_','a','a','r','c','h','6','4','_','_'
#elif defined(__ARM_ARCH_7A__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
#elif defined(__ARM_ARCH_7S__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
#endif

#define SIZE (sizeof(INT32))
char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
  ('0' + ((SIZE / 10000)%10)),
  ('0' + ((SIZE / 1000)%10)),
  ('0' + ((SIZE / 100)%10)),
  ('0' + ((SIZE / 10)%10)),
  ('0' +  (SIZE    % 10)),
  ']',
#ifdef KEY
  ' ','k','e','y','[', KEY, ']',
#endif
  '\0'};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_size[argc];
  (void)argv;
  return require;
}


Determining if the function setmode exists failed with the following output:
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_3a9c0/fast"
/usr/bin/make -f CMakeFiles/cmTC_3a9c0.dir/build.make CMakeFiles/cmTC_3a9c0.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3a9c0.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=setmode -O3 -DNDEBUG  -DNDEBUG -fPIE   -o CMakeFiles/cmTC_3a9c0.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_3a9c0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3a9c0.dir/link.txt --verbose=1
/usr/bin/cc    -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=setmode -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined  CMakeFiles/cmTC_3a9c0.dir/CheckFunctionExists.c.o  -o cmTC_3a9c0 
CMakeFiles/cmTC_3a9c0.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text.startup.main+0x10): undefined reference to `setmode'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_3a9c0.dir/build.make:97: recipe for target 'cmTC_3a9c0' failed
make[1]: *** [cmTC_3a9c0] Error 1
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_3a9c0/fast' failed
make: *** [cmTC_3a9c0/fast] Error 2


Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1: warning: unrecognized command line option ‘-Wno-array-parameter’'
Compilation failed:
    source file: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -Wno-array-parameter'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_8c664/fast"
/usr/bin/make -f CMakeFiles/cmTC_8c664.dir/build.make CMakeFiles/cmTC_8c664.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8c664.dir/src.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wstrict-prototypes -Winit-self -Wpointer-arith -Wuninitialized -Wno-comment -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-but-set-variable -Wno-missing-prototypes -Wno-missing-declarations -Wno-undef -Wno-unused -Wno-sign-compare -Wno-cast-align -Wno-shadow -Wno-maybe-uninitialized -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-misleading-indentation -Wno-implicit-fallthrough -Wno-unused-parameter  -O3 -DNDEBUG  -DNDEBUG -fPIE   -Wno-array-parameter -o CMakeFiles/cmTC_8c664.dir/src.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.c
/opt/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1: warning: unrecognized command line option ‘-Wno-array-parameter’
Linking C executable cmTC_8c664
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8c664.dir/link.txt --verbose=1
/usr/bin/cc    -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wstrict-prototypes -Winit-self -Wpointer-arith -Wuninitialized -Wno-comment -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-but-set-variable -Wno-missing-prototypes -Wno-missing-declarations -Wno-undef -Wno-unused -Wno-sign-compare -Wno-cast-align -Wno-shadow -Wno-maybe-uninitialized -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-misleading-indentation -Wno-implicit-fallthrough -Wno-unused-parameter  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined  CMakeFiles/cmTC_8c664.dir/src.c.o  -o cmTC_8c664 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-missing-prototypes'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_2861a/fast"
/usr/bin/make -f CMakeFiles/cmTC_2861a.dir/build.make CMakeFiles/cmTC_2861a.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_2861a.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-missing-declarations -Wno-unused-parameter  -O3 -DNDEBUG  -DNDEBUG -fPIE   -Wno-missing-prototypes -std=c++11 -o CMakeFiles/cmTC_2861a.dir/src.cxx.o -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx
cc1plus: warning: command line option ‘-Wno-missing-prototypes’ is valid for C/ObjC but not for C++
/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
Linking CXX executable cmTC_2861a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2861a.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-missing-declarations -Wno-unused-parameter  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined  CMakeFiles/cmTC_2861a.dir/src.cxx.o  -o cmTC_2861a 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -Wno-implicit-const-int-float-conversion'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b3f81/fast"
/usr/bin/make -f CMakeFiles/cmTC_b3f81.dir/build.make CMakeFiles/cmTC_b3f81.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b3f81.dir/src.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden  -O3 -DNDEBUG  -DNDEBUG -fPIE   -Wno-implicit-const-int-float-conversion -o CMakeFiles/cmTC_b3f81.dir/src.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.c
/opt/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1: warning: unrecognized command line option ‘-Wno-implicit-const-int-float-conversion’
Linking C executable cmTC_b3f81
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b3f81.dir/link.txt --verbose=1
/usr/bin/cc    -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined  CMakeFiles/cmTC_b3f81.dir/src.c.o  -o cmTC_b3f81 
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'

===== END =====

Determining if the _aligned_malloc exist failed with the following output:
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d3c74/fast"
/usr/bin/make -f CMakeFiles/cmTC_d3c74.dir/build.make CMakeFiles/cmTC_d3c74.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d3c74.dir/CheckSymbolExists.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-but-set-variable  -O3 -DNDEBUG  -DNDEBUG -fPIE   -o CMakeFiles/cmTC_d3c74.dir/CheckSymbolExists.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/opt/opencv/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/opt/opencv/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘_aligned_malloc’ undeclared (first use in this function); did you mean ‘__builtin_malloc’?
   return ((int*)(&_aligned_malloc))[argc];
                   ^~~~~~~~~~~~~~~
                   __builtin_malloc
/opt/opencv/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
/opt/opencv/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:4:14: warning: parameter ‘argc’ set but not used [-Wunused-but-set-parameter]
 int main(int argc, char** argv)
              ^~~~
CMakeFiles/cmTC_d3c74.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_d3c74.dir/CheckSymbolExists.c.o' failed
make[1]: *** [CMakeFiles/cmTC_d3c74.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_d3c74/fast' failed
make: *** [cmTC_d3c74/fast] Error 2

File /opt/opencv/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: 'cc1: warning: unrecognized command line option ‘-Wno-cast-function-type’'
Compilation failed:
    source file: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -Wno-cast-function-type'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a331b/fast"
/usr/bin/make -f CMakeFiles/cmTC_a331b.dir/build.make CMakeFiles/cmTC_a331b.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a331b.dir/src.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-but-set-variable -Wno-undef -Wno-strict-prototypes  -O3 -DNDEBUG  -DNDEBUG -fPIE   -Wno-cast-function-type -o CMakeFiles/cmTC_a331b.dir/src.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.c
/opt/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1: warning: unrecognized command line option ‘-Wno-cast-function-type’
Linking C executable cmTC_a331b
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a331b.dir/link.txt --verbose=1
/usr/bin/cc    -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-but-set-variable -Wno-undef -Wno-strict-prototypes  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined  CMakeFiles/cmTC_a331b.dir/src.c.o  -o cmTC_a331b 
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’'
Compilation failed:
    source file: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-inconsistent-missing-override'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a762b/fast"
/usr/bin/make -f CMakeFiles/cmTC_a762b.dir/build.make CMakeFiles/cmTC_a762b.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_a762b.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wsign-promo -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -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_a762b.dir/src.cxx.o -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx
/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’
Linking CXX executable cmTC_a762b
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a762b.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wsign-promo -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -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 -Wl,--no-undefined  CMakeFiles/cmTC_a762b.dir/src.cxx.o  -o cmTC_a762b 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-implicit-const-int-float-conversion'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_e26d5/fast"
/usr/bin/make -f CMakeFiles/cmTC_e26d5.dir/build.make CMakeFiles/cmTC_e26d5.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_e26d5.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wsign-promo -Wno-delete-non-virtual-dtor -Wno-comment -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -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_e26d5.dir/src.cxx.o -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx
/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1plus: warning: unrecognized command line option ‘-Wno-implicit-const-int-float-conversion’
Linking CXX executable cmTC_e26d5
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e26d5.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wsign-promo -Wno-delete-non-virtual-dtor -Wno-comment -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -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 -Wl,--no-undefined  CMakeFiles/cmTC_e26d5.dir/src.cxx.o  -o cmTC_e26d5 
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'

===== END =====

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

Run Build Command:"/usr/bin/make" "cmTC_41133/fast"
/usr/bin/make -f CMakeFiles/cmTC_41133.dir/build.make CMakeFiles/cmTC_41133.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_41133.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -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_41133.dir/src.cxx.o -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx
/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1plus: warning: unrecognized command line option ‘-Wno-tautological-undefined-compare’
Linking CXX executable cmTC_41133
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_41133.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -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 -Wl,--no-undefined  CMakeFiles/cmTC_41133.dir/src.cxx.o  -o cmTC_41133 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-shorten-64-to-32'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_26a41/fast"
/usr/bin/make -f CMakeFiles/cmTC_26a41.dir/build.make CMakeFiles/cmTC_26a41.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_26a41.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -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_26a41.dir/src.cxx.o -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx
/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1plus: warning: unrecognized command line option ‘-Wno-shorten-64-to-32’
Linking CXX executable cmTC_26a41
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_26a41.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -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 -Wl,--no-undefined  CMakeFiles/cmTC_26a41.dir/src.cxx.o  -o cmTC_26a41 
make[1]: Leaving directory '/opt/opencv/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-enum-compare-switch'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_cba20/fast"
/usr/bin/make -f CMakeFiles/cmTC_cba20.dir/build.make CMakeFiles/cmTC_cba20.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_cba20.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -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_cba20.dir/src.cxx.o -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx
/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1plus: warning: unrecognized command line option ‘-Wno-enum-compare-switch’
Linking CXX executable cmTC_cba20
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cba20.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -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 -Wl,--no-undefined  CMakeFiles/cmTC_cba20.dir/src.cxx.o  -o cmTC_cba20 
make[1]: Leaving directory '/opt/opencv/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-suggest-override’ is valid for C++/ObjC++ but not for C'
Compilation failed:
    source file: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.c'
    check option: ' -Wno-suggest-override'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_10ca3/fast"
/usr/bin/make -f CMakeFiles/cmTC_10ca3.dir/build.make CMakeFiles/cmTC_10ca3.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_10ca3.dir/src.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-parameter -Wno-strict-prototypes -Wno-undef -Wno-sign-compare -Wno-missing-prototypes -Wno-missing-declarations -Wno-strict-aliasing -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-shadow  -O3 -DNDEBUG  -DNDEBUG -fPIE   -Wno-suggest-override -o CMakeFiles/cmTC_10ca3.dir/src.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ‘-Wno-suggest-override’ is valid for C++/ObjC++ but not for C
/opt/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
Linking C executable cmTC_10ca3
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_10ca3.dir/link.txt --verbose=1
/usr/bin/cc    -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-parameter -Wno-strict-prototypes -Wno-undef -Wno-sign-compare -Wno-missing-prototypes -Wno-missing-declarations -Wno-strict-aliasing -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-shadow  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined  CMakeFiles/cmTC_10ca3.dir/src.c.o  -o cmTC_10ca3 
make[1]: Leaving directory '/opt/opencv/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-strict-prototypes’ is valid for C/ObjC but not for C++'
Compilation failed:
    source file: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-strict-prototypes'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_94746/fast"
/usr/bin/make -f CMakeFiles/cmTC_94746.dir/build.make CMakeFiles/cmTC_94746.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_94746.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-parameter  -O3 -DNDEBUG  -DNDEBUG -fPIE   -Wno-strict-prototypes -std=c++11 -o CMakeFiles/cmTC_94746.dir/src.cxx.o -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx
cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
Linking CXX executable cmTC_94746
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_94746.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-parameter  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined  CMakeFiles/cmTC_94746.dir/src.cxx.o  -o cmTC_94746 
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'

===== END =====

Determining if the include file sys/videoio.h exists failed with the following output:
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_12bc4/fast"
/usr/bin/make -f CMakeFiles/cmTC_12bc4.dir/build.make CMakeFiles/cmTC_12bc4.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_12bc4.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-parameter -Wno-strict-prototypes -Wno-undef -Wno-sign-compare -Wno-missing-prototypes -Wno-missing-declarations -Wno-strict-aliasing -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-shadow -Wno-switch  -O3 -DNDEBUG  -DNDEBUG -fPIE   -o CMakeFiles/cmTC_12bc4.dir/CheckIncludeFile.c.o   -c /opt/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/opt/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: sys/videoio.h: No such file or directory
 #include <sys/videoio.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/cmTC_12bc4.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_12bc4.dir/CheckIncludeFile.c.o' failed
make[1]: *** [CMakeFiles/cmTC_12bc4.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_12bc4/fast' failed
make: *** [cmTC_12bc4/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: '/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-unused-private-field'
===== BUILD LOG =====
Change Dir: /opt/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_43671/fast"
/usr/bin/make -f CMakeFiles/cmTC_43671.dir/build.make CMakeFiles/cmTC_43671.dir/build
make[1]: Entering directory '/opt/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_43671.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-parameter -Wno-undef -Wno-sign-compare -Wno-unused-but-set-variable -Wno-shadow -Wno-suggest-override -Wno-missing-declarations -Wno-switch -Wno-unused-function -Wno-deprecated-declarations -Wno-overloaded-virtual  -O3 -DNDEBUG  -DNDEBUG -fPIE   -Wno-unused-private-field -std=c++11 -o CMakeFiles/cmTC_43671.dir/src.cxx.o -c /opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx
/opt/opencv/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 
cc1plus: warning: unrecognized command line option ‘-Wno-unused-private-field’
Linking CXX executable cmTC_43671
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_43671.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-parameter -Wno-undef -Wno-sign-compare -Wno-unused-but-set-variable -Wno-shadow -Wno-suggest-override -Wno-missing-declarations -Wno-switch -Wno-unused-function -Wno-deprecated-declarations -Wno-overloaded-virtual  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined  CMakeFiles/cmTC_43671.dir/src.cxx.o  -o cmTC_43671 
make[1]: Leaving directory '/opt/opencv/build/CMakeFiles/CMakeTmp'

===== END =====

@zihaomu
Copy link
Member

zihaomu commented Jul 8, 2022

Hi @ctcx, Can you share your environments HW/SW, CMake output and detailed compilation script for OpenCV + TimvX?

@ctcx
Copy link
Author

ctcx commented Jul 8, 2022

root@orbbec:/opt/opencv/build# cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local/ -DWITH_TIMVX=ON ..
-- The CXX compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- ocv_init_download: OpenCV source tree is not fetched as git repository. 3rdparty resources will be downloaded from github.com by default.
-- Detected processor: aarch64
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.17", minimum required is "2.7") 
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "2.7.17")
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named numpy.distutils
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "3.2") 
-- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython3.6m.so (found suitable exact version "3.6.9") 
-- Looking for ccache - not found
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_WRETURN_TYPE
-- Performing Test HAVE_CXX_WRETURN_TYPE - Success
-- Performing Test HAVE_C_WRETURN_TYPE
-- Performing Test HAVE_C_WRETURN_TYPE - Success
-- Performing Test HAVE_CXX_WNON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WADDRESS
-- Performing Test HAVE_CXX_WADDRESS - Success
-- Performing Test HAVE_C_WADDRESS
-- Performing Test HAVE_C_WADDRESS - Success
-- Performing Test HAVE_CXX_WSEQUENCE_POINT
-- Performing Test HAVE_CXX_WSEQUENCE_POINT - Success
-- Performing Test HAVE_C_WSEQUENCE_POINT
-- Performing Test HAVE_C_WSEQUENCE_POINT - Success
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Success
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Success
-- Performing Test HAVE_CXX_WFORMAT_SECURITY
-- Performing Test HAVE_CXX_WFORMAT_SECURITY - Success
-- Performing Test HAVE_C_WFORMAT_SECURITY
-- Performing Test HAVE_C_WFORMAT_SECURITY - Success
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WMISSING_DECLARATIONS
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
-- Performing Test HAVE_C_WMISSING_PROTOTYPES
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WUNDEF
-- Performing Test HAVE_CXX_WUNDEF - Success
-- Performing Test HAVE_C_WUNDEF
-- Performing Test HAVE_C_WUNDEF - Success
-- Performing Test HAVE_CXX_WINIT_SELF
-- Performing Test HAVE_CXX_WINIT_SELF - Success
-- Performing Test HAVE_C_WINIT_SELF
-- Performing Test HAVE_C_WINIT_SELF - Success
-- Performing Test HAVE_CXX_WPOINTER_ARITH
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
-- Performing Test HAVE_C_WPOINTER_ARITH
-- Performing Test HAVE_C_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_WSHADOW
-- Performing Test HAVE_CXX_WSHADOW - Success
-- Performing Test HAVE_C_WSHADOW
-- Performing Test HAVE_C_WSHADOW - Success
-- Performing Test HAVE_CXX_WSIGN_PROMO
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Failed
-- Performing Test HAVE_CXX_WUNINITIALIZED
-- Performing Test HAVE_CXX_WUNINITIALIZED - Success
-- Performing Test HAVE_C_WUNINITIALIZED
-- Performing Test HAVE_C_WUNINITIALIZED - Success
-- Performing Test HAVE_CXX_WSUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_WSUGGEST_OVERRIDE - Success
-- Performing Test HAVE_C_WSUGGEST_OVERRIDE
-- Performing Test HAVE_C_WSUGGEST_OVERRIDE - Failed
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_CXX_WNO_COMMENT
-- Performing Test HAVE_CXX_WNO_COMMENT - Success
-- Performing Test HAVE_C_WNO_COMMENT
-- Performing Test HAVE_C_WNO_COMMENT - Success
-- Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3
-- Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3 - Success
-- Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3
-- Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3 - Success
-- Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW
-- Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW - Success
-- Performing Test HAVE_C_WNO_STRICT_OVERFLOW
-- Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_CXX_PTHREAD
-- Performing Test HAVE_CXX_PTHREAD - Success
-- Performing Test HAVE_C_PTHREAD
-- Performing Test HAVE_C_PTHREAD - Success
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_C_FFUNCTION_SECTIONS
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_CXX_FDATA_SECTIONS
-- Performing Test HAVE_CXX_FDATA_SECTIONS - Success
-- Performing Test HAVE_C_FDATA_SECTIONS
-- Performing Test HAVE_C_FDATA_SECTIONS - Success
-- Performing Test HAVE_CPU_NEON_SUPPORT (check file: cmake/checks/cpu_neon.cpp)
-- Performing Test HAVE_CPU_NEON_SUPPORT - Success
-- Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CPU_FP16_SUPPORT - Success
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed
-- Performing Test HAVE_LINK_AS_NEEDED
-- Performing Test HAVE_LINK_AS_NEEDED - Success
-- Performing Test HAVE_LINK_NO_UNDEFINED
-- Performing Test HAVE_LINK_NO_UNDEFINED - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memalign
-- Looking for memalign - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found suitable version "1.2.11", minimum required is "1.2.3") 
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_C_WNO_SIGN_COMPARE
-- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Success
-- libjpeg-turbo: VERSION = 2.1.2, BUILD = opencv-4.6.0-libjpeg-turbo
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Performing Test HAVE_BUILTIN_CTZL
-- Performing Test HAVE_BUILTIN_CTZL - Success
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Looking for assert.h
-- Looking for assert.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for io.h
-- Looking for io.h - not found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for search.h
-- Looking for search.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Performing Test C_HAS_inline
-- Performing Test C_HAS_inline - Success
-- Check size of signed short
-- Check size of signed short - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Check size of signed int
-- Check size of signed int - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of signed long
-- Check size of signed long - done
-- Check size of signed long long
-- Check size of signed long long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Check size of unsigned char *
-- Check size of unsigned char * - done
-- Check size of ptrdiff_t
-- Check size of ptrdiff_t - done
-- Check size of INT8
-- Check size of INT8 - failed
-- Check size of INT16
-- Check size of INT16 - failed
-- Check size of INT32
-- Check size of INT32 - failed
-- Looking for floor
-- Looking for floor - found
-- Looking for pow
-- Looking for pow - found
-- Looking for sqrt
-- Looking for sqrt - found
-- Looking for isascii
-- Looking for isascii - found
-- Looking for memset
-- Looking for memset - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for setmode
-- Looking for setmode - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strrchr
-- Looking for strrchr - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for lfind
-- Looking for lfind - found
-- Performing Test HAVE_SNPRINTF
-- Performing Test HAVE_SNPRINTF - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE - Success
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WNO_UNDEF
-- Performing Test HAVE_C_WNO_UNDEF - Success
-- Performing Test HAVE_C_WNO_UNUSED
-- Performing Test HAVE_C_WNO_UNUSED - Success
-- Performing Test HAVE_C_WNO_CAST_ALIGN
-- Performing Test HAVE_C_WNO_CAST_ALIGN - Success
-- Performing Test HAVE_C_WNO_SHADOW
-- Performing Test HAVE_C_WNO_SHADOW - Success
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success
-- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST
-- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST - Success
-- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST
-- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST - Success
-- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION
-- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION - Success
-- Performing Test HAVE_C_WNO_ARRAY_PARAMETER
-- Performing Test HAVE_C_WNO_ARRAY_PARAMETER - Failed
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed
-- Performing Test HAVE_CXX_WNO_UNDEF
-- Performing Test HAVE_CXX_WNO_UNDEF - Success
-- Performing Test HAVE_C_STD_C99
-- Performing Test HAVE_C_STD_C99 - Success
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success
-- Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version >= 2.3.1). OpenJPEG will be built from sources
-- Performing Test HAVE_C_WNO_IMPLICIT_CONST_INT_FLOAT_CONVERSION
-- Performing Test HAVE_C_WNO_IMPLICIT_CONST_INT_FLOAT_CONVERSION - Failed
-- OpenJPEG: VERSION = 2.4.0, BUILD = opencv-4.6.0-openjp2-2.4.0
-- Check if the system is big endian
-- Searching 16 bit integer
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for float.h
-- Looking for float.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for ctype.h
-- Looking for ctype.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - not found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for memalign
-- Looking for memalign - found
-- Performing Test HAVE_C_WNO_CAST_FUNCTION_TYPE
-- Performing Test HAVE_C_WNO_CAST_FUNCTION_TYPE - Failed
-- OpenJPEG libraries will be built from sources: libopenjp2 (version "2.4.0")
-- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib/aarch64-linux-gnu/libpng.so (found version "1.6.34") 
-- Looking for /usr/include/libpng/png.h
-- Looking for /usr/include/libpng/png.h - found
-- Looking for semaphore.h
-- Looking for semaphore.h - found
-- Performing Test HAVE_CXX_WNO_SHADOW
-- Performing Test HAVE_CXX_WNO_SHADOW - Success
-- Performing Test HAVE_CXX_WNO_UNUSED
-- Performing Test HAVE_CXX_WNO_UNUSED - Success
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_SWITCH
-- Performing Test HAVE_CXX_WNO_SWITCH - Success
-- Performing Test HAVE_CXX_WNO_PARENTHESES
-- Performing Test HAVE_CXX_WNO_PARENTHESES - Success
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
-- Performing Test HAVE_CXX_WNO_EXTRA
-- Performing Test HAVE_CXX_WNO_EXTRA - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION
-- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED
-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Failed
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_COMPARE
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_REORDER
-- Performing Test HAVE_CXX_WNO_REORDER - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_RESULT
-- Performing Test HAVE_CXX_WNO_UNUSED_RESULT - Success
-- Performing Test HAVE_CXX_WNO_IMPLICIT_CONST_INT_FLOAT_CONVERSION
-- Performing Test HAVE_CXX_WNO_IMPLICIT_CONST_INT_FLOAT_CONVERSION - Failed
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Could NOT find Atlas (missing: Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY) 
-- Found Threads: TRUE  
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Success
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Failed
-- TIM-VX: Load VIVANTE_SDK_DIR from system environment: /opt/aarch64_A311D_6.4.8
-- TIM-VX: Build from source
-- TIM-VX: Downloading 1d9c7ab941b3d8d9c4d28d80058402725731e3d6.zip from file:///root/Downloads/timvx/1d9c7ab941b3d8d9c4d28d80058402725731e3d6.zip
-- TIM-VX: Source code downloaded at /opt/opencv/build/3rdparty/libtim-vx/TIM-VX-1d9c7ab941b3d8d9c4d28d80058402725731e3d6.
-- TIM-VX: dependent VIVANTE SDK libraries are found at /opt/aarch64_A311D_6.4.8/lib.
-- Performing Test HAVE_C_WNO_STRICT_ALIASING
-- Performing Test HAVE_C_WNO_STRICT_ALIASING - Success
-- Performing Test HAVE_C_WNO_SUGGEST_OVERRIDE
-- Performing Test HAVE_C_WNO_SUGGEST_OVERRIDE - Failed
-- Performing Test HAVE_C_WNO_SWITCH
-- Performing Test HAVE_C_WNO_SWITCH - Success
-- Performing Test HAVE_CXX_WNO_STRICT_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_STRICT_PROTOTYPES - Failed
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE - Success
include driver sdk from /opt/aarch64_A311D_6.4.8
using driver libs from /opt/aarch64_A311D_6.4.8/lib
src/tim/vx
src/tim/vx/internal
-- OVXLIB include directory: /opt/opencv/build/3rdparty/libtim-vx/TIM-VX-1d9c7ab941b3d8d9c4d28d80058402725731e3d6/src/tim/vx/internal/include
CMake Error at cmake/OpenCVUtils.cmake:1224 (install):
  install TARGETS given target "tim-vx" which does not exist in this
  directory.
Call Stack (most recent call first):
  3rdparty/libtim-vx/tim-vx.cmake:71 (ocv_install_target)
  cmake/OpenCVFindTIMVX.cmake:51 (include)
  CMakeLists.txt:740 (include)


-- TIM-VX: Found TIM-VX includes: /opt/opencv/build/3rdparty/libtim-vx/TIM-VX-1d9c7ab941b3d8d9c4d28d80058402725731e3d6/include
-- TIM-VX: Found TIM-VX library: tim-vx
-- TIM-VX: Found VIVANTE SDK libraries: /opt/aarch64_A311D_6.4.8/lib
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Looking for dlerror in dl
-- Looking for dlerror in dl - found
-- ADE: Downloading v0.1.1f.zip from file:///root/Downloads/v0.1.1f.zip
-- Checking for module 'gtk+-3.0'
--   No package 'gtk+-3.0' found
-- Checking for module 'gtk+-2.0'
--   Found gtk+-2.0, version 2.24.32
-- Checking for module 'gthread-2.0'
--   Found gthread-2.0, version 2.56.4
-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'
--   Found libavcodec, version 57.107.100
--   Found libavformat, version 57.83.100
--   Found libavutil, version 55.78.100
--   Found libswscale, version 4.8.100
-- Checking for module 'libavresample'
--   No package 'libavresample' found
-- Checking for module 'gstreamer-base-1.0'
--   No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-app-1.0'
--   No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
--   No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
--   No package 'gstreamer-pbutils-1.0' found
-- Checking for module 'gstreamer-video-1.0'
--   No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-audio-1.0'
--   No package 'gstreamer-audio-1.0' found
-- Checking for module 'libdc1394-2'
--   No package 'libdc1394-2' found
-- Allocator metrics storage type: 'int'
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse3.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.ssse3.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse4_2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin512.avx512_skx.cpp
-- Excluding from source files list: modules/imgproc/src/corner.avx.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp
-- Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp
-- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': /opt/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
-- opencv_dnn: filter out cuda4dnn source code
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.rvv.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/int8layers/layers_common.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/int8layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: modules/features2d/src/fast.avx2.cpp
-- imgcodecs: OpenEXR codec is disabled in runtime. Details: https://github.com/opencv/opencv/issues/21326
-- highgui: using builtin backend: GTK2
-- Found 'misc' Python modules from /opt/opencv/modules/python/package/extra_modules
-- Found 'mat_wrapper;utils' Python modules from /opt/opencv/modules/core/misc/python/package
-- Found 'gapi' Python modules from /opt/opencv/modules/gapi/misc/python/package
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD - Failed
-- Found 'misc' Python modules from /opt/opencv/modules/python/package/extra_modules
-- Found 'mat_wrapper;utils' Python modules from /opt/opencv/modules/core/misc/python/package
-- Found 'gapi' Python modules from /opt/opencv/modules/gapi/misc/python/package
-- 
-- General configuration for OpenCV 4.6.0 =====================================
--   Version control:               unknown
-- 
--   Platform:
--     Timestamp:                   2022-07-08T03:23:59Z
--     Host:                        Linux 4.9.241 aarch64
--     CMake:                       3.10.2
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /usr/bin/make
--     Configuration:               RELEASE
-- 
--   CPU/HW features:
--     Baseline:                    NEON FP16
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ standard:                11
--     C++ Compiler:                /usr/bin/c++  (ver 7.5.0)
--     C++ flags (Release):         -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-parameter -Wno-undef -Wno-sign-compare -Wno-unused-but-set-variable -Wno-shadow -Wno-suggest-override -Wno-missing-declarations -Wno-switch -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-parameter -Wno-undef -Wno-sign-compare -Wno-unused-but-set-variable -Wno-shadow -Wno-suggest-override -Wno-missing-declarations -Wno-switch -g  -O0 -DDEBUG -D_DEBUG
--     C Compiler:                  /usr/bin/cc
--     C flags (Release):           -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-parameter -Wno-strict-prototypes -Wno-undef -Wno-sign-compare -Wno-missing-prototypes -Wno-missing-declarations -Wno-strict-aliasing -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-shadow -Wno-switch -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-unused-parameter -Wno-strict-prototypes -Wno-undef -Wno-sign-compare -Wno-missing-prototypes -Wno-missing-declarations -Wno-strict-aliasing -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-shadow -Wno-switch -g  -O0 -DDEBUG -D_DEBUG
--     Linker flags (Release):      -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined  
--     Linker flags (Debug):        -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined  
--     ccache:                      NO
--     Precompiled headers:         NO
--     Extra dependencies:          dl m pthread rt
--     3rdparty dependencies:
-- 
--   OpenCV modules:
--     To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo python3 stitching ts video videoio
--     Disabled:                    world
--     Disabled by dependency:      -
--     Unavailable:                 java python2
--     Applications:                tests perf_tests apps
--     Documentation:               NO
--     Non-free algorithms:         NO
-- 
--   GUI:                           GTK2
--     GTK+:                        YES (ver 2.24.32)
--       GThread :                  YES (ver 2.56.4)
--       GtkGlExt:                  NO
--     VTK support:                 NO
-- 
--   Media I/O: 
--     ZLib:                        /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.11)
--     JPEG:                        libjpeg-turbo (ver 2.1.2-62)
--     WEBP:                        build (ver encoder: 0x020f)
--     PNG:                         /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.6.34)
--     TIFF:                        build (ver 42 - 4.2.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:                      NO
--     FFMPEG:                      YES
--       avcodec:                   YES (57.107.100)
--       avformat:                  YES (57.83.100)
--       avutil:                    YES (55.78.100)
--       swscale:                   YES (4.8.100)
--       avresample:                NO
--     GStreamer:                   NO
--     v4l/v4l2:                    YES (linux/videodev2.h)
-- 
--   Parallel framework:            pthreads
-- 
--   Trace:                         YES (with Intel ITT)
-- 
--   Other third-party libraries:
--     Lapack:                      NO
--     Eigen:                       NO
--     Custom HAL:                  YES (carotene (ver 0.0.1))
--     Protobuf:                    build (3.19.1)
-- 
--   Tim-VX:                        YES
--     Include path                 /opt/opencv/build/3rdparty/libtim-vx/TIM-VX-1d9c7ab941b3d8d9c4d28d80058402725731e3d6/include
--     Link libraries:              tim-vx
--     VIVANTE SDK path             /opt/aarch64_A311D_6.4.8
-- 
--   OpenCL:                        YES (no extra features)
--     Include path:                /opt/opencv/3rdparty/include/opencl/1.2
--     Link libraries:              Dynamic load
-- 
--   Python 3:
--     Interpreter:                 /usr/bin/python3 (ver 3.6.9)
--     Libraries:                   /usr/lib/aarch64-linux-gnu/libpython3.6m.so (ver 3.6.9)
--     numpy:                       /usr/lib/python3/dist-packages/numpy/core/include (ver 1.13.3)
--     install path:                lib/python3.6/site-packages/cv2/python-3.6
-- 
--   Python (for build):            /usr/bin/python2.7
-- 
--   Java:                          
--     ant:                         NO
--     JNI:                         NO
--     Java wrappers:               NO
--     Java tests:                  NO
-- 
--   Install to:                    /usr/local
-- -----------------------------------------------------------------
-- 
-- Configuring incomplete, errors occurred!
See also "/opt/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/opt/opencv/build/CMakeFiles/CMakeError.log".

@ctcx
Copy link
Author

ctcx commented Jul 8, 2022

root@orbbec:/opt/opencv/build# sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic

@fengyuentau
Copy link
Member

It seems CMake failed to configure tim-vx. Could you go to /opt/opencv/build/3rdparty/libtim-vx/TIM-VX-1d9c7ab941b3d8d9c4d28d80058402725731e3d6, try the following CMake command and see whether it complains anything:

cd /opt/opencv/build/3rdparty/libtim-vx/TIM-VX-1d9c7ab941b3d8d9c4d28d80058402725731e3d6
cmake -B build -DEXTERNAL_VIV_SDK=/opt/aarch64_A311D_6.4.8 -DVIV_SDK_DRIVER_PREFIX=lib .

By the way, we have official mirror support for OpenCV in gitcode.net for users in China. You don't have to pre download 3rdparty files, but run with an extra CMake option:

cd opencv
cmake -DOPENCV_DOWNLOAD_MIRROR_ID=gitcode .

@fengyuentau fengyuentau added category:dnn_timvx TIM-VX related issues in DNN module category: build/install and removed incomplete labels Jul 9, 2022
@ctcx
Copy link
Author

ctcx commented Jul 10, 2022

root@orbbec:/opt/opencv/build/3rdparty/libtim-vx/TIM-VX-1d9c7ab941b3d8d9c4d28d80058402725731e3d6# cmake -B build -DEXTERNAL_VIV_SDK=/opt/aarch64_A311D_6.4.8 -DVIV_SDK_DRIVER_PREFIX=lib .
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
include driver sdk from /opt/aarch64_A311D_6.4.8
using driver libs from /opt/aarch64_A311D_6.4.8/lib
src/tim/vx
src/tim/vx/internal
-- OVXLIB include directory: /opt/opencv/build/3rdparty/libtim-vx/TIM-VX-1d9c7ab941b3d8d9c4d28d80058402725731e3d6/src/tim/vx/internal/include
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/opencv/build/3rdparty/libtim-vx/TIM-VX-1d9c7ab941b3d8d9c4d28d80058402725731e3d6/build

@fengyuentau
Copy link
Member

It looks like CMake can configure TIM-VX, which should have tim-vx as install target. I tried on my side but cannot reproduce your issue.

Can you try delete the old build and try to redo congfigure? If it still does not work, attach CMakeError.log and CMakeOutput.log in case we can find something there.

@ctcx
Copy link
Author

ctcx commented Jul 12, 2022

你好,我是按照 https://github.com/opencv/opencv/wiki/TIM-VX-Backend-For-Running-OpenCV-On-NPU 一步一步安装的;
之前的报错可能是做步骤”Extra Requirements for Khadas VIM3“时发生问题,我后来发现我板子已经带了相关驱动;我跳过这一步重新编译,前面都很顺利,到93%时会卡住,然后就只能拔掉电源重启板子。
opencv-build

@zihaomu
Copy link
Member

zihaomu commented Jul 12, 2022

Hi @ctcx, this may be caused by the gapi module which takes up too many computing and memory resources.
Please try disabling gapi module by add -D BUILD_opencv_gapi=OFF in cmake.
And your cmake script should look like this:

cmake -B opencv-build \
      -D CMAKE_BUILD_TYPE=RELEASE \
      -D BUILD_opencv_gapi=OFF \
      -D CMAKE_INSTALL_PREFIX=opencv-install \
      -D WITH_TIMVX=ON opencv

cmake --build opencv-build --target install -j 4

@ctcx
Copy link
Author

ctcx commented Jul 12, 2022

你好,我是加上参数: -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF
正常编译成功了,然后我把生成的 cv2.cpython-36m-aarch64-linux-gnu.so copy 到 /usr/local/lib/python3.6/dist-packages/
进入python环境,import cv2 时失败,提示:
/usr/share/npu/sdk/lib/libOpenVX.so.1: undefined symbol: gcoPROFILER_Enable

@fengyuentau
Copy link
Member

import cv2 时失败

You need to do this, which can also be found in the wiki:

export LD_LIBRARY_PATH=/path/to/<VIVANTE_SDK_path>/lib:$LD_LIBRARY_PATH
export VIVANTE_SDK_DIR=/path/to/<VIVANTE_SDK_path>

@ctcx
Copy link
Author

ctcx commented Jul 13, 2022

感谢,现在提示新的错误:
cv2.error: OpenCV(4.6.0) /opt/opencv/modules/dnn/src/onnx/onnx_importer.cpp:255: error: (-5:Bad argument) Can't read ONNX file: face_detection_yunet_2022mar.onnx in function 'ONNXImporter'

opencv_zoo# python3 ./models/face_detection_yunet/demo.py

@ctcx
Copy link
Author

ctcx commented Jul 13, 2022

不好意思,我发现是我没有进入到目录;我 cd ./models/face_detection_yunet/
然后 python3 demo.py 就成功了。

感谢所有对我的帮助。

@fengyuentau
Copy link
Member

By the way, if you want to use NPU, be sure to run the demo with options --target=7 --backend=9. You can run python demo.py --help for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants