[LLVMdev] Problems building on Msys/MingW

Kenneth Boyd zaimoni at zaimoni.com
Wed Aug 5 17:36:40 PDT 2009


John Thompson wrote:
> Hi,
>  
> I'm trying to build clang under MingW, but I'm getting a number of 
> errors.  Could anyone provide some hints as to what you had to do?  I 
> got some tips from 
> http://blogs.tedneward.com/2008/02/24/Building+LLVM+On+Windows+Using+MinGW32.aspx, 
> but using the newer packages, as it's a bit old.
>  
> The ./configure seems to run without errors.
>  
> The first run of make aborts with errors like:
>  
> make[1]: Entering directory `/home/llvm/tools/llvm-config'
> llvm[1]: Regenerating LibDeps.txt.tmp
> 'c:' is not recognized as an internal or external command,
> operable program or batch file.
> nm failed at C:/msys/1.0/home/llvm/utils/GenLibDeps.pl line 120.
> make[1]: *** [/home/llvm/tools/llvm-config/LibDeps.txt.tmp] Error 255
> make[1]: Leaving directory `/home/llvm/tools/llvm-config'
> make: *** [all] Error 1
>
>  
> So it seemed like something in the llvm-config directory, so I ran 
> "make clean all" directly in llvm/tools/llvm-config, but had no error.
>  
> Running make again at the llvm directory yielded different errors this 
> time:
>
Ok, sounds like a different problem than the one I have to patch around 
(stock LLVM always dies on me with the cited error message, problem is 
cmd.exe command shell from using ActivePerl; you got past that).  Which 
distribution of Perl are you using?

Kenneth




More information about the llvm-dev mailing list