[cfe-users] build errors with MinGW-W64 GCC-8.1.0 on Windows
Maarten Verhage via cfe-users
cfe-users at lists.llvm.org
Sun Nov 11 12:53:08 PST 2018
Dear LLVM/clang people,
I’m new to LLVM. I used TDM-GCC toolchain with gcc version 5.1.0 before but
I want to move on getting LLVM and Clang to work on my system: Windows 7
I would like to go for a MinGW64 toolchain to build the newest version of
LLVM and clang.
I downloaded MinGW-W64 GCC-8.1.0 from here:
There I selected the x86_64-posix-seh version believing that would be the
best one. I got llvm and clang plus the llvm libc++ standard library as
suggested on the getting started webpage.
I put the mingw-w64 bin folder in my PATH.
In the llvm build folder I did:
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release ..
that completed succesfully
mingw32-make -f Makefile
It builds to 57%, then a bunch of errors:
'InitOnceExecuteOnce' was not declared in this scope
redefinition of 'bool
3) And a couple of more errors all in thread_win32.cpp.
So I think it would have been better to select the Mingw-w64
x86_64-win32-seh or even x86_64-win32-sjlj version instead?
Is a recent Mingw-w64 toolchain version like 8.1.0 a good one to build
llvm/clang? Or would an older one be more stable?
Thanks anyway for any suggestions.
More information about the cfe-users