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

asked 2020-11-18 21:00:46 -0600

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 ...
(more)
edit retag flag offensive close merge delete