Closed matteogrechi closed 2 weeks ago
I'm working in WSL with 3.74GiB of RAM and 1GiB of swap (Neither I cannot add more RAM to the machine nor increase the swap partition). Whenever I try to compile the source the compiler gets killed, e.g.:
c++: fatal error: Killed signal terminated program cc1plus compilation terminated. gmake[2]: *** [src/CMakeFiles/moveit_task_constructor_core.dir/build.make:174: src/CMakeFiles/moveit_task_constructor_core.dir/storage.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:256: src/CMakeFiles/moveit_task_constructor_core.dir/all] Error 2
I checked and both the RAM and the swap gets fully saturated. My questions are:
--parallel-workers 1
Run colcon build --mixin release --parallel-workers 1
colcon build --mixin release --parallel-workers 1
Thank you very much!
Possible solution to question number 1:
Before running colcon build, set the MAKEFLAGS environment variable to j1:
j1
export MAKEFLAGS=-j1 colcon build --mixin release --parallel-workers 1
Sources:
Description
I'm working in WSL with 3.74GiB of RAM and 1GiB of swap (Neither I cannot add more RAM to the machine nor increase the swap partition). Whenever I try to compile the source the compiler gets killed, e.g.:
I checked and both the RAM and the swap gets fully saturated. My questions are:
--parallel-workers 1
it's not enough)?Environment
Steps to reproduce
Run
colcon build --mixin release --parallel-workers 1
Thank you very much!