From 84d5d27e6f730db506e6b229c40ef3fdc7042cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Thu, 4 Jan 2024 10:20:47 +0100 Subject: [PATCH] Additional tip for limiting number of cpus (#480) (#481) Signed-off-by: Addisu Z. Taddese Co-authored-by: Addisu Z. Taddese --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d969016..53755a5d 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. If `colcon build` fails with [this issue](https://github.com/gazebosim/ros_gz/issues/401)