Hi all, When I try to build llvm on windows/mingw32, I get the following error: In file included from c:/work/mingw/src/llvm/lib/System/Signals.cpp:33: c:/work/mingw/src/llvm/lib/System/Win32/Signals.inc: In function 'LONG LLVMUnhandledExceptionFilter(_EXCEPTION_POINTERS*)': c:/work/mingw/src/llvm/lib/System/Win32/Signals.inc:275: error: exception handling disabled, use -fexceptions to enable make[1]: *** [/c/work/mingw/src/build.llvm/lib/System/Release/Signals.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/c/work/mingw/src/build.llvm/lib/System' Thanks, Ronald
Wow, I also meet this error before, I'll be pleasure if anyone can solve this problem, and by the way, are you using msys as the building env? It's seems that mingw/cmake is working but mingw/msys, and I didn't ever try with mingw/cygwin:) thanks. 2009/10/1, Ronald Pijnacker <pijnacker at dse.nl>:> Hi all, > > When I try to build llvm on windows/mingw32, I get the following error: > > In file included from c:/work/mingw/src/llvm/lib/System/Signals.cpp:33: > c:/work/mingw/src/llvm/lib/System/Win32/Signals.inc: In function 'LONG > LLVMUnhandledExceptionFilter(_EXCEPTION_POINTERS*)': > c:/work/mingw/src/llvm/lib/System/Win32/Signals.inc:275: error: exception > handling disabled, use -fexceptions to enable > make[1]: *** [/c/work/mingw/src/build.llvm/lib/System/Release/Signals.o] > Error 1 > make[1]: *** Waiting for unfinished jobs.... > make[1]: Leaving directory `/c/work/mingw/src/build.llvm/lib/System' > > Thanks, > > Ronald > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-- 从我的移动设备发送 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo
Well, Now I get the solution. Please, someone can apply the patch. Just modify the makefile resident in lib/System But, a new error is appeared llvm[2]: Linking Debug unit test ADT d:/objs/llvm/msys/Debug/lib/libLLVMSystem.a(Process.o):e:/Downloads/llvm-trunk/lib/System/Win32/Process.inc:78: undefined reference to `GetProcessMemoryInfo at 12' collect2: ld returned 1 exit status make[2]: *** [Debug/ADTTests.exe] Error 1 make[2]: Leaving directory `/d/objs/llvm/msys/unittests/ADT' make[1]: *** [ADT/.makeall] Error 2 make[1]: Leaving directory `/d/objs/llvm/msys/unittests' make: *** [all] Error 1 I don't know why, And Pijnacker, do you get the same error? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091002/04cc4be6/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: path-for-msys.patch Type: application/octet-stream Size: 317 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091002/04cc4be6/attachment.obj>