New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-core assembly in debian stretch #6
Comments
It probably hangs because all RAM is used. You may try Also |
Ok, ninja won't help here. But it still looks that you just have not enough RAM for concurrent build. Am I right? |
I do not have much RAM, but there is 16gb ozu.) The moment that in our market most have only 8GB of RAM and 4 cores :)) All CPU time fills the ninja in the first place. 64GB RAM is what you need?) |
4 GB of RAM should be enough for GCC (at least for Release builds). Clang usually needs only 1,5-2 GB of RAM for each file. You need to adjust job count to not use more RAM than available in the system. It is strange that modern C++ compilers are so slow and need so much RAM to compile simple source files, but it is not a library issue. |
@levlam thank |
You should not experiment with fewer cores.
Debian stretch. I have 8 cores in my car.
I did the following:
zlib from the source code https://packages.debian.org/source/stretch/zlib
apt install libssl-dev libreadline-dev ccache
other packages according to the instructions
first step:
mkdir build
cd build
cmake ..
cmake --build . (at this step I was dejected)
ctrl+c
second step
make -j 6
the virtual machine hangs. restarting the virtual machine.
third step
make -j 4
cautiously somewhere in the middle the system ceases to hang and everything is going to.
just in case cmake --build .
Do not forget about the ccache package for subsequent assemblies useful.
Then you can cmake --build .
Are we going to collect in several cores or will we wait a long time in one core according to the instructions?
The text was updated successfully, but these errors were encountered: