<div dir="ltr"><div class="gmail_default"><font color="#3333ff" face="courier new, monospace" size="4">When I building clang use 'VS2012 x86 Native Tools Command Prompt':</font></div><div class="gmail_default"><span style="color:rgb(51,51,255);font-family:'courier new',monospace;font-size:large"><br>

</span></div><div class="gmail_default"><div class="gmail_default"><font color="#3333ff" face="courier new, monospace" size="4">SET PATH=C:\opt\cmake-2.8\bin;%PATH%</font></div><div class="gmail_default"><font color="#3333ff" face="courier new, monospace" size="4">cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ..\llvm-3.3</font></div>

<div class="gmail_default" style><font color="#3333ff" face="courier new, monospace" size="4">nmake</font></div><div class="gmail_default" style><font color="#3333ff" face="courier new, monospace" size="4">cpack -G ZIP<br>

</font></div><div class="gmail_default" style><br></div><div class="gmail_default" style><font color="#3333ff" face="courier new, monospace" size="4">I can got 'LLVM-3.3.1-win32.zip</font><span style="color:rgb(51,51,255);font-family:'courier new',monospace;font-size:large">'</span></div>

<div class="gmail_default" style><font color="#3333ff" face="courier new, monospace" size="4"><br></font></div></div><div class="gmail_default"><span style="color:rgb(51,51,255);font-family:'courier new',monospace;font-size:large">But w</span><span style="color:rgb(51,51,255);font-family:'courier new',monospace;font-size:large">hen I building clang use</span><span style="color:rgb(51,51,255);font-family:'courier new',monospace;font-size:large">'VS2012 x64 Cross Tools Command Prompt':</span></div>

<div class="gmail_default"><span style="color:rgb(51,51,255);font-family:'courier new',monospace;font-size:large"><br></span></div><div class="gmail_default"><span style="color:rgb(51,51,255);font-family:'courier new',monospace;font-size:large">SET PATH=C:\opt\cmake-2.8\bin;%PATH%</span><span style="color:rgb(51,51,255);font-family:'courier new',monospace;font-size:large"><br>

</span></div><div class="gmail_default"><div class="gmail_default"><font color="#3333ff" face="courier new, monospace" size="4">cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ..\llvm-3.3</font></div><div class="gmail_default">

<font color="#3333ff" face="courier new, monospace" size="4">nmake VERBOSE=1</font></div><div class="gmail_default"><font color="#3333ff" face="courier new, monospace" size="4"><br></font></div><div class="gmail_default" style>

<font color="#3333ff" face="courier new, monospace" size="4">I got errors:</font></div><div class="gmail_default" style><font color="#3333ff" face="courier new, monospace" size="4"><div class="gmail_default"><br></div><div class="gmail_default">

Microsoft (R) Program Maintenance Utility Version 11.00.60315.1</div><div class="gmail_default">Copyright (C) Microsoft Corporation.  All rights reserved.</div><div class="gmail_default"><br></div><div class="gmail_default">

<span class="" style="white-space:pre">       </span>C:\opt\cmake-2.8\bin\cmake.exe -HC:\var\building\clang-3.3\llvm-3.3 -BC:\var\building\clang-3.3\llvm-vs2012-x64 --check-build-system CMakeFiles\Makefile.cmake 0</div><div class="gmail_default">

<span class="" style="white-space:pre">       </span>C:\opt\cmake-2.8\bin\cmake.exe -E cmake_progress_start C:\var\building\clang-3.3\llvm-vs2012-x64\CMakeFiles C:\var\building\clang-3.3\llvm-vs2012-x64\CMakeFiles\progress.marks</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f CMakeFiles\Makefile2 /nologo -                   all</div><div class="gmail_default">

<span class="" style="white-space:pre">       </span>"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f lib\Support\CMakeFiles\LLVMSupport.dir\build.make /nologo -L                  lib\Support\CMakeFiles\LLVMSupport.dir\depend</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>C:\opt\cmake-2.8\bin\cmake.exe -E cmake_depends "NMake Makefiles" C:\var\building\clang-3.3\llvm-3.3 C:\var\building\clang-3.3\llvm-3.3\lib\Support C:\var\building\clang-3.3\llvm-vs2012-x64 C:\var\building\clang-3.3\llvm-vs2012-x64\lib\Support C:\var\building\clang-3.3\llvm-vs2012-x64\lib\Support\CMakeFiles\LLVMSupport.dir\DependInfo.cmake --color=</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f lib\Support\CMakeFiles\LLVMSupport.dir\build.make /nologo -L                  lib\Support\CMakeFiles\LLVMSupport.dir\build</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>C:\opt\cmake-2.8\bin\cmake.exe -E cmake_progress_report C:\var\building\clang-3.3\llvm-vs2012-x64\CMakeFiles  63 64 65 66 67 68 69</div><div class="gmail_default">

