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

Compilation problem: "WARNING: Can't build ffmpeg test code" #16603

Closed
banderlog opened this issue Feb 17, 2020 · 11 comments
Closed

Compilation problem: "WARNING: Can't build ffmpeg test code" #16603

banderlog opened this issue Feb 17, 2020 · 11 comments

Comments

@banderlog
Copy link

banderlog commented Feb 17, 2020

libavresample is deprecated in ffmpeg since 2017

Source: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20171230145919.5812-1-atomnuker@gmail.com/

One have to manually enable --enable-avresample flag which will produce following text:

WARNING: Building with deprecated library libavresample

@alalek
Copy link
Member

alalek commented Feb 17, 2020

What is the problem?

OpenCV can use FFmpeg without avresample:

--     FFMPEG:                      YES
--       avcodec:                   YES (ver 54.35.1)
--       avformat:                  YES (ver 54.20.4)
--       avutil:                    YES (ver 52.3.0)
--       swscale:                   YES (ver 2.1.1)
--       avresample:                NO

@banderlog
Copy link
Author

Strangely, but I am getting different output:

opencv-4.2.0

  Video I/O:
    FFMPEG:                      NO
      avcodec:                   YES (58.54.100)
      avformat:                  YES (58.29.100)
      avutil:                    YES (56.31.100)
      swscale:                   YES (5.5.100)
      avresample:                NO
    GStreamer:                   NO
    v4l/v4l2:                    YES (linux/videodev2.h)

And with awresample:

  Video I/O:
    FFMPEG:                      NO
      avcodec:                   YES (58.54.100)
      avformat:                  YES (58.29.100)
      avutil:                    YES (56.31.100)
      swscale:                   YES (5.5.100)
      avresample:                NO
    GStreamer:                   NO
    v4l/v4l2:                    YES (linux/videodev2.h)

Thus, yep, problem lies somewhere else :)

@banderlog
Copy link
Author

-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'
--   Found libavcodec, version 58.54.100
--   Found libavformat, version 58.29.100
--   Found libavutil, version 56.31.100
--   Found libswscale, version 5.5.100
-- Checking for module 'libavresample'
--   Found libavresample, version 4.0.0
CMake Warning at cmake/OpenCVUtils.cmake:845 (message):
  ocv_check_modules(FFMPEG_libavresample): can't find library 'avresample'.
  Specify 'pkgcfg_lib_FFMPEG_libavresample_avresample' manually
Call Stack (most recent call first):
  modules/videoio/cmake/detect_ffmpeg.cmake:30 (ocv_check_modules)
  modules/videoio/cmake/init.cmake:3 (include)
  modules/videoio/cmake/init.cmake:22 (add_backend)
  cmake/OpenCVModule.cmake:312 (include)
  cmake/OpenCVModule.cmake:375 (_add_modules_1)
  modules/CMakeLists.txt:7 (ocv_glob_modules)


-- WARNING: Can't build ffmpeg test code

@banderlog
Copy link
Author

#==================================
if(HAVE_FFMPEG AND NOT HAVE_FFMPEG_WRAPPER AND NOT OPENCV_FFMPEG_SKIP_BUILD_CHECK)
try_compile(__VALID_FFMPEG
"${OpenCV_BINARY_DIR}"
"${OpenCV_SOURCE_DIR}/cmake/checks/ffmpeg_test.cpp"
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${FFMPEG_INCLUDE_DIRS}"
"-DLINK_LIBRARIES:STRING=${FFMPEG_LIBRARIES}"
OUTPUT_VARIABLE TRY_OUT
)
if(NOT __VALID_FFMPEG)
# message(FATAL_ERROR "FFMPEG: test check build log:\n${TRY_OUT}")
message(STATUS "WARNING: Can't build ffmpeg test code")
set(HAVE_FFMPEG FALSE)
endif()
endif()
#==================================

@alalek
Copy link
Member

alalek commented Feb 17, 2020

# message(FATAL_ERROR

