[cfe-dev] Visual Studio 2008 compiling errors
Victor Martin Ulloa
pelotoescogorciao at yahoo.es
Thu Nov 5 12:18:10 PST 2009
I followed the clang instructions in http://clang.llvm.org/get_started.html for VS:
# Checkout LLVM:
* svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
# Checkout Clang:
* cd llvm\tools
* svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
# Run cmake to generate the Visual Studio solution and project files:
* cd .. (Change directory back to the llvm top.)
* cmake .
* The above, if successful, will have created an LLVM.sln file in the llvm directory.
# Build Clang:
* Open LLVM.sln in Visual Studio.
* Build the "clang-cc" project for just the compiler front end.
but I got some errors after compiling the LLVM.sln clang-cc project....
Code: Select all
.\RWMutex.cpp(39) : fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
.\raw_ostream.cpp(28) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
.\Errno.cpp(51) : error C3861: 'strerror_r': identifier not found
.\Atomic.cpp(49) : error C2664: 'InterlockedCompareExchange' : cannot convert parameter 1 from 'volatile llvm::sys::cas_flag *' to 'volatile LONG *'
.\IsNAN.cpp(31) : error C3861: 'isnan': identifier not found
It seems there's no way to compile the clang-cc.exe from the source code for Windows/VS2008 ...
More information about the cfe-dev
mailing list