[  7%] Built target LLVMSupport</div><div class="gmail_default"><span class="" style="white-space:pre">        </span>"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f lib\TableGen\CMakeFiles\LLVMTableGen.dir\build.make /nologo -L                  lib\TableGen\CMakeFiles\LLVMTableGen.dir\depend</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>C:\opt\cmake-2.8\bin\cmake.exe -E cmake_depends "NMake Makefiles" C:\var\building\clang-3.3\llvm-3.3 C:\var\building\clang-3.3\llvm-3.3\lib\TableGen C:\var\building\clang-3.3\llvm-vs2012-x64 C:\var\building\clang-3.3\llvm-vs2012-x64\lib\TableGen C:\var\building\clang-3.3\llvm-vs2012-x64\lib\TableGen\CMakeFiles\LLVMTableGen.dir\DependInfo.cmake --color=</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f lib\TableGen\CMakeFiles\LLVMTableGen.dir\build.make /nologo -L                  lib\TableGen\CMakeFiles\LLVMTableGen.dir\build</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>C:\opt\cmake-2.8\bin\cmake.exe -E cmake_progress_report C:\var\building\clang-3.3\llvm-vs2012-x64\CMakeFiles</div><div class="gmail_default">[  7%] Built target LLVMTableGen</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f utils\TableGen\CMakeFiles\llvm-tblgen.dir\build.make /nologo -L                  utils\TableGen\CMakeFiles\llvm-tblgen.dir\depend</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>C:\opt\cmake-2.8\bin\cmake.exe -E cmake_depends "NMake Makefiles" C:\var\building\clang-3.3\llvm-3.3 C:\var\building\clang-3.3\llvm-3.3\utils\TableGen C:\var\building\clang-3.3\llvm-vs2012-x64 C:\var\building\clang-3.3\llvm-vs2012-x64\utils\TableGen C:\var\building\clang-3.3\llvm-vs2012-x64\utils\TableGen\CMakeFiles\llvm-tblgen.dir\DependInfo.cmake --color=</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f utils\TableGen\CMakeFiles\llvm-tblgen.dir\build.make /nologo -L                  utils\TableGen\CMakeFiles\llvm-tblgen.dir\build</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>C:\opt\cmake-2.8\bin\cmake.exe -E cmake_progress_report C:\var\building\clang-3.3\llvm-vs2012-x64\CMakeFiles  96 97 98</div><div class="gmail_default">

[ 10%] Built target llvm-tblgen</div><div class="gmail_default"><span class="" style="white-space:pre"> </span>"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f include\llvm\IR\CMakeFiles\intrinsics_gen.dir\build.make /nologo -L                  include\llvm\IR\CMakeFiles\intrinsics_gen.dir\depend</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>C:\opt\cmake-2.8\bin\cmake.exe -E cmake_depends "NMake Makefiles" C:\var\building\clang-3.3\llvm-3.3 C:\var\building\clang-3.3\llvm-3.3\include\llvm\IR C:\var\building\clang-3.3\llvm-vs2012-x64 C:\var\building\clang-3.3\llvm-vs2012-x64\include\llvm\IR C:\var\building\clang-3.3\llvm-vs2012-x64\include\llvm\IR\CMakeFiles\intrinsics_gen.dir\DependInfo.cmake --color=</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f include\llvm\IR\CMakeFiles\intrinsics_gen.dir\build.make /nologo -L                  include\llvm\IR\CMakeFiles\intrinsics_gen.dir\build</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>C:\opt\cmake-2.8\bin\cmake.exe -E cmake_progress_report C:\var\building\clang-3.3\llvm-vs2012-x64\CMakeFiles 93</div><div class="gmail_default">[ 11%] Building Intrinsics.gen...</div>

<div class="gmail_default"><span class="" style="white-space:pre">    </span>cd C:\var\building\clang-3.3\llvm-vs2012-x64\include\llvm\IR</div><div class="gmail_default"><span class="" style="white-space:pre">       </span>..\..\..\bin\llvm-tblgen.exe -gen-intrinsic -I C:/var/building/clang-3.3/llvm-3.3/include/llvm/IR -I C:/var/building/clang-3.3/llvm-3.3/lib/Target -I C:/var/building/clang-3.3/llvm-3.3/include C:/var/building/clang-3.3/llvm-3.3/include/llvm/IR/Intrinsics.td -o C:/var/building/clang-3.3/llvm-vs2012-x64/include/llvm/IR/Intrinsics.gen.tmp</div>

<div class="gmail_default">NMAKE : fatal error U1045: spawn failed : Invalid argument</div><div class="gmail_default">Stop.</div><div class="gmail_default">NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2'</div>

<div class="gmail_default">Stop.</div><div class="gmail_default">NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2'</div><div class="gmail_default">

Stop.</div><div><br></div></font></div></div></div>