Ask Your Question
1

[100%]Built target gen_opencv_python2 then stuck

asked 2017-09-25 21:36:59 -0600

Thomaswang gravatar image

updated 2017-09-26 00:44:23 -0600

berak gravatar image

Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2 /cv2.cpp.o

c++: internal compiler error: Killed (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/python2/CMakeFiles/opencv_python2.dir/build.make:324: recipe for target       'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] E      rror 4
CMakeFiles/Makefile2:14946: recipe for target 'modules/python2/CMakeFiles/opencv      _python2.dir/all' failed
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
edit retag flag offensive close merge delete

Comments

you're either running out of memory, or diskspace

berak gravatar imageberak ( 2017-09-26 01:06:28 -0600 )edit

how can i resolve this problem?thanks

Thomaswang gravatar imageThomaswang ( 2017-09-26 06:30:06 -0600 )edit

if it's memory, try to run make -j1 (only a single thread)

berak gravatar imageberak ( 2017-09-26 07:03:49 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2017-09-27 07:49:07 -0600

Thomaswang gravatar image

updated 2017-09-27 07:49:56 -0600

I try to command: 1.free 2.dd if=/dev/zero of=/var/swap.img bs=1024k count=1000 3.mkswap /var/swap.img 4.swapon /var/swap.img 5.free finally,it works,thanks so much

edit flag offensive delete link more

Comments

thank you, this fixed my issue

oonyalo gravatar imageoonyalo ( 2018-06-03 10:25:48 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-09-25 21:36:59 -0600

Seen: 8,198 times

Last updated: Sep 26 '17