OpenCv3.3 build is failing

asked Jan 29 '18

updated Jan 29 '18

berak gravatar image

hi everyone, I was trying to build open cv 3.3 on my raspberry pi 3 which has rasbian os installed. But my build is failing at 81 percent. please find the log bellow.

[ 81%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_detectors.cpp.o

c++: internal compiler error: Bus error (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
c++: internal compiler error: Bus error (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/build.make:62: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_detectors.cpp.o' failed
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_detectors.cpp.o] Error 4
c++: internal compiler error: Bus error (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/build.make:110: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_main.cpp.o' failed
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_main.cpp.o] Error 4
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
CMakeFiles/Makefile2:17534: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all' failed
make[1]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** Waiting for unfinished jobs....
modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/build.make:62: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_daisy.cpp.o' failed
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_daisy.cpp.o] Error 4

c++: internal compiler error: Bus error (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/build.make:86: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_latch.cpp.o' failed
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_latch.cpp.o] Error 4
CMakeFiles/Makefile2:17209: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/all' failed
make[1]: *** [modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/all] Error 2
Preview: (hide)

Comments

1

can it be, you're running out of resources ?

  • you need about 2gb of free disc space (for the temporary files, install is about 80mb)
  • try running make with less (or better, only a single) threads. less processes, less memory.
berak gravatar imageberak (Jan 29 '18)edit

sometimes it is not ressources but write error on disk too...

LBerger gravatar imageLBerger (Jan 29 '18)edit

HI ,Thanks for the response :) I am using 16 gb sd card whiuch has only rasbian os and opencv3.3.I dont think its a resource issue.

Arun@Deb gravatar imageArun@Deb (Jan 31 '18)edit

Hi, I made a Rasbian docker image for OpenCV 3.1 and 3.4. You may look the Dockerfile and OpenCV installation script. https://github.com/mohaseeb/raspberry... The images, if you want to use any https://hub.docker.com/r/mohaseeb/ras...

mohaseeb gravatar imagemohaseeb (Feb 4 '18)edit