internal compiler error while building VIS4ROB-lab/ccm_slam
Hello, I am trying to build a repository with (link provided below): https://github.com/VIS4ROB-lab/ccm_slam
I am trying to build this repository by the following command: (as instructed in the readme file):
catkin build ccmslam --cmake-args -DG2O_U14=0 -DCMAKE_BUILD_TYPE=Release
But I get the following error:
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/ccmslam_lib.dir/src/Frame.cpp.o] Error 4
make[2]: *** Deleting file 'CMakeFiles/ccmslam_lib.dir/src/Frame.cpp.o'
make[1]: *** [CMakeFiles/ccmslam_lib.dir/all] Error 2
make: *** [all] Error 2
cd /home/laiba/ccmslam_ws/build/ccmslam; catkin build --get-env ccmslam | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -
...............................................................................
Failed << ccmslam:make [ Exited with code 2 ]
Failed <<< ccmslam [ 1 minute and 9.4 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: 1 packages succeeded with warnings.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1 minute and 11.5 seconds total.
After trying to search online I understood that this is some memory issue, which doesn't make sense to me as I have allotted my Ubuntu partition with 100 GB of space. I even tried to do the 'swap file' solution. But even that did not build this project.
Can you please tell me what should I do, now? I am using ROS melodic, my Ubuntu version is 18.04. I am using AMD RYZEN 7 processor.