Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
Because of un-manageable amounts of spam despite our use of CAPTCHAs, email authorization, and other tools, we have discontinued this forum (see the 700k+ registered users with validated email addresses at right?). Please email us any questions or post bug reports and feature requests on GitHub at https://github.com/jevois -- The content below remains available for future reference.

jevoisbase build problem

0 votes
i'm try to build jevois on clean ubuntu system as specified in INSTALL.

jevois build correctly.

jevoisbase, after get the latest update from git, start build but stop with this cryptic error:(

[  4%] Building CXX object CMakeFiles/jevoisbase.dir/src/Components/FilterGPU/GPUshader.C.o
[  5%] Building CXX object CMakeFiles/jevoisbase.dir/src/Components/FilterGPU/GPUtexture.C.o
[  6%] Building CXX object CMakeFiles/jevoisbase.dir/src/Components/ImageProc/SuperPixel.C.o
[  6%] Building CXX object CMakeFiles/jevoisbase.dir/src/Components/ObjectMatcher/ObjectMatcher.C.o
[  7%] Building CXX object CMakeFiles/jevoisbase.dir/src/Components/ObjectRecognition/ObjectRecognition.C.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.
CMakeFiles/jevoisbase.dir/build.make:278: recipe for target 'CMakeFiles/jevoisbase.dir/src/Components/ObjectRecognition/ObjectRecognition.C.o' failed
make[2]: *** [CMakeFiles/jevoisbase.dir/src/Components/ObjectRecognition/ObjectRecognition.C.o] Error 4
CMakeFiles/Makefile2:997: recipe for target 'CMakeFiles/jevoisbase.dir/all' failed
make[1]: *** [CMakeFiles/jevoisbase.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
asked Mar 1, 2017 in Programmer Questions by simonefalsini (180 points)

1 Answer

+1 vote
 
Best answer

This means you are running out of memory, and then the compiler crashes.

If your computer does not have much memory, then you need to also scale down on the number of parallel compilation threads. We have encountered this problem when using machines with low memory, for example a Raspberry Pi 3 host.

You need to edit the scripts rebuild-host.sh and rebuild-platform.sh in both jevois/ and in jevoisbase/ (4 scripts total). Just add a line that says:

ncpu=1

just before the line that starts the compilation and looks like:

rm -rf hbuild && mkdir hbuild && .....

You need to do this in all 4 rebuild-XXX.sh scripts.

You will notice that there is a test already in these scripts that forces ncpu=1 when the host computer is an ARM processor, assuming those will not have much memory. I guess yours is Intel but not a large amount of memory?

Another thing that may be worth trying is to add more swap space on your machine. This can be done easily by adding a swap file. See, for example, here

https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

under "the faster way".

answered Mar 1, 2017 by JeVois (46,580 points)
selected Mar 1, 2017 by simonefalsini
...