From 8b2599153785a43836f4030c727b1aeeca1de6e1 Mon Sep 17 00:00:00 2001 From: Floris Bos Date: Sat, 27 Nov 2021 19:11:09 +0100 Subject: [PATCH] README.md: mention disabling parallel build on Pi On bullseye it seems to default to 'make -j4' which will results in OOM when it runs out of swap == [ 3004.100215] Out of memory: Killed process 6983 (cc1plus) total-vm:211660kB, anon-rss:170332kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:428kB oom_score_adj:0 == Mention how to disable parallel build in README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d3675b4..da60f6b 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,14 @@ sudo apt install --no-install-recommends build-essential devscripts debhelper cm git clone --depth 1 https://github.com/raspberrypi/rpi-imager ``` +#### Building on the Pi + +If building on a device with limited memory (e.g. 1 GB Pi), disable parallel build or it may run out of memory: + +``` +export DEB_BUILD_OPTIONS="parallel=1" +``` + #### Build the Debian package ```