Uncomment this line to get detailed error message.


Problem is somewhere here:

-- Checking for module 'libavresample'
--   Found libavresample, version 4.0.0

Looks like it is improperly detected.

Investigation steps:

  • pkg-config -modversion libavresample
  • pkg-config -cflags -libs libavresample
  • pkg-config -cflags -libs libavcodec
  • search for libavresample*.so*
  • search for libavresample.pc

@banderlog
Copy link
Author

I've removed libavresample flag, recompiled ffmpeg and tried again:

-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'
--   Found libavcodec, version 58.54.100
--   Found libavformat, version 58.29.100
--   Found libavutil, version 56.31.100
--   Found libswscale, version 5.5.100
-- Checking for module 'libavresample'
--   No package 'libavresample' found
CMake Error at modules/videoio/cmake/detect_ffmpeg.cmake:49 (message):
  FFMPEG: test check build log:

  Change Dir:
  /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp




  Run Build Command:"/usr/bin/make" "cmTC_d33c9/fast"

  /usr/bin/make -f CMakeFiles/cmTC_d33c9.dir/build.make
  CMakeFiles/cmTC_d33c9.dir/build

  make[1]: Entering directory
  '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'


  Building CXX object CMakeFiles/cmTC_d33c9.dir/ffmpeg_test.cpp.o

  /usr/bin/c++
  -I/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/include
  -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor
  -Werror=address -Werror=sequence-point -Wformat -Werror=format-security
  -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow
  -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override
  -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3
  -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread
  -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2
  -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden
  -fvisibility-inlines-hidden -O3 -DNDEBUG -fPIE -std=c++11 -o
  CMakeFiles/cmTC_d33c9.dir/ffmpeg_test.cpp.o -c
  /home/ubuntu/opencv-python-inference-engine/opencv/cmake/checks/ffmpeg_test.cpp


  Linking CXX executable cmTC_d33c9

  /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d33c9.dir/link.txt
  --verbose=1

  /usr/bin/c++ -fsigned-char -W -Wall -Werror=return-type
  -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat
  -Werror=format-security -Wmissing-declarations -Wundef -Winit-self
  -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self
  -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment
  -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option
  -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections
  -fdata-sections -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2
  -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG
  -Wl,--gc-sections CMakeFiles/cmTC_d33c9.dir/ffmpeg_test.cpp.o -o cmTC_d33c9
  /home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavcodec.pc
  /home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavformat.pc
  /home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavutil.pc
  /home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libswscale.pc



  /usr/bin/ld:/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavcodec.pc:
  file format not recognized; treating as linker script


  /usr/bin/ld:/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavcodec.pc:2:
  syntax error

  collect2: error: ld returned 1 exit status

  CMakeFiles/cmTC_d33c9.dir/build.make:101: recipe for target 'cmTC_d33c9'
  failed

  make[1]: *** [cmTC_d33c9] Error 1

  make[1]: Leaving directory
  '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'


  Makefile:126: recipe for target 'cmTC_d33c9/fast' failed

  make: *** [cmTC_d33c9/fast] Error 2

Call Stack (most recent call first):
  modules/videoio/cmake/init.cmake:3 (include)
  modules/videoio/cmake/init.cmake:22 (add_backend)
  cmake/OpenCVModule.cmake:312 (include)
  cmake/OpenCVModule.cmake:375 (_add_modules_1)
  modules/CMakeLists.txt:7 (ocv_glob_modules)

If i'll look on the file:

ubuntu@fortified-haddock:~/opencv-python-inference-engine/build/opencv$ file /home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavcodec.pc
/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavcodec.pc: ASCII text
ubuntu@fortified-haddock:~/opencv-python-inference-engine/build/opencv$ cat /home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavcodec.pc
prefix=./binaries
exec_prefix=${prefix}
libdir=./binaries/lib
includedir=./binaries/include

