Skip to content

massive warnings during running the build on GCC-10 #16458

Closed

Description

@seiko2plus
System information (version)
  • OpenCV => 3.4, master
  • Operating System / Platform => all
  • Compiler => gcc-10
Detailed description
[ 30%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_iterator.cpp.o
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[ 30%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_operations.cpp.o
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[ 30%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_sparse.cpp.o
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[ 30%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_wrap.cpp.o
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[ 30%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/mean.dispatch.cpp.o
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[ 30%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/merge.dispatch.cpp.o
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[ 30%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/minmax.cpp.o

3rdparty warnings (C sources)

cc1plus: warning: command-line option ‘-Wno-missing-prototypes’ is valid for C/ObjC but not for C++
[  8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Half/half.cpp.o
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wno-missing-prototypes’ is valid for C/ObjC but not for C++
[  8%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_dirwrite.c.o
[  8%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_enc.c.o
cc1: warning: command-line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-Wsuggest-override’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-fvisibility-inlines-hidden’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-Wsuggest-override’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-fvisibility-inlines-hidden’ is valid for C++/ObjC++ but not for C
[  8%] Building C object 3rdparty/libjpeg-turbo/CMakeFiles/libjpeg-turbo.dir/src/jdatasrc.c.o
cc1: warning: command-line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-Wsuggest-override’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-fvisibility-inlines-hidden’ is valid for C++/ObjC++ but not for C
[  8%] Building C object 3rdparty/libjpeg-turbo/CMakeFiles/libjpeg-turbo.dir/src/jdcoefct.c.o
cc1: warning: command-line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-Wsuggest-override’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C
cc1: warning: command-line option ‘-fvisibility-inlines-hidden’ is valid for C++/ObjC++ but not for 
Steps to reproduce

build OpenCV on GCC 10

Activity

  1. alalek commented on Jan 29, 2020

    @alalek
    Member

    Looks like GCC adjusts wording:

    -warning: command line option
    +warning: command-line option

    Need to add handling of new variants here through regex:

    -command line
    +command[- ]line

    To check, rerun cmake -UHAVE* .

  2. added
    Hackathon
    on Jan 30, 2020
  3. saskatchewancatch commented on Feb 3, 2020

    @saskatchewancatch
    Contributor

    I built gcc 10 from source (it's the next major release version under development) and repro'd issue. I opened a PR with earlier suggestion.

    Tested building a couple of source files for a module and warnings went away.

    @alalek I'll probably do a long build of all modules to see if other warnings show up with gcc 10 that need to be quashed because of gcc changes.

  4. sl1pkn07 commented on Feb 13, 2020

    @sl1pkn07

    this happen also with gcc 8 and gcc 9

    tested in opencv 4.2.0

    example:

    [ 17%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/accum.cpp.o
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: unrecognized command line option '-Wno-unnamed-type-template-args'
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    [ 17%] Linking CXX executable ../../bin/opencv_version
    
  5. gast128 commented on Feb 11, 2026

    @gast128

    The build spam still happens with OpenCV 4.1.1. and GCC 14.2.

    Uses in custom 'build' directory:

    cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_ADE=OFF -D WITH_FFMPEG=OFF
    cmake --build .
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Hackathoncategory: build/install

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions