summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkelly-cs <likai31197@gmail.com>2022-07-20 06:16:37 -0400
committerGitHub <noreply@github.com>2022-07-20 06:16:37 -0400
commit1aca85d73a4b64e0d49780198df87cdc81b9479b (patch)
tree489d8ceea1033ce536334dc389b7fe7117ad7736
parent9743d69c7dbc92fd5abcf9c799daff89e30ca233 (diff)
downloadmongo-j1-note-for-building.tar.gz
Note (-j1) for building on memory-constrained systemsj1-note-for-building
Per https://jira.mongodb.org/browse/SERVER-68043, some users may have issues building from source on memory-constrained systems. This may manifest as an error: g++: fatal error: Killed signal terminated program cc1plus.
-rw-r--r--docs/building.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/building.md b/docs/building.md
index c37b31d5e53..751c78df2a9 100644
--- a/docs/building.md
+++ b/docs/building.md
@@ -78,6 +78,10 @@ errors. To ignore the warnings, pass the switch
$ python3 buildscripts/scons.py install-mongod --disable-warnings-as-errors
+***Note***: On memory-constrained systems, you may run into an error such as `g++: fatal error: Killed signal terminated program cc1plus`. To use less memory during building, pass the parameter `-j1` to scons. This can be incremented to `-j2`, `-j3`, and higher as appropriate to find the fastest working option on your system.
+
+ $ python3 buildscripts/scons.py install-mongod -j1
+
To install `mongod` directly to `/opt/mongo`
$ python3 buildscripts/scons.py DESTDIR=/opt/mongo install-mongod