Ask Your Question

Revision history [back]

-Wno-inconsistent-missing-override - Build Error OpenCV 4.5.0

I am attempting to compile the OpenCV package on a small ARM processor. Using essentially the same process I can compile on a Raspberry Pi but not on my RockChip system.

There is no relevant text "no-inconsistent-missing-override" In the 4.5.0 downloads. I expect it's being automatically generated by gcc or cmake?

My RockChip O/S is Armbian variant Debian Buster.

Linux nanopim4v2 5.8.17-rockchip64 #20.08.21 SMP PREEMPT Sat Oct 31 08:22:59 CET 2020 aarch64 GNU/Linux

GCC and cmake default settings are

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/8/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --disable-libphobos --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6) 

cmake --version
cmake version 3.13.4

Cmake Command

cmake --debug-trycompile --trace \
    -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_CXX_COMPILER_ID=GNU \
    -D ENABLE_CXX11=ON \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-4.5.0/modules \
    -D ENABLE_NEON=ON \
    -D ENABLE_VFPV3=ON \
    -D BUILD_TESTS=OFF \
    -D INSTALL_PYTHON_EXAMPLES=OFF \
    -D OPENCV_ENABLE_NONFREE=ON \
    -D CMAKE_SHARED_LINKER_FLAGS='-latomic' \
    -D BUILD_EXAMPLES=OFF ..

Start of CMakeError.log

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

Run Build Command:"/usr/bin/make" "cmTC_1ed59/fast"
/usr/bin/make -f CMakeFiles/cmTC_1ed59.dir/build.make CMakeFiles/cmTC_1ed59.dir/build
make[1]: Entering directory '/home/jeremy/opencv-4.5.0/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_1ed59.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 -Winit-self -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=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 -fPIC   -Wno-inconsistent-missing-override -o CMakeFiles/cmTC_1ed59.dir/src.cxx.o -c /home/jeremy/opencv-4.5.0/build/CMakeFiles/CMakeTmp/src.cxx
/home/jeremy/opencv-4.5.0/build/CMakeFiles/CMakeTmp/src.cxx:1: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma

cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’
Linking CXX executable cmTC_1ed59
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1ed59.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 -Winit-self -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -Wno-shadow -Wno-unused -Wno-sign-compare -Wno-undef -Wno-missing-declarations -Wno-uninitialized -Wno-switch -Wno-parentheses -Wno-array-bounds -Wno-extra -Wno-deprecated-declarations -Wno-misleading-indentation -Wno-deprecated -Wno-suggest-override  -O3 -DNDEBUG  -DNDEBUG    -Wl,--gc-sections -Wl,--as-needed  CMakeFiles/cmTC_1ed59.dir/src.cxx.o  -o cmTC_1ed59 
make[1]: Leaving directory '/home/jeremy/opencv-4.5.0/build/CMakeFiles/CMakeTmp'

===== END =====

Output of relevant part of trace

