[cfe-users] CMake fails to build Clang for Visual C++ / Windows 7 - 32-bit

Kim Gräsman kim.grasman at gmail.com
Wed May 22 04:48:42 PDT 2013


Hi Asif,

What is your Python version? You can test with

 $ python -V

LLVM/Clang runs on Python 2, so if you have Python 3 you need install
Python 2.x and put it ahead in your PATH before running CMake.

- Kim

On Wed, May 22, 2013 at 1:42 PM, asif saeed <asif.lse2 at gmail.com> wrote:
> Hi,
>
> I am a newbie wishing to use Clang. I have followed instructions here:
>
> http://clang.llvm.org/get_started.html
>
> I used "Visual Studio 11 Win32" as the value for "-G" option (as I saw
> "Visual Studio 11 Win64" option in the docs). However, whether I specify
> this option or not, I get the following error:
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> -- Constructing LLVMBuild project information
> CMake Error at CMakeLists.txt:310 (message):
>   Unexpected failure executing llvm-build: Traceback (most recent call
> last):
>
>     File "C:/llvm_clang/llvm/utils/llvm-build/llvm-build", line 3, in
> <module>
>       import llvmbuild
>     File "C:\llvm_clang\llvm\utils\llvm-build\llvmbuild\__init__.py", line
> 1, in <module>
>       from main import main
>
>   ImportError: No module named 'main'
>
>
> -- Configuring incomplete, errors occurred!
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> I am at a loss as to what this error means. I'd be thankful if you could
> help me on this. I can't wait to use the C++11 features that Clang offers.
>
> Best regards,
> -Asif
>
>
> _______________________________________________
> cfe-users mailing list
> cfe-users at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users
>




More information about the cfe-users mailing list