Hi,everyone. I am trying to build llvm on my windows10 computer, and i use the following command: cmake -G Ninja -DLLVM_ENABLE_PROJECTS=clanag ../llvm -DCMAKE_BUILD_TYPE=Release
Then i meet the following error:
That’s odd, it looks like a compilation failed but there are no errors reported in this screenshot. I wonder if you are running out of memory, although that usually causes some visible problem (such as a compiler crash due to null pointer dereference).
Compiling with gcc on Linux, my rule of thumb is about 6GB per thread. So for ninja -j10 you’d want 64GB. That said, memory problems are much more likely to show up during linking than during compilation. Without an actual error message from your build, it’s very difficult to say what might have gone wrong.