I managed to build clang on mingw/msys today.
Running configure, make install worked for both debug and optimized builds in general. However there were a few hitches along the way. Make would fail with:
ln: creating symbolic link
/d/super/dump/code/llvm/llvm-project/llvm/build.clang/Release+Asserts/bin/clang++.exe' to
clang.exe’: No such file or directory
ln: creating symbolic link/usr/local/bin/clang++.exe' to
clang.exe’: No such file or directory
And similar errors. Running make with the -i argument finished the build, and I manually created the links. I don’t think there were any other problems in the build, and
I changed InitHeaderSearch.cpp as instructed for clang to locate the header files.
clang managed to build my large (personal) project, forcing me to fix some syntax errors gcc allowed.
Linking ran into a single multiple definition error:
d:/super/dump/mingw/mingw/bin/…/lib/gcc/mingw32/4.4.0/libstdc++.a(tinfo.o):C:\MinGW\src\gccbf\mingw32\libstdc+±v3\libsupc++/…/…/…/…/gcc-4.4.0/libstdc+±v3/libsupc++/tinfo.cc:40: multiple definition of `std::type_info::operator==(std::type_info const&) const’
objs/test/LoadSave.o:fake:(.text$ZNKSt9type_infoeqERKS[std::type_info::operator==(std::type_info const&) const]+0x0): first defined here
This seemed to be defined in the libstdc++, and also in each of my Translation Units.
I used gcc version 4.4.0 (GCC) and GNU Make 3.81