[llvm-dev] errors trying to build llvm from sources using ninja on Windows 10

Hans Wennborg via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 12 04:57:23 PDT 2021

Hi Alex,

It looks like your MinGW toolchain doesn't provide std::mutex.

Maybe you need a newer MinGW version. You could also try building with
Visual Studio Build Tools (https://aka.ms/buildtools).


On Mon, Oct 11, 2021 at 11:42 PM alex toftul via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Hello, dear friends!
> I am trying to build from sources and install llvm on windows 10. Installed all the prerequisites successfully.
> Then:
> git clone https://github.com/llvm/llvm-project.git
> cd llvm-project
> mkdir build
> cd build
> cmake –G Ninja -DLLVM_ENABLE_PROJECTS=clang ../llvm
> ninja
> The output of the last command can be found in the attached .txt file.
> Could somebody help me figure out what is going on? I am absolutely new to the subject so please be understanding.
> Thanks in advance!
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

More information about the llvm-dev mailing list