compile error on Win7 / mingw32

I tried to compile LLVM+Clang on windows7 using MinGW32[1] and get a compile error since a few revisions.
Please see attached captured output.
I dont know i found a bug or i did something wrong. ( I compiled sucessfully 1..2 weeks ago.)
Any suggestions?

Ulrich Schmidt


builderror.txt (1.71 KB)

Hi Ulrich,

If you don’t mind switching, try this mingw distribution

which is more up-to-date than the original mingw.


Hi Yaron.
I did so in the last week. I tested:
- i686-4.8.1-win32-sjlj-rt_v3-rev2
- i686-4.8.3-win32-sjlj-rt_v3-rev0
- i686-4.9.1-win32-sjlj-rt_v3-rev1

I have read the clang user manual [1] mentioning older versions of gcc no longer available at mingw-64.
Can you point me to a working mingw64 version i sould use please?
I want to build win32 programs using windows treading.

thanks in advance.


Versions 4.8.1, 4.8.2, 4.8.3, 4.9.0, 4.9.1 of mingw-builds are here

I don’t think you did anything,the error is C++ error, probably result of some revision.

Are you using the trunk code of llvm & clang?
Which gcc version produced the error?


Hi Yaron.
Thanks for your help. I successfully built llvm+clang.
I forgot to svn-update the clang subfolder in addition to llvm folder.

The make process errors out sometimes and can easily restarted. I attach my notes. May be its of some interest for you.

Thanks again.

builderror.txt (4.11 KB)

I use a short script to update svn & build.

The errors are all related to def files creation. It’s worth debugging what the problem is, if you have the time.


Shure i want to help. Send me a PM and we can talk about. :slight_smile:


It seems there is a typo in some cmake generatet batch file. (seee attached debug log fragment)

There need some slashes become replaced by backslashes. Otherwise the TYPE command fails out.

I am not famillar with cmake, so please someone other than me can do the bug fix please?.


makelog.txt (485 Bytes)

Could you file a bug with ?

I try. :slight_smile:


Hi Ulrich,

I just had time to look into the LTO def. issue.
It may result from running make under the MSYS sh.exe and be resolved when running under cmd.exe.