http://manpages.org/ninja
-j N
run N jobs in parallel [default=derived from CPUs available]
How to reduce that number, to avoid such high memory usage?
I tried to pass -j 1 to emerge command
https://dev.gentoo.org/~zmedico/portage ... rge.1.html
j [JOBS], --jobs[=JOBS]
Specifies the number of packages to build simultaneously. If this option is given without an argument, emerge will not limit the number of jobs that can run simultaneously. Also see the related --load-average option. Similarly to the --quiet-build option, the --jobs option causes all build output to be redirected to logs. Note that interactive packages currently force a setting of --jobs=1. This issue can be temporarily avoided by specifying --accept-properties=-interactive.
but ebuild doesn't respect it.
Code: Select all
...
>>> Working in BUILD_DIR: "/var/tmp/portage/games-strategy/freeorion-0.4.8_p20190501/work/freeorion-0.4.8_p20190501_build"
ninja -v -j16 -l0
[1/268] /usr/bin/x86_64-pc-linux-gnu-g++ -DBINPATH=\"/usr/bin\" -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DBOOST_GIL_IO_ENABLE_GRAY_ALPHA -DBOOST_LOG_DYN_LINK -DBOOST_LOG_NO_LIB -DENABLE_BINRELOC -DFONS_USE_FREETYPE -DFREEORION_LINUX -DGiGi_EXPORTS -DSHAREPATH=\"/usr/share\" -I/var/tmp/portage/games-strategy/freeorion-0.4.8_p20190501/work/freeorion-2a49c05796f1c92b96ce9b2aeaf0124fc8be7a77/GG -IGG -isystem /usr/include/freetype2 -DNDEBUG -O2 -g1 -march=x86-64 -pipe -fPIC -Wall -std=c++11 -MD -MT GG/CMakeFiles/GiGi.dir/src/RichText/BlockControl.cpp.o -MF GG/CMakeFiles/GiGi.dir/src/RichText/BlockControl.cpp.o.d -o GG/CMakeFiles/GiGi.dir/src/RichText/BlockControl.cpp.o -c /var/tmp/portage/games-strategy/freeorion-0.4.8_p20190501/work/freeorion-2a49c05796f1c92b96ce9b2aeaf0124fc8be7a77/GG/src/RichText/BlockControl.cpp
contain a broken link under the words "check out the the make jobs parameter of make."
The instruction at
https://www.freeorion.org/index.php/Compile
https://www.freeorion.org/index.php/Compile_In_Linux
doesn't describe the ninja.
which file to patch before compilation, and how to do that in gentoo?