Building LLVM/Clang under MinGW

Is building LLVM/Clang supposed to work under MinGW on Windows?

I get the following error:

llvm[1]: Compiling Signals.cpp for Debug build
In file included from Signals.cpp:33:
Win32/Signals.inc: In function ‘LONG LLVMUnhandledExceptionFilter(_EXCEPTION_POINTERS*)’:
Win32/Signals.inc:275: error: exception handling disabled, use -fexceptions to enable
make[1]: *** [/c/Sony/depot/SCEA_WIP/llvm/lib/System/Debug/Signals.o] Error 1
make[1]: Leaving directory `/c/Sony/depot/SCEA_WIP/llvm/lib/System’
make: *** [all] Error 1

I just installed gcc 4.4.0. Is this the correct version to use? I ran configure with no options.

-John

Hello, John

Is building LLVM/Clang supposed to work under MinGW on Windows?

Yes, however I saw some miscompilations with mingw's stable gcc
(3.4.5) for 2.6 release. 4.4.0 worked, but you need to switch it to
static libgcc, otherwise the whole process appears to be really
painful.

Win32/Signals.inc:275: error: exception handling disabled, use -fexceptions
to enable

Yeah, dunno why gcc 3.4.5 didn't show this error. You need either to
fix sources, or to enable exceptions for libsystem.