Name: libavcodec
Description: FFmpeg codec library
Version: 58.54.100
Requires:
Requires.private: libavutil >= 56.31.100
Conflicts:
Libs: -L${libdir}  -lavcodec
Libs.private: -pthread -lm
Cflags: -I${includedir}

@banderlog
Copy link
Author

banderlog commented Feb 17, 2020

I've tried with absolute pathes in prefix -- same result

And is full of cc1plus: warning: unrecognized command line option ‘-Wno-shorten-64-to-32’ and this is a clang flags, as far as I know.

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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations  -Wmissing-prototypes'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_77cf2/fast"
/usr/bin/make -f CMakeFiles/cmTC_77cf2.dir/build.make CMakeFiles/cmTC_77cf2.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_77cf2.dir/src.cxx.o
/usr/bin/c++    -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -std=c++11 -o CMakeFiles/cmTC_77cf2.dir/src.cxx.o -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx
cc1plus: warning: command line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma

Linking CXX executable cmTC_77cf2
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_77cf2.dir/link.txt --verbose=1
/usr/bin/c++    -O3 -DNDEBUG    CMakeFiles/cmTC_77cf2.dir/src.cxx.o  -o cmTC_77cf2
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations  -Wstrict-prototypes'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_e7b06/fast"
/usr/bin/make -f CMakeFiles/cmTC_e7b06.dir/build.make CMakeFiles/cmTC_e7b06.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_e7b06.dir/src.cxx.o
/usr/bin/c++    -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wstrict-prototypes -std=c++11 -o CMakeFiles/cmTC_e7b06.dir/src.cxx.o -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma

Linking CXX executable cmTC_e7b06
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e7b06.dir/link.txt --verbose=1
/usr/bin/c++    -O3 -DNDEBUG    CMakeFiles/cmTC_e7b06.dir/src.cxx.o  -o cmTC_e7b06
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow  -Wsign-promo'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_e4cf0/fast"
/usr/bin/make -f CMakeFiles/cmTC_e4cf0.dir/build.make CMakeFiles/cmTC_e4cf0.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e4cf0.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -o CMakeFiles/cmTC_e4cf0.dir/src.c.o   -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma

Linking C executable cmTC_e4cf0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e4cf0.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_e4cf0.dir/src.c.o  -o cmTC_e4cf0
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self  -Wsuggest-override'
===== BUILD LOG =====
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_67c81/fast"
/usr/bin/make -f CMakeFiles/cmTC_67c81.dir/build.make CMakeFiles/cmTC_67c81.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_67c81.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wsuggest-override -o CMakeFiles/cmTC_67c81.dir/src.c.o   -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ‘-Wsuggest-override’ is valid for C++/ObjC++ but not for C
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma

Linking C executable cmTC_67c81
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_67c81.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_67c81.dir/src.c.o  -o cmTC_67c81
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self  -Wno-delete-non-virtual-dtor'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_7fc32/fast"
/usr/bin/make -f CMakeFiles/cmTC_7fc32.dir/build.make CMakeFiles/cmTC_7fc32.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_7fc32.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -o CMakeFiles/cmTC_7fc32.dir/src.c.o   -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma

Linking C executable cmTC_7fc32
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7fc32.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_7fc32.dir/src.c.o  -o cmTC_7fc32
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor  -Wno-unnamed-type-template-args'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_8cc9c/fast"
/usr/bin/make -f CMakeFiles/cmTC_8cc9c.dir/build.make CMakeFiles/cmTC_8cc9c.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_8cc9c.dir/src.cxx.o
/usr/bin/c++    -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -std=c++11 -o CMakeFiles/cmTC_8cc9c.dir/src.cxx.o -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx
/home/ubuntu/opencv-python-inference-engine/build/opencv/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_8cc9c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8cc9c.dir/link.txt --verbose=1
/usr/bin/c++    -O3 -DNDEBUG    CMakeFiles/cmTC_8cc9c.dir/src.cxx.o  -o cmTC_8cc9c
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self  -Wno-unnamed-type-template-args'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_85c81/fast"
/usr/bin/make -f CMakeFiles/cmTC_85c81.dir/build.make CMakeFiles/cmTC_85c81.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_85c81.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-unnamed-type-template-args -o CMakeFiles/cmTC_85c81.dir/src.c.o   -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c
/home/ubuntu/opencv-python-inference-engine/build/opencv/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_85c81
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_85c81.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_85c81.dir/src.c.o  -o cmTC_85c81
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c'
    check option: ' -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden  -fvisibility-inlines-hidden'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_742f2/fast"
