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

asif saeed asif.lse2 at gmail.com
Wed May 22 04:42:21 PDT 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20130522/51cb48ab/attachment.html>


More information about the cfe-users mailing list