<div dir="ltr"><p class="MsoNormal"><span lang="EN-CA">Hello,</span></p>
<p class="MsoNormal"><span lang="EN-CA">I’m trying
to build clang in Visual Studio 2012 and I’m getting multiple errors.</span></p>
<p class="MsoNormal"><span lang="EN-CA">When trying
to build clang-test, I have multiple Intrisic::aarch64_... not found in
CGBuiltin.cpp.</span></p>
<p class="MsoNormal"><span lang="EN-CA">Also when
the test start I have an error saying bash.exe is not found. I’m not sure if
these are different errors or two symptoms of the same problem.</span></p>
<p class="MsoNormal"><span lang="EN-CA">I followed
the instruction on </span><a href="http://clang.llvm.org/get_started.html"><span lang="EN-CA">http://clang.llvm.org/get_started.html</span></a><span lang="EN-CA"> but I seem to be missing something.
Anyone knows the cause of these issues and how to fix them?</span></p>
<p class="MsoNormal"><span lang="EN-CA">The
complete output of the errors is at the end of this email.</span></p>
<p class="MsoNormal"><span lang="EN-CA">Finally,
can I build clang with visuals studio and use libc++ instead of the MS STL
implementation?</span></p>
<p class="MsoNormal"><span lang="EN-CA">Thank you
for your help</span></p>
<p class="MsoNormal"><span lang="EN-CA">Thierry</span></p><p class="MsoNormal"><span lang="EN-CA"><br></span></p><p class="MsoNormal"><span lang="EN-CA">==========================================================================================================<br>
</span></p><p class="MsoNormal"><span lang="EN-CA">ClangCodeGen output</span></p><p class="MsoNormal"><span lang="EN-CA">==========================================================================================================<br>
</span></p><p class="MsoNormal">110>------ Build started: Project: FrontendTests, Configuration: Debug Win32 ------</p><p class="MsoNormal">110>Build started 2013-11-08 18:49:13.</p><p class="MsoNormal">110>InitializeBuildStatus:</p>
<p class="MsoNormal">110> Creating "FrontendTests.dir\Debug\FrontendTests.unsuccessfulbuild" because "AlwaysCreate" was specified.</p><p class="MsoNormal">110>CustomBuild:</p><p class="MsoNormal">
110> All outputs are up-to-date.</p><p class="MsoNormal">109>InitializeBuildStatus:</p><p class="MsoNormal">109> Touching "clangCodeGen.dir\Debug\clangCodeGen.unsuccessfulbuild".</p><p class="MsoNormal">
109>CustomBuild:</p><p class="MsoNormal">109> All outputs are up-to-date.</p><p class="MsoNormal">110>ClCompile:</p><p class="MsoNormal">110> FrontendActionTest.cpp</p><p class="MsoNormal">109>ClCompile:</p>
<p class="MsoNormal">109> CGBuiltin.cpp</p><p class="MsoNormal">109> TargetInfo.cpp</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\TargetInfo.cpp(1310): error C2039: 'endswith_lower' : is not a member of 'llvm::StringRef'</p>
<p class="MsoNormal">109> D:\workspace\clang-llvm\llvm\include\llvm/ADT/StringRef.h(41) : see declaration of 'llvm::StringRef'</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2139): error C2039: 'aarch64_neon_vcage' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2139): error C2065: 'aarch64_neon_vcage' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2144): error C2039: 'aarch64_neon_vcagt' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2144): error C2065: 'aarch64_neon_vcagt' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2149): error C2039: 'aarch64_neon_vcage' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2149): error C2065: 'aarch64_neon_vcage' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2154): error C2039: 'aarch64_neon_vcagt' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2154): error C2065: 'aarch64_neon_vcagt' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2232): error C2039: 'aarch64_neon_vshrds_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2232): error C2065: 'aarch64_neon_vshrds_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2236): error C2039: 'aarch64_neon_vshrdu_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2236): error C2065: 'aarch64_neon_vshrdu_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2240): error C2039: 'aarch64_neon_vrshrds_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2240): error C2065: 'aarch64_neon_vrshrds_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2244): error C2039: 'aarch64_neon_vrshrdu_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2244): error C2065: 'aarch64_neon_vrshrdu_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2248): error C2039: 'aarch64_neon_vsrads_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2248): error C2065: 'aarch64_neon_vsrads_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2252): error C2039: 'aarch64_neon_vsradu_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2252): error C2065: 'aarch64_neon_vsradu_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2256): error C2039: 'aarch64_neon_vrsrads_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2256): error C2065: 'aarch64_neon_vrsrads_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2260): error C2039: 'aarch64_neon_vrsradu_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2260): error C2065: 'aarch64_neon_vrsradu_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2265): error C2039: 'aarch64_neon_vshld_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2265): error C2065: 'aarch64_neon_vshld_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2272): error C2039: 'aarch64_neon_vqshls_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2272): error C2065: 'aarch64_neon_vqshls_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2279): error C2039: 'aarch64_neon_vqshlu_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2279): error C2065: 'aarch64_neon_vqshlu_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2286): error C2039: 'aarch64_neon_vqshlus_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2286): error C2065: 'aarch64_neon_vqshlus_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2291): error C2039: 'aarch64_neon_vsrid_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2291): error C2065: 'aarch64_neon_vsrid_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2296): error C2039: 'aarch64_neon_vslid_n' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2296): error C2065: 'aarch64_neon_vslid_n' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2336): error C2039: 'aarch64_neon_vcvtf32_n_s32' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2336): error C2065: 'aarch64_neon_vcvtf32_n_s32' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2339): error C2039: 'aarch64_neon_vcvtf64_n_s64' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2339): error C2065: 'aarch64_neon_vcvtf64_n_s64' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2343): error C2039: 'aarch64_neon_vcvtf32_n_u32' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2343): error C2065: 'aarch64_neon_vcvtf32_n_u32' : undeclared identifier</p><p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2346): error C2039: 'aarch64_neon_vcvtf64_n_u64' : is not a member of 'llvm::Intrinsic'</p>
<p class="MsoNormal">109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2346): error C2065: 'aarch64_neon_vcvtf64_n_u64' : undeclared identifier</p><p class="MsoNormal">109></p><p class="MsoNormal">
<span lang="EN-CA"></span></p><p class="MsoNormal">109>Build FAILED.</p><p class="MsoNormal"><span lang="EN-CA"><br></span></p><p class="MsoNormal"><span lang="EN-CA"><br></span></p><p class="MsoNormal"><span lang="EN-CA">==========================================================================================================</span></p>
<p class="MsoNormal"><span lang="EN-CA">CLANG test output</span></p><p class="MsoNormal"><span lang="EN-CA">==========================================================================================================</span></p>
<p class="MsoNormal">136> Running the Clang regression tests</p><p class="MsoNormal">136> lit.py: LitConfig.py:98: note: Unable to find 'bash.exe'.</p><p class="MsoNormal">136> lit.py: <string>:187: note: using clang: 'D:/workspace/clang-llvm/build/bin/debug/clang.exe'</p>
<p class="MsoNormal">136> lit.py: TestingConfig.py:106: fatal: unable to parse config file 'D:/workspace/clang-llvm/llvm/tools/clang/test/../test/lit.cfg', traceback: Traceback (most recent call last):</p><p class="MsoNormal">
136> File "D:\workspace\clang-llvm\llvm\utils\lit\lit\TestingConfig.py", line 91, in load_from_path</p><p class="MsoNormal">136> exec("exec data in cfg_globals")</p><p class="MsoNormal">136> File "<string>", line 1, in <module></p>
<p class="MsoNormal">136> File "<string>", line 208, in <module></p><p class="MsoNormal">136> File "<string>", line 196, in getClangBuiltinIncludeDir</p><p class="MsoNormal">
136> File "C:\Python27\lib\subprocess.py", line 679, in __init__</p><p class="MsoNormal">136> errread, errwrite)</p><p class="MsoNormal">136> File "C:\Python27\lib\subprocess.py", line 896, in _execute_child</p>
<p class="MsoNormal">136> startupinfo)</p><p class="MsoNormal">136> WindowsError: [Error 2] The system cannot find the file specified</p><p class="MsoNormal">136> </p><p class="MsoNormal"><span lang="EN-CA"></span></p>
<p class="MsoNormal">136>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code 2.</p><p class="MsoNormal"><span lang="EN-CA"><br>
</span></p><p class="MsoNormal"><span lang="EN-CA"><br></span></p></div>