Hi all,

Can I use mingw-w64 compile LLVM and CLang 2.8 ?

C:\var\tmp\obj>cmake.exe -v -G  "MinGW Makefiles" ..\llvm-2.8
C:\var\tmp\obj>gmake
Scanning dependencies of target LLVMSystem
[  0%] Building CXX object lib/System/CMakeFiles/LLVMSystem.dir/Alarm.cpp.obj
[  0%] Building CXX object lib/System/CMakeFiles/LLVMSystem.dir/Atomic.cpp.obj
[  0%] Building CXX object
lib/System/CMakeFiles/LLVMSystem.dir/Disassembler.cpp.obj
[  1%] Building CXX object
lib/System/CMakeFiles/LLVMSystem.dir/DynamicLibrary.cpp.obj
In file included from
C:\var\tmp\llvm-2.8\lib\System\/Win32/DynamicLibrary.inc:14:0,
                 from C:\var\tmp\llvm-2.8\lib\System\DynamicLibrary.cpp:49:
C:\var\tmp\llvm-2.8\lib\System\/Win32/Win32.h:20:0: warning:
"_WIN32_WINNT" redefined
c:\gcc-4.5-w32\bin\../lib/gcc/i686-w64-mingw32/4.5.2/../../../../i686-w64-mingw32/include/_mingw.h:235:0:
note: this is the location of the previous definition
In file included from C:\var\tmp\llvm-2.8\lib\System\DynamicLibrary.cpp:49:0:
C:\var\tmp\llvm-2.8\lib\System\/Win32/DynamicLibrary.inc: In static
member function 'static bool
llvm::sys::DynamicLibrary::LoadLibraryPermanently(const char*,
std::string*)':
C:\var\tmp\llvm-2.8\lib\System\/Win32/DynamicLibrary.inc:103:64:
error: invalid conversion from 'BOOL (*)(CHAR*, llvm::ModuleBaseType,
ULONG, void*)' to 'WINBOOL (*)(const CHAR*, ULONG, ULONG, void*)'
C:\var\tmp\llvm-2.8\lib\System\/Win32/DynamicLibrary.inc: In static
member function 'static void*
llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(const char*)':
C:\var\tmp\llvm-2.8\lib\System\/Win32/DynamicLibrary.inc:158:23:
warning: ISO C++ forbids casting between pointer-to-function and
pointer-to-object
gmake[2]: *** [lib/System/CMakeFiles/LLVMSystem.dir/DynamicLibrary.cpp.obj]
Error 1
gmake[1]: *** [lib/System/CMakeFiles/LLVMSystem.dir/all] Error 2
gmake: *** [all] Error 2

--
Dongsheng

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to