2014-03-17 11:19 GMT+01:00 Etienne Sandré-Chardonnal <[email protected]
>:
> Dear all,
>
> I'm trying to build LLVM with 64-bit mingw.
> I use a MinGW build from ruben :
> [...]/gcc-4.8-release/x86_64-w64-mingw32-gcc-4.8.0-win64_rubenvb.7z
>
>
> LLVM is configured with:
> ./configure --disable-threads --prefix=/mingw/x86_64-w64-mingw32
> --enable-targets=x86,x86_64 --host=x86_64-w64-mingw32
>
> LLVM 3.4 compiles without issue, but I cannot manage to link with the libs.
> The errors look like:
> DynamicLibrary.cpp:-1: error: undefined reference to
> `__imp_EnumerateLoadedModules64'
> I have searched and found that a bug was filed short after the release :
> http://comments.gmane.org/gmane.comp.compilers.llvm.bugs/27463
> So I tried with LLVM 3.3
>
>
> LLVM 3.3 does not compile and issues errors such as:
> [...]/llvm-3.3/Release+Asserts/lib/libLLVMMCJIT.a(SectionMemoryManager.o):SectionMemoryManager.cpp:(.text+0x3b):
> undefined reference to `__register_frame'
> [...]/llvm-3.3/Release+Asserts/lib/libLLVMJIT.a(JIT.o
> ):JIT.cpp:(.text+0x65df): undefined reference to `__register_frame'
> [...]/llvm-3.3/Release+Asserts/lib/libLLVMJIT.a(JIT.o
> ):JIT.cpp:(.text+0x65f0): undefined reference to `__deregister_frame'
>
LLVM still assumes SJLJ or DW2 exception handling, and does not bother to
check this at configure time. Well, the reason is that someone hasn't
written a simple test for that and implemented the proper #ifdef stuff.
So you can just use this patch:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120924/151822.html
Problem with the patch is that it also affects non-seh 64-bit GCC's, so
only use it when you are building with GCC 4.8+ with seh.
Cheers,
Ruben
>
> Did someone manage to build LLVM with mingw?
>
> Thanks in advance,
>
> Etienne
>
>
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public