I'm a Windows user, and wish to run LLVM-Clang on Windows. In Visual Studio 2010, buidling was fairly straightforward via the solution file from CMake. However, there is no good document (thought I searched for an hour) how to compile LLVM with MinGW on Windows. I generated MinGW Makefile and build directories from CMake. I installed entire MinGW+MSys packages. I tried to run "make -f Makefile" in Msys command line. But, it just run another 'cmd.exe', and not working. Could you help me on this problem? Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110212/717ee11f/attachment.html>
NAKAMURA Takumi
2011-Feb-13 01:16 UTC
[LLVMdev] Compiling LLVM-Clang with MinGW on Windows
On Sun, Feb 13, 2011 at 9:58 AM, nullnull <null.function at gmail.com> wrote:> I generated MinGW Makefile and build directories from CMake. I installed > entire MinGW+MSys packages. I tried to run "make -f Makefile" in Msys > command line. But, it just run another 'cmd.exe', and not working.Why didn't you take "MSYS Makefiles" on CMake? FYI, it could be done with cmd.exe and mingw's make.exe (not MSYS's!) when you took "Mingw Makefiles" on CMake, unless %PATH% contains MSYS toolchain. ...Takumi
On 2/12/2011 6:58 PM, nullnull wrote:> I'm a Windows user, and wish to run LLVM-Clang on Windows. > In Visual Studio 2010, buidling was fairly straightforward via the > solution file from CMake. However, there is no good document (thought > I searched for an hour) how to compile LLVM with MinGW on Windows. > I generated MinGW Makefile and build directories from CMake.Ok.> I installed entire MinGW+MSys packages.That's your problem. CMake actively refuses to generate makefiles for MingW32 if any flavor of the *NIX shell sh is on your path, including the sh provided by the MingW32 project. If you regenerate the makefile, it should autodetect MSYS in such a case. If the MSYS-targeted makefiles are broken (on my slightly non-standard MingW32 install with MSYS utilities, this is due to path format issues), you should look at my workaround : http://public.kitware.com/Bug/view.php?id=7870 . I have needed this workaround for all of CMake 2.6.2, 2.6.4, and 2.8.0, and expect the workaround to be needed indefinitely due to complete and utter lack of interest in a proper patch. Kenneth
Thanks Kenneth and Takumi. The soltuion was very simple. As Takumi pointed out, all I needed to just make MSYS makefiles. On Sat, Feb 12, 2011 at 10:41 PM, Kenneth Boyd <zaimoni at zaimoni.com> wrote:> On 2/12/2011 6:58 PM, nullnull wrote: > > I'm a Windows user, and wish to run LLVM-Clang on Windows. > > In Visual Studio 2010, buidling was fairly straightforward via the > > solution file from CMake. However, there is no good document (thought > > I searched for an hour) how to compile LLVM with MinGW on Windows. > > I generated MinGW Makefile and build directories from CMake. > Ok. > > I installed entire MinGW+MSys packages. > That's your problem. CMake actively refuses to generate makefiles for > MingW32 if any flavor of the *NIX shell sh is on your path, including > the sh provided by the MingW32 project. If you regenerate the makefile, > it should autodetect MSYS in such a case. > > If the MSYS-targeted makefiles are broken (on my slightly non-standard > MingW32 install with MSYS utilities, this is due to path format issues), > you should look at my workaround : > http://public.kitware.com/Bug/view.php?id=7870 . I have needed this > workaround for all of CMake 2.6.2, 2.6.4, and 2.8.0, and expect the > workaround to be needed indefinitely due to complete and utter lack of > interest in a proper patch. > > Kenneth > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110212/921fa377/attachment.html>
Reasonably Related Threads
- [LLVMdev] Compiling LLVM-Clang with MinGW on Windows
- [LLVMdev] Possibly Vista-related Windows/MinGW Compilation Issues
- [LLVMdev] [patch] EXPORTED_SYMBOL_FILE using mingw and cmake
- [LLVMdev] Possibly Vista-related Windows/MinGW Compilation Issues
- [LLVMdev] Problems building on Msys/MingW