/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(506):  IF(HAVE_CXX_WNO_SUGGEST_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(507):  SET(HAVE_CXX_WNO_SUGGEST_OVERRIDE 1 CACHE INTERNAL Test HAVE_CXX_WNO_SUGGEST_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(508):  MESSAGE(STATUS Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success )
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(618):  if(${_varname} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(619):  set(${var} ${${var}} ${warning} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(613):  if(NOT warning MATCHES ^-Wno- )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(614):  string(REGEX REPLACE (^|[ ]+)${warning}(=[^ ]*)?([ ]+|$)   ${var} ${${var}} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(615):  string(REPLACE -W -Wno- warning ${warning} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(617):  ocv_check_flag_support(${var} ${warning} _varname  )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(527):  if(CMAKE_BUILD_TYPE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(528):  set(CMAKE_TRY_COMPILE_CONFIGURATION ${CMAKE_BUILD_TYPE} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(531):  if(_CMAKE_CXX_FLAGS_ MATCHES _CXX_ )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(532):  set(_lang CXX )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(541):  string(TOUPPER -Wno-inconsistent-missing-override _varname )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(542):  string(REGEX REPLACE ^(/|-) HAVE_${_lang}_ _varname ${_varname} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(543):  string(REGEX REPLACE  -|-|=| |\\.|, _ _varname ${_varname} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(545):  ocv_check_compiler_flag(${_lang}  -Wno-inconsistent-missing-override ${_varname}  )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(421):  set(_fname  )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(422):  if(NOT DEFINED HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(423):  if(_fname )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(425):  elseif(_CXX_ MATCHES _CXX_ )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(426):  set(_fname ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.cxx )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(427):  if(${CMAKE_CXX_FLAGS}  -Wno-inconsistent-missing-override  MATCHES -Werror  OR ${CMAKE_CXX_FLAGS}  -Wno-inconsistent-missing-override  MATCHES -Werror=unknown-pragmas  )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(429):  else()
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(430):  FILE(WRITE ${_fname} #pragma\nint main() { return 0; }\n )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(449):  if(_fname )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(450):  if(NOT x STREQUAL x )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(453):  else()
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(454):  set(__msg  )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(456):  if(CMAKE_REQUIRED_LIBRARIES )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(458):  else()
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(459):  set(__link_libs )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(461):  set(__cmake_flags  )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(462):  if(CMAKE_EXE_LINKER_FLAGS )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(463):  list(APPEND __cmake_flags -DCMAKE_EXE_LINKER_FLAGS=${CMAKE_EXE_LINKER_FLAGS} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(467):  if(DEFINED CMAKE_CXX_STANDARD )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(468):  list(APPEND __cmake_flags -DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(470):  if(DEFINED CMAKE_CXX_STANDARD_REQUIRED )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(471):  list(APPEND __cmake_flags -DCMAKE_CXX_STANDARD_REQUIRED=${CMAKE_CXX_STANDARD_REQUIRED} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(473):  if(DEFINED CMAKE_CXX_EXTENSIONS )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(474):  list(APPEND __cmake_flags -DCMAKE_CXX_EXTENSIONS=${CMAKE_CXX_EXTENSIONS} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(477):  MESSAGE(STATUS Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE${__msg} )
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(478):  TRY_COMPILE(HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE ${CMAKE_BINARY_DIR} ${_fname} CMAKE_FLAGS ${__cmake_flags} COMPILE_DEFINITIONS  -Wno-inconsistent-missing-override ${__link_libs} OUTPUT_VARIABLE OUTPUT )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(486):  if(HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(487):  string(REPLACE ; , OUTPUT_LINES ${OUTPUT} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(488):  string(REPLACE \n ; OUTPUT_LINES ${OUTPUT_LINES} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(489):  foreach(_regex ${OCV_COMPILER_FAIL_REGEX} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(490):  if(NOT HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(493):  foreach(_line ${OUTPUT_LINES} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(490):  if(NOT HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(493):  foreach(_line ${OUTPUT_LINES} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(490):  if(NOT HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(493):  foreach(_line ${OUTPUT_LINES} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(490):  if(NOT HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(493):  foreach(_line ${OUTPUT_LINES} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(494):  if(${_line} MATCHES ${_regex} )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(495):  file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log Build output check failed:\n     Regex: '${_regex}'\n     Output line: '${_line}'\n )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(499):  set(HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE 0 )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(500):  break()
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(490):  if(NOT HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(491):  break()
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(506):  IF(HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(509):  ELSE(HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(510):  MESSAGE(STATUS Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Failed )
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Failed
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(511):  SET(HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE  CACHE INTERNAL Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE )
/home/jeremy/opencv-4.5.0/cmake/OpenCVUtils.cmake(512):  file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log Compilation failed:\n     source file: '${_fname}'\n     check option: ' -Wno-inconsistent-missing-override'\n ===== BUILD LOG =====\n ${OUTPUT}\n ===== END =====\n\n )