Building LLVM failed on windows

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:

I want to know the reason and what can i do to fix it. Thank you!

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).

Looks like this was also filed as an issue.

hi,my bro. I wonder how much memory i need to compile it, according to my command, Thanks for your reply!

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.