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

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

Closed
wangzhankun opened this issue Dec 7, 2020 · 6 comments
Closed
Labels
invalid question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org

Comments

@wangzhankun
Copy link

System information (version)
  • OpenCV : 3.4.7
  • OS: Linux ubuntu-desktop 5.8.0-1006-raspi Optimized version of BackgroundSubtractorGMG #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
@alalek
Copy link
Member

alalek commented Dec 7, 2020

3.4.7

Outdated releases are not supported.

@gansm255
Copy link

gansm255 commented Feb 3, 2021

issue happens in opencv4.2.0 as well

@cvilas
Copy link

cvilas commented Feb 9, 2021

Please reopen this issue @alalek. This problem exists on opencv 4.2.0, which is current for many users (for instance this is the version that comes with Ubuntu 20.04 LTS). We can use the system-wide version for development on PC, but need to cross compile the same version for aarch64 targets.

@drdas
Copy link

drdas commented Feb 11, 2021

Is this an issue with GCC 10 not supporting certain compiler flags? Where can we find a list of which OpenCV versions will build with which GCC versions?

I had the same issue with 3.2.0, 3.4.3, 3.4.4 on linaro 20.07 based on debian sid, with GCC 10 (on aarch64).

@alalek
Copy link
Member

alalek commented Feb 11, 2021

Why are you trying OpenCV releases which were released several years ago, just before GCC 10 release date?
No way to properly support non-existed unreleased dependency. I believe it should be obvious.

You should use the latest OpenCV versions (from maintained branches) or backport fixes yourself for your targets/needs.
Also use "search" for related issues/patches first. Fix is here: #16369

@hfy-swu
Copy link

hfy-swu commented Oct 19, 2023

maybe this method can be helpful(for opencv4.2.0 ):

 follow the error information,replace all the “ipcp-unit-growth” with “ipa-cp-unit-growth” in 3rdparty/carotene/CMakeLists.txt and 3rdparty/carotene/hal/CMakeLists.txt 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org
Projects
None yet
Development

No branches or pull requests

6 participants