[cfe-dev] Clang Visual Studio 2012 Errors
Reid Kleckner
rnk at google.com
Fri Nov 8 16:35:32 PST 2013
Looks like you have an out-of-date checkout of LLVM. endswith_lower was
added last week I think.
On Fri, Nov 8, 2013 at 4:19 PM, Thierry Delisle <thierry.dactil at gmail.com>wrote:
> Hello,
>
> I’m trying to build clang in Visual Studio 2012 and I’m getting multiple
> errors.
>
> When trying to build clang-test, I have multiple Intrisic::aarch64_... not
> found in CGBuiltin.cpp.
>
> 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.
>
> I followed the instruction on http://clang.llvm.org/get_started.html but
> I seem to be missing something. Anyone knows the cause of these issues and
> how to fix them?
>
> The complete output of the errors is at the end of this email.
>
> Finally, can I build clang with visuals studio and use libc++ instead of
> the MS STL implementation?
>
> Thank you for your help
>
> Thierry
>
>
>
> ==========================================================================================================
>
> ClangCodeGen output
>
>
> ==========================================================================================================
>
> 110>------ Build started: Project: FrontendTests, Configuration: Debug
> Win32 ------
>
> 110>Build started 2013-11-08 18:49:13.
>
> 110>InitializeBuildStatus:
>
> 110> Creating "FrontendTests.dir\Debug\FrontendTests.unsuccessfulbuild"
> because "AlwaysCreate" was specified.
>
> 110>CustomBuild:
>
> 110> All outputs are up-to-date.
>
> 109>InitializeBuildStatus:
>
> 109> Touching "clangCodeGen.dir\Debug\clangCodeGen.unsuccessfulbuild".
>
> 109>CustomBuild:
>
> 109> All outputs are up-to-date.
>
> 110>ClCompile:
>
> 110> FrontendActionTest.cpp
>
> 109>ClCompile:
>
> 109> CGBuiltin.cpp
>
> 109> TargetInfo.cpp
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\TargetInfo.cpp(1310):
> error C2039: 'endswith_lower' : is not a member of 'llvm::StringRef'
>
> 109>
> D:\workspace\clang-llvm\llvm\include\llvm/ADT/StringRef.h(41) : see
> declaration of 'llvm::StringRef'
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2139):
> error C2065: 'aarch64_neon_vcage' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2144):
> error C2065: 'aarch64_neon_vcagt' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2149):
> error C2065: 'aarch64_neon_vcage' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2154):
> error C2065: 'aarch64_neon_vcagt' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2232):
> error C2065: 'aarch64_neon_vshrds_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2236):
> error C2065: 'aarch64_neon_vshrdu_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2240):
> error C2065: 'aarch64_neon_vrshrds_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2244):
> error C2065: 'aarch64_neon_vrshrdu_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2248):
> error C2065: 'aarch64_neon_vsrads_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2252):
> error C2065: 'aarch64_neon_vsradu_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2256):
> error C2065: 'aarch64_neon_vrsrads_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2260):
> error C2065: 'aarch64_neon_vrsradu_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2265):
> error C2065: 'aarch64_neon_vshld_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2272):
> error C2065: 'aarch64_neon_vqshls_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2279):
> error C2065: 'aarch64_neon_vqshlu_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2286):
> error C2065: 'aarch64_neon_vqshlus_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2291):
> error C2065: 'aarch64_neon_vsrid_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2296):
> error C2065: 'aarch64_neon_vslid_n' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2336):
> error C2065: 'aarch64_neon_vcvtf32_n_s32' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2339):
> error C2065: 'aarch64_neon_vcvtf64_n_s64' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2343):
> error C2065: 'aarch64_neon_vcvtf32_n_u32' : undeclared identifier
>
> 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'
>
> 109>D:\workspace\clang-llvm\llvm\tools\clang\lib\CodeGen\CGBuiltin.cpp(2346):
> error C2065: 'aarch64_neon_vcvtf64_n_u64' : undeclared identifier
>
> 109>
>
> 109>Build FAILED.
>
>
>
>
> ==========================================================================================================
>
> CLANG test output
>
>
> ==========================================================================================================
>
> 136> Running the Clang regression tests
>
> 136> lit.py: LitConfig.py:98: note: Unable to find 'bash.exe'.
>
> 136> lit.py: <string>:187: note: using clang:
> 'D:/workspace/clang-llvm/build/bin/debug/clang.exe'
>
> 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):
>
> 136> File
> "D:\workspace\clang-llvm\llvm\utils\lit\lit\TestingConfig.py", line 91, in
> load_from_path
>
> 136> exec("exec data in cfg_globals")
>
> 136> File "<string>", line 1, in <module>
>
> 136> File "<string>", line 208, in <module>
>
> 136> File "<string>", line 196, in getClangBuiltinIncludeDir
>
> 136> File "C:\Python27\lib\subprocess.py", line 679, in __init__
>
> 136> errread, errwrite)
>
> 136> File "C:\Python27\lib\subprocess.py", line 896, in _execute_child
>
> 136> startupinfo)
>
> 136> WindowsError: [Error 2] The system cannot find the file specified
>
> 136>
>
> 136>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5):
> error MSB6006: "cmd.exe" exited with code 2.
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131108/aba17d90/attachment.html>
More information about the cfe-dev
mailing list