[cfe-dev] build clang failed under MSYS (windows)
asmwarrior
asmwarrior at gmail.com
Wed Dec 8 18:57:35 PST 2010
Just for a record.
For those would like to build clang under 32bit MSYS and MINGW. I
suggest you can do:
1, download a MSYS packge(which contain all the need tools) from:
http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/MSYS%20%2832-bit%29/MSYS-20101010.zip/download
2, download a MinGW package, I personal use Loaden's MinGW 4.4.5
http://code.google.com/p/qp-gcc/downloads/detail?name=mingw-static-4.4.5-all.7z&can=2&q=
But you can also use the Official mingw 4.4 or the TDM-MinGW 4.5.1
3, configure(edit) the file
msys\etc\fstab
like: (my mingw was installed under d:/mingw)
d:/mingw /mingw
F:/cb/python27 /python
So that the MSYS system can find your MinGW compiler
4, download the llvm trunk and clang trunk.
and follow the steps like (the folder named "build" was along the llvm
folder, the make option will build a release version, if you use the
default option, the output file will eat 3G of your hard disk, but in
release mode, it only eat 300M+)
cd build
../llvm/configure
make ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=1
6, happy building
more reference can be found :
http://clang.llvm.org/get_started.html
http://llvm.org/docs/GettingStarted.html#requirements
(I think the information about mingw can be updated, at least I use
mingw 4.4.5)
http://llvm.org/docs/HowToReleaseLLVM.html
asmwarrior
ollydbg from codeblocks' forum
More information about the cfe-dev
mailing list