catkin build gets stuck while building mavros
I am attempting to install mavros from src following the instructions in https://github.com/mavlink/mavros/blob/master/mavros/README.md#installation
I am working on Debian/buster aarch64 and have ROS Melodic installed from source as well in a separate workspace. When I run the catkin build command to install mavros, the build gets stuck around 9% or 14% and my system stops responding. There is nothing else I can do except reboot. I tried downgrading Mavros to 0.31.0 but the behaviour is the same.
Any hints?
Asked by prashantpd on 2019-11-01 00:17:58 UTC
Answers
Have you checked whether your system is running out of memory or is spinning CPU at 100%? Seeing the mention of aarch64
this is an ARM board, probably embedded with limited resources. CMake tries to parallelise builds as much as possible and it may just be overloading your system.
Asked by gvdhoorn on 2019-11-02 08:57:53 UTC
Comments
@gvdhoorn. It was indeed a problem with the memory. Reran the command as catkin build -j1
and the build took longer but it completed. Thanks to a suggestion on gitter
Asked by prashantpd on 2019-11-03 23:33:56 UTC
Comments