From e348e3be89a871e3d8388e79682da173ff743dc3 Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Wed, 3 Jan 2024 12:23:32 -0600 Subject: [PATCH] Additional tip for limiting number of cpus (#480) Signed-off-by: Addisu Z. Taddese --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ae04f5e..3e0b5137 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,8 @@ The following steps are for Linux and OSX. ``` > [!TIP] > The `ros_gz` library makes heavy use of templates which causes compilers to consume a lot of memory. If your build fails with `c++: fatal error: Killed signal terminated program cc1plus` - > try building with `colcon build --parallel-workers=1 --executor sequential`. + > try building with `colcon build --parallel-workers=1 --executor sequential`. You might also have to set `export MAKEFLAGS="-j 1"` before running `colcon build` to limit + > the number of processors used to build a single package. ## ROSCon 2022