/usr/bin/make -f CMakeFiles/cmTC_742f2.dir/build.make CMakeFiles/cmTC_742f2.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_742f2.dir/src.c.o
/usr/bin/cc   -O3 -DNDEBUG -fPIE   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/cmTC_742f2.dir/src.c.o   -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c
cc1: warning: command line option ‘-fvisibility-inlines-hidden’ is valid for C++/ObjC++ but not for C
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma

Linking C executable cmTC_742f2
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_742f2.dir/link.txt --verbose=1
/usr/bin/cc   -O3 -DNDEBUG    CMakeFiles/cmTC_742f2.dir/src.c.o  -o cmTC_742f2
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'

===== END =====

Determining size of off64_t failed with the following output:
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_9ebd7/fast"
/usr/bin/make -f CMakeFiles/cmTC_9ebd7.dir/build.make CMakeFiles/cmTC_9ebd7.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_9ebd7.dir/OFF64_T.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden  -O3 -DNDEBUG -fPIE   -o CMakeFiles/cmTC_9ebd7.dir/OFF64_T.c.o   -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/OFF64_T.c
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/OFF64_T.c:23:22: error: ‘off64_t’ undeclared here (not in a function); did you mean ‘off_t’?
 #define SIZE (sizeof(off64_t))
                      ^
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/OFF64_T.c:25:12: note: in expansion of macro ‘SIZE’
   ('0' + ((SIZE / 10000)%10)),
            ^~~~
CMakeFiles/cmTC_9ebd7.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_9ebd7.dir/OFF64_T.c.o' failed
make[1]: *** [CMakeFiles/cmTC_9ebd7.dir/OFF64_T.c.o] Error 1
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_9ebd7/fast' failed
make: *** [cmTC_9ebd7/fast] Error 2

/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/OFF64_T.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(off64_t))
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;
}


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

Run Build Command:"/usr/bin/make" "cmTC_ba8d6/fast"
/usr/bin/make -f CMakeFiles/cmTC_ba8d6.dir/build.make CMakeFiles/cmTC_ba8d6.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ba8d6.dir/src.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden  -O3 -DNDEBUG -fPIE   -Wno-shorten-64-to-32 -o CMakeFiles/cmTC_ba8d6.dir/src.c.o   -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.c
/home/ubuntu/opencv-python-inference-engine/build/opencv/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_ba8d6
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ba8d6.dir/link.txt --verbose=1
/usr/bin/cc    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden  -O3 -DNDEBUG    -Wl,--gc-sections  CMakeFiles/cmTC_ba8d6.dir/src.c.o  -o cmTC_ba8d6
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'

===== END =====

Determining if the include file io.h exists failed with the following output:
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_746a6/fast"
/usr/bin/make -f CMakeFiles/cmTC_746a6.dir/build.make CMakeFiles/cmTC_746a6.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_746a6.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden  -O3 -DNDEBUG -fPIE   -o CMakeFiles/cmTC_746a6.dir/CheckIncludeFile.c.o   -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: io.h: No such file or directory
 #include <io.h>
          ^~~~~~
