1 | initial version |
It is not a problem related to gazebo itself, the point is that compiling (specially on several threads) C++ code requires huge amounts of RAM memory. 2Gb is not enough to have 4 threads working. If you run dmesg
you probably can see the OOM Killer killing the g++ process by the lack of memory.
Your best option is to reduce the number of compiling threads or close applications which requires RAM memory.