catkin build: Failed to build orb_slam2_ros on docker
owenwijaya177 opened this issue · 1 comments
owenwijaya177 commented
I tried to download using docker on jetson nano by using git clone on the Dockerfile and I always get this error.
[build 1:30:28.6 s] [6/7 complete] [3/4 jobs] [0 queued] [orb_slam2_ros:make (85%) - 1:30:26.9]
[build 2:25:27.1 s] [6/7 complete] [4/4 jobs] [0 queued] [orb_slam2_ros:make (91%) - 2:25:25.4]
[build 2:32:58.5 s] [6/7 complete] [4/4 jobs] [0 queued] [orb_slam2_ros:make (91%) - 2:32:56.8]
[build 2:54:27.0 s] [6/7 complete] [4/4 jobs] [0 queued] [orb_slam2_ros:make (91%) - 2:54:25.3]
[build 3:07:27.0 s] [6/7 complete] [4/4 jobs] [0 queued] [orb_slam2_ros:make (91%) - 3:07:25.3]
[build 3:09:27.2 s] [6/7 complete] [4/4 jobs] [0 queued] [orb_slam2_ros:make (91%) - 3:09:25.5]
[build 3:12:28.4 s] [6/7 complete] [4/4 jobs] [0 queued] [orb_slam2_ros:make (91%) - 3:12:26.7]
[build 3:14:10.3 s] [6/7 complete] [4/4 jobs] [0 queued] [orb_slam2_ros:make (91%) - 3:14:08.7]
[build 3:14:19.6 s] [6/7 complete] [4/4 jobs] [0 queued] [orb_slam2_ros:make (91%) - 3:14:13.3]
[build 3:17:16.3 s] [6/7 complete] [4/4 jobs] [0 queued] [orb_slam2_ros:make (91%) - 3:17:14.6]
[build 3:32:57.0 s] [6/7 complete] [4/4 jobs] [0 queued] [orb_slam2_ros:make (94%) - 3:32:55.3]
NOTICE: Could not determine the width of the terminal. A default width of 160 will be used. This warning will only be printed once.
_______________________________________________________________________________________________________________________________________________________________
Errors << orb_slam2_ros:make /code/catkin_ws/logs/orb_slam2_ros/build.make.000.log
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/orb_slam2_ros_mono.dir/build.make:63: CMakeFiles/orb_slam2_ros_mono.dir/ros/src/MonoNode.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/orb_slam2_ros_rgbd.dir/build.make:63: CMakeFiles/orb_slam2_ros_rgbd.dir/ros/src/RGBDNode.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:239: CMakeFiles/orb_slam2_ros_mono.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:211: CMakeFiles/orb_slam2_ros_rgbd.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
cd /code/catkin_ws/build/orb_slam2_ros; catkin build --get-env orb_slam2_ros | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -
...............................................................................................................................................................
Failed << orb_slam2_ros:make [ Exited with code 2 ]
Failed <<< orb_slam2_ros [ 4 hours 3 minutes and 34.8 seconds ]
[build] Summary: 6 of 7 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: No packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 4 hours 3 minutes and 36.5 seconds total.
[build] Note: Workspace packages have changed, please re-source setup files to use them.
Can anyone help me with this?
Thanks in advance
lennarthaller commented
My guess is that this is an OOM issue. Try to change the number of jobs of catkin build in the docker file to 1 (catkin build -j 1
) and rebuild.
Let me know if the issue persists.