unrecognized command-line option ‘–param=ipcp-unit-growth=100000’

System information (version)
  • OpenCV : 3.4.7
  • OS: Linux ubuntu-desktop 5.8.0-1006-raspi #9-Ubuntu SMP PREEMPT Fri Oct 16 12:55:30 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
  • OS: ubuntu 20.10
  • hardware: RaspberryPI 4B
  • gcc : gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0
  • cmake : 3.16.3
  • make : 4.3
Detailed description

error when building opencv.

make[2]: Leaving directory '/home/ubuntu/Downloads/RaspberryPiData/Downloads/opencv/build'
[ 36%%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/absdiff.cpp.o
[ 37%%] Built target ittnotify
c++: error: unrecognized command-line option ‘--param=ipcp-unit-growth=100000’; did you mean ‘--param=ipa-cp-unit-growth=’?
make[2]: *** [3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/build.make:63: 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/absdiff.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/home/ubuntu/Downloads/RaspberryPiData/Downloads/opencv/build'
[ 37%%] Built target opencv_core_pch_dephelp
[ 37%%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/accumulate.cpp.o
make[2]: Entering directory '/home/ubuntu/Downloads/RaspberryPiData/Downloads/opencv/build'
Scanning dependencies of target opencv_flann_pch_dephelp
c++: error: unrecognized command-line option ‘--param=ipcp-unit-growth=100000’; did you mean ‘--param=ipa-cp-unit-growth=’?
make[2]: *** [3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/build.make:76: 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/accumulate.cpp.o] Error 1
make[2]: Leaving directory '/home/ubuntu/Downloads/RaspberryPiData/Downloads/opencv/build'
make[1]: *** [CMakeFiles/Makefile2:2110: 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Scanning dependencies of target opencv_imgproc_pch_dephelp
make[2]: Leaving directory '/home/ubuntu/Downloads/RaspberryPiData/Downloads/opencv/build'
make[2]: Leaving directory '/home/ubuntu/Downloads/RaspberryPiData/Downloads/opencv/build'
make[2]: Entering directory '/home/ubuntu/Downloads/RaspberryPiData/Downloads/opencv/build'
make[2]: Entering directory '/home/ubuntu/Downloads/RaspberryPiData/Downloads/opencv/build'
[ 37%%] Building CXX object modules/flann/CMakeFiles/opencv_flann_pch_dephelp.dir/opencv_flann_pch_dephelp.cxx.o
[ 37%%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc_pch_dephelp.dir/opencv_imgproc_pch_dephelp.cxx.o
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++
[ 37%%] Linking CXX static library ../../lib/libopencv_imgproc_pch_dephelp.a
make[2]: Leaving directory '/home/ubuntu/Downloads/RaspberryPiData/Downloads/opencv/build'
[ 37%%] Built target opencv_imgproc_pch_dephelp
[ 37%%] Linking CXX static library ../../lib/libopencv_flann_pch_dephelp.a
make[2]: Leaving directory '/home/ubuntu/Downloads/RaspberryPiData/Downloads/opencv/build'
[ 37%%] Built target opencv_flann_pch_dephelp
make[1]: Leaving directory '/home/ubuntu/Downloads/RaspberryPiData/Downloads/opencv/build'
make: *** [Makefile:163: all] Error 2

1 possible answer(s) on “unrecognized command-line option ‘–param=ipcp-unit-growth=100000’