compilation terminated.
CMakeFiles/cmTC_746a6.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_746a6.dir/CheckIncludeFile.c.o' failed
make[1]: *** [CMakeFiles/cmTC_746a6.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_746a6/fast' failed
make: *** [cmTC_746a6/fast] Error 2


Determining size of INT8 failed with the following output:
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_c5abd/fast"
/usr/bin/make -f CMakeFiles/cmTC_c5abd.dir/build.make CMakeFiles/cmTC_c5abd.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c5abd.dir/int8.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden  -O3 -DNDEBUG -fPIE   -o CMakeFiles/cmTC_c5abd.dir/int8.c.o   -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/int8.c
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/int8.c:23:22: error: ‘INT8’ undeclared here (not in a function); did you mean ‘INT8_C’?
 #define SIZE (sizeof(INT8))
                      ^
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/int8.c:25:12: note: in expansion of macro ‘SIZE’
   ('0' + ((SIZE / 10000)%10)),
            ^~~~
CMakeFiles/cmTC_c5abd.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_c5abd.dir/int8.c.o' failed
make[1]: *** [CMakeFiles/cmTC_c5abd.dir/int8.c.o] Error 1
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_c5abd/fast' failed
make: *** [cmTC_c5abd/fast] Error 2

/home/ubuntu/opencv-python-inference-engine/build/opencv/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: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_8a256/fast"
/usr/bin/make -f CMakeFiles/cmTC_8a256.dir/build.make CMakeFiles/cmTC_8a256.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8a256.dir/int16.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden  -O3 -DNDEBUG -fPIE   -o CMakeFiles/cmTC_8a256.dir/int16.c.o   -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/int16.c
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/int16.c:23:22: error: ‘INT16’ undeclared here (not in a function); did you mean ‘INT16_C’?
 #define SIZE (sizeof(INT16))
                      ^
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/int16.c:25:12: note: in expansion of macro ‘SIZE’
   ('0' + ((SIZE / 10000)%10)),
            ^~~~
CMakeFiles/cmTC_8a256.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_8a256.dir/int16.c.o' failed
make[1]: *** [CMakeFiles/cmTC_8a256.dir/int16.c.o] Error 1
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_8a256/fast' failed
make: *** [cmTC_8a256/fast] Error 2

/home/ubuntu/opencv-python-inference-engine/build/opencv/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: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_0a28e/fast"
/usr/bin/make -f CMakeFiles/cmTC_0a28e.dir/build.make CMakeFiles/cmTC_0a28e.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0a28e.dir/int32.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden  -O3 -DNDEBUG -fPIE   -o CMakeFiles/cmTC_0a28e.dir/int32.c.o   -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/int32.c
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/int32.c:23:22: error: ‘INT32’ undeclared here (not in a function); did you mean ‘INT32_C’?
 #define SIZE (sizeof(INT32))
                      ^
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CheckTypeSize/int32.c:25:12: note: in expansion of macro ‘SIZE’
   ('0' + ((SIZE / 10000)%10)),
            ^~~~
CMakeFiles/cmTC_0a28e.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_0a28e.dir/int32.c.o' failed
make[1]: *** [CMakeFiles/cmTC_0a28e.dir/int32.c.o] Error 1
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_0a28e/fast' failed
make: *** [cmTC_0a28e/fast] Error 2

/home/ubuntu/opencv-python-inference-engine/build/opencv/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: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_bc14a/fast"
/usr/bin/make -f CMakeFiles/cmTC_bc14a.dir/build.make CMakeFiles/cmTC_bc14a.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_bc14a.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=setmode -O3 -DNDEBUG -fPIE   -o CMakeFiles/cmTC_bc14a.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_bc14a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_bc14a.dir/link.txt --verbose=1
/usr/bin/cc    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=setmode -O3 -DNDEBUG    -Wl,--gc-sections  CMakeFiles/cmTC_bc14a.dir/CheckFunctionExists.c.o  -o cmTC_bc14a
CMakeFiles/cmTC_bc14a.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text.startup.main+0xc): undefined reference to `setmode'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_bc14a.dir/build.make:97: recipe for target 'cmTC_bc14a' failed
make[1]: *** [cmTC_bc14a] Error 1
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_bc14a/fast' failed
make: *** [cmTC_bc14a/fast] Error 2


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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-missing-prototypes'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_44119/fast"
/usr/bin/make -f CMakeFiles/cmTC_44119.dir/build.make CMakeFiles/cmTC_44119.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_44119.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-missing-declarations -Wno-unused-parameter  -O3 -DNDEBUG -fPIE   -Wno-missing-prototypes -std=c++11 -o CMakeFiles/cmTC_44119.dir/src.cxx.o -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx
cc1plus: warning: command line option ‘-Wno-missing-prototypes’ is valid for C/ObjC but not for C++
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma

Linking CXX executable cmTC_44119
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_44119.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-missing-declarations -Wno-unused-parameter  -O3 -DNDEBUG    -Wl,--gc-sections  CMakeFiles/cmTC_44119.dir/src.cxx.o  -o cmTC_44119
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'

===== END =====

Build output check failed:
    Regex: 'unrecognized .*option'
    Output line: 'cc1plus: warning: unrecognized command line option ‘-Wno-class-memaccess’'
Compilation failed:
    source file: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-class-memaccess'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_c947f/fast"
/usr/bin/make -f CMakeFiles/cmTC_c947f.dir/build.make CMakeFiles/cmTC_c947f.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_c947f.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden -fvisibility-inlines-hidden -flifetime-dse=1 -Wno-shadow -Wno-unused-parameter  -O3 -DNDEBUG -fPIE   -Wno-class-memaccess -std=c++11 -o CMakeFiles/cmTC_c947f.dir/src.cxx.o -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx
/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma

cc1plus: warning: unrecognized command line option ‘-Wno-class-memaccess’
Linking CXX executable cmTC_c947f
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c947f.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -fvisibility=hidden -fvisibility-inlines-hidden -flifetime-dse=1 -Wno-shadow -Wno-unused-parameter  -O3 -DNDEBUG    -Wl,--gc-sections  CMakeFiles/cmTC_c947f.dir/src.cxx.o  -o cmTC_c947f
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-tautological-undefined-compare'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_fb4ff/fast"
/usr/bin/make -f CMakeFiles/cmTC_fb4ff.dir/build.make CMakeFiles/cmTC_fb4ff.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_fb4ff.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -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 -fPIE   -Wno-tautological-undefined-compare -std=c++11 -o CMakeFiles/cmTC_fb4ff.dir/src.cxx.o -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx
/home/ubuntu/opencv-python-inference-engine/build/opencv/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_fb4ff
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fb4ff.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -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    -Wl,--gc-sections  CMakeFiles/cmTC_fb4ff.dir/src.cxx.o  -o cmTC_fb4ff
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-shorten-64-to-32'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_5907d/fast"
/usr/bin/make -f CMakeFiles/cmTC_5907d.dir/build.make CMakeFiles/cmTC_5907d.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_5907d.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -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 -fPIE   -Wno-shorten-64-to-32 -std=c++11 -o CMakeFiles/cmTC_5907d.dir/src.cxx.o -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx
/home/ubuntu/opencv-python-inference-engine/build/opencv/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_5907d
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5907d.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -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    -Wl,--gc-sections  CMakeFiles/cmTC_5907d.dir/src.cxx.o  -o cmTC_5907d
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-enum-compare-switch'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_c789a/fast"
/usr/bin/make -f CMakeFiles/cmTC_c789a.dir/build.make CMakeFiles/cmTC_c789a.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_c789a.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -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 -fPIE   -Wno-enum-compare-switch -std=c++11 -o CMakeFiles/cmTC_c789a.dir/src.cxx.o -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx
/home/ubuntu/opencv-python-inference-engine/build/opencv/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_c789a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c789a.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -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    -Wl,--gc-sections  CMakeFiles/cmTC_c789a.dir/src.cxx.o  -o cmTC_c789a
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/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: '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -Wno-inconsistent-missing-override'
===== BUILD LOG =====
Change Dir: /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b6e8a/fast"
/usr/bin/make -f CMakeFiles/cmTC_b6e8a.dir/build.make CMakeFiles/cmTC_b6e8a.dir/build
make[1]: Entering directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_b6e8a.dir/src.cxx.o
/usr/bin/c++    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -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 -Wno-suggest-override  -O3 -DNDEBUG -fPIE   -Wno-inconsistent-missing-override -std=c++11 -o CMakeFiles/cmTC_b6e8a.dir/src.cxx.o -c /home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp/src.cxx
/home/ubuntu/opencv-python-inference-engine/build/opencv/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_b6e8a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b6e8a.dir/link.txt --verbose=1
/usr/bin/c++     -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -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 -Wno-suggest-override  -O3 -DNDEBUG    -Wl,--gc-sections  CMakeFiles/cmTC_b6e8a.dir/src.cxx.o  -o cmTC_b6e8a
make[1]: Leaving directory '/home/ubuntu/opencv-python-inference-engine/build/opencv/CMakeFiles/CMakeTmp'

===== END =====

@alalek
Copy link
Member

alalek commented Feb 17, 2020

and this is a clang flags, as far as I know

Just checks.


This is wrong. Linker can't accept .pc files:

/usr/bin/c++
...
/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavcodec.pc
/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavformat.pc
/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavutil.pc
/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libswscale.pc

/usr/bin/ld:/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/pkgconfig/libavcodec.pc:
file format not recognized; treating as linker script

Looks like build configuration is broken.
You should try again from scratch (drop CMake cache or clear build directory)


We don't help with remote investigation of problems which we are not able to reproduce on our side (because it is very time consuming and usually configuration problem without any following fix into OpenCV), but we can take a look on the clear reason of the problem and suggest some fix/workaround.

@banderlog
Copy link
Author

banderlog commented Feb 17, 2020

@alalek thank you for your help, and patience

Now message(STATUS "${FFMPEG_LIBRARIES}") shows
-- /home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/libavcodec.so;/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/libavformat.so;/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/libavutil.so;/home/ubuntu/opencv-python-inference-engine/build/ffmpeg/binaries/lib/libswscale.so, before there were *.pc files.

The problem was in old cmake flags like -D pkgcfg_lib_FFMPEG_swscale=$FFMPEG_PATH/lib/pkgconfig/libswscale.pc \ (for all libs) and CMake cache.

UPD: and prefix fields of .pc files should contain an absolute path

@banderlog banderlog changed the title libavresample is deprecated in ffmpeg since 2017 Compilation problem: "WARNING: Can't build ffmpeg test code" Feb 17, 2020
@watershade
Copy link

I solve it by add:
--enable-shared \ --enable-pic \ --disable-static

So finally I config ffmpeg like this(32-bit os):
./configure \ --extra-cflags="-I/usr/local/include" \ --extra-ldflags="-L/usr/local/lib" \ --extra-libs="-lpthread -lm -latomic" \ --arch=armel \ --enable-gmp \ --enable-gpl \ --enable-libaom \ --enable-libass \ --enable-libdav1d \ --enable-libfdk-aac \ --enable-libfreetype \ --enable-libkvazaar \ --enable-libmp3lame \ --enable-libopencore-amrnb \ --enable-libopencore-amrwb \ --enable-libopus \ --enable-librtmp \ --enable-libsnappy \ --enable-libsoxr \ --enable-libssh \ --enable-libvorbis \ --enable-libvpx \ --enable-libzimg \ --enable-libwebp \ --enable-libx264 \ --enable-libx265 \ --enable-libxml2 \ --enable-mmal \ --enable-nonfree \ --enable-omx \ --enable-omx-rpi \ --enable-version3 \ --target-os=linux \ --enable-pthreads \ --enable-openssl \ --enable-hardcoded-tables \

@tashrifbillah
Copy link

You may want to see my comment about how to build ffmpeg from source and link that to opencv.

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

No branches or pull requests

4 participants