<div dir="ltr"><div>Anyone run into this before?</div><div>I'm trying to get a Windows native build using Visual Studio of LLVM, Clang, and LLD 4.0.0. So far LLVM built successfully, but I'm getting these cryptic error messages when building Clang:</div><div><br></div><div><br></div><div>  Microsoft (R) Build Engine version 15.1.1012.6693</div><div>  Copyright (C) Microsoft Corporation. All rights reserved.</div><div>  </div><div>    ClangDiagnosticsEmitter.cpp</div><div>c:\program files (x86)\microsoft visual studio\2017\community\VC\Tools\MSVC\14.10.25017\include\xmemory(126): error C2678: binary '*': no operator found which takes a left-hand operand of type 'const llvm::detail::DenseSetImpl<ValueT,llvm::DenseMap<ValueT,llvm::detail::DenseSetEmpty,ValueInfoT,llvm::detail::DenseSetPair<ValueT>>,ValueInfoT>::Iterator' (or there is no acceptable conversion) </div><div>            with</div><div>            [</div><div>                ValueT=const llvm::Record *,</div><div>                ValueInfoT=llvm::DenseMapInfo<const llvm::Record *></div><div>            ]</div><div>    C:\deps\llvm-4.0.0\include\llvm/ADT/DenseSet.h(106): note: could be 'const llvm::Record *&llvm::detail::DenseSetImpl<ValueT,llvm::DenseMap<ValueT,llvm::detail::DenseSetEmpty,ValueInfoT,llvm::detail::DenseSetPair<ValueT>>,ValueInfoT>::Iterator::operator *(void)'</div><div>            with</div><div>            [</div><div>                ValueT=const llvm::Record *,</div><div>                ValueInfoT=llvm::DenseMapInfo<const llvm::Record *></div><div>            ]</div><div>    c:\program files (x86)\microsoft visual studio\2017\community\VC\Tools\MSVC\14.10.25017\include\xmemory(126): note: while trying to match the argument list '(const llvm::detail::DenseSetImpl<ValueT,llvm::DenseMap<ValueT,llvm::detail::DenseSetEmpty,ValueInfoT,llvm::detail::DenseSetPair<ValueT>>,ValueInfoT>::Iterator)'</div><div>            with</div><div>            [</div><div>                ValueT=const llvm::Record *,</div><div>                ValueInfoT=llvm::DenseMapInfo<const llvm::Record *></div><div>            ]</div><div>    c:\program files (x86)\microsoft visual studio\2017\community\VC\Tools\MSVC\14.10.25017\include\vector(1859): note: see reference to function template instantiation '_FwdIt **std::_Uninitialized_copy<_Iter,const llvm::Record**,std::allocator<_Ty>>(_InIt,_InIt,_FwdIt,std::_Wrap_alloc<std::allocator<_Ty>> &)' being compiled</div><div>            with</div><div>            [</div><div>                _FwdIt=const llvm::Record **,</div><div>                _Iter=llvm::detail::DenseSetImpl<const llvm::Record *,llvm::DenseMap<const llvm::Record *,llvm::detail::DenseSetEmpty,llvm::DenseMapInfo<const llvm::Record *>,llvm::detail::DenseSetPair<const llvm::Record *>>,llvm::DenseMapInfo<const llvm::Record *>>::Iterator,</div><div>                _Ty=const llvm::Record *,</div><div>                _InIt=llvm::detail::DenseSetImpl<const llvm::Record *,llvm::DenseMap<const llvm::Record *,llvm::detail::DenseSetEmpty,llvm::DenseMapInfo<const llvm::Record *>,llvm::detail::DenseSetPair<const llvm::Record *>>,llvm::DenseMapInfo<const llvm::Record *>>::Iterator</div><div>            ]</div><div>    c:\program files (x86)\microsoft visual studio\2017\community\VC\Tools\MSVC\14.10.25017\include\vector(779): note: see reference to function template instantiation 'const llvm::Record **std::vector<const llvm::Record *,std::allocator<_Ty>>::_Ucopy<_Iter>(_Iter,_Iter,const llvm::Record **)' being compiled</div><div>            with</div><div>            [</div><div>                _Ty=const llvm::Record *,</div><div>                _Iter=llvm::detail::DenseSetImpl<const llvm::Record *,llvm::DenseMap<const llvm::Record *,llvm::detail::DenseSetEmpty,llvm::DenseMapInfo<const llvm::Record *>,llvm::detail::DenseSetPair<const llvm::Record *>>,llvm::DenseMapInfo<const llvm::Record *>>::Iterator</div><div>            ]</div><div>    c:\program files (x86)\microsoft visual studio\2017\community\VC\Tools\MSVC\14.10.25017\include\vector(779): note: see reference to function template instantiation 'const llvm::Record **std::vector<const llvm::Record *,std::allocator<_Ty>>::_Ucopy<_Iter>(_Iter,_Iter,const llvm::Record **)' being compiled</div><div>            with</div><div>            [</div><div>                _Ty=const llvm::Record *,</div><div>                _Iter=llvm::detail::DenseSetImpl<const llvm::Record *,llvm::DenseMap<const llvm::Record *,llvm::detail::DenseSetEmpty,llvm::DenseMapInfo<const llvm::Record *>,llvm::detail::DenseSetPair<const llvm::Record *>>,llvm::DenseMapInfo<const llvm::Record *>>::Iterator</div><div>            ]</div><div>    c:\program files (x86)\microsoft visual studio\2017\community\VC\Tools\MSVC\14.10.25017\include\vector(794): note: see reference to function template instantiation 'void std::vector<const llvm::Record *,std::allocator<_Ty>>::_Range_construct_or_tidy<_Iter>(_Iter,_Iter,std::forward_iterator_tag)' being compiled</div><div>            with</div><div>            [</div><div>                _Ty=const llvm::Record *,</div><div>                _Iter=llvm::detail::DenseSetImpl<const llvm::Record *,llvm::DenseMap<const llvm::Record *,llvm::detail::DenseSetEmpty,llvm::DenseMapInfo<const llvm::Record *>,llvm::detail::DenseSetPair<const llvm::Record *>>,llvm::DenseMapInfo<const llvm::Record *>>::Iterator</div><div>            ]</div><div>    c:\program files (x86)\microsoft visual studio\2017\community\VC\Tools\MSVC\14.10.25017\include\vector(794): note: see reference to function template instantiation 'void std::vector<const llvm::Record *,std::allocator<_Ty>>::_Range_construct_or_tidy<_Iter>(_Iter,_Iter,std::forward_iterator_tag)' being compiled</div><div>            with</div><div>            [</div><div>                _Ty=const llvm::Record *,</div><div>                _Iter=llvm::detail::DenseSetImpl<const llvm::Record *,llvm::DenseMap<const llvm::Record *,llvm::detail::DenseSetEmpty,llvm::DenseMapInfo<const llvm::Record *>,llvm::detail::DenseSetPair<const llvm::Record *>>,llvm::DenseMapInfo<const llvm::Record *>>::Iterator</div><div>            ]</div><div>    C:\Users\andy\Downloads\cfe-4.0.0.src\utils\TableGen\ClangDiagnosticsEmitter.cpp(1257): note: see reference to function template instantiation 'std::vector<const llvm::Record *,std::allocator<_Ty>>::vector<llvm::detail::DenseSetImpl<ValueT,llvm::DenseMap<ValueT,llvm::detail::DenseSetEmpty,ValueInfoT,llvm::detail::DenseSetPair<ValueT>>,ValueInfoT>::Iterator,void>(_Iter,_Iter,const std::allocator<_Ty> &)' being compiled</div><div>            with</div><div>            [</div><div>                _Ty=const llvm::Record *,</div><div>                ValueT=const llvm::Record *,</div><div>                ValueInfoT=llvm::DenseMapInfo<const llvm::Record *>,</div><div>                _Iter=llvm::detail::DenseSetImpl<const llvm::Record *,llvm::DenseMap<const llvm::Record *,llvm::detail::DenseSetEmpty,llvm::DenseMapInfo<const llvm::Record *>,llvm::detail::DenseSetPair<const llvm::Record *>>,llvm::DenseMapInfo<const llvm::Record *>>::Iterator</div><div>            ]</div><div>    C:\Users\andy\Downloads\cfe-4.0.0.src\utils\TableGen\ClangDiagnosticsEmitter.cpp(1256): note: see reference to function template instantiation 'std::vector<const llvm::Record *,std::allocator<_Ty>>::vector<llvm::detail::DenseSetImpl<ValueT,llvm::DenseMap<ValueT,llvm::detail::DenseSetEmpty,ValueInfoT,llvm::detail::DenseSetPair<ValueT>>,ValueInfoT>::Iterator,void>(_Iter,_Iter,const std::allocator<_Ty> &)' being compiled</div><div>            with</div><div>            [</div><div>                _Ty=const llvm::Record *,</div><div>                ValueT=const llvm::Record *,</div><div>                ValueInfoT=llvm::DenseMapInfo<const llvm::Record *>,</div><div>                _Iter=llvm::detail::DenseSetImpl<const llvm::Record *,llvm::DenseMap<const llvm::Record *,llvm::detail::DenseSetEmpty,llvm::DenseMapInfo<const llvm::Record *>,llvm::detail::DenseSetPair<const llvm::Record *>>,llvm::DenseMapInfo<const llvm::Record *>>::Iterator</div><div>            ]</div><div>c:\program files (x86)\microsoft visual studio\2017\community\VC\Tools\MSVC\14.10.25017\include\xmemory(126): error C2100: illegal indirection </div><div>c:\program files (x86)\microsoft visual studio\2017\community\VC\Tools\MSVC\14.10.25017\include\xmemory(126): error C2062: type 'unknown-type' unexpected </div><div>    gtest.vcxproj -> C:\Users\andy\AppData\Local\CMakeBuild\12c242dd-f206-c033-afac-74b8717657f2\build\x86-Debug\Debug\lib\gtest.lib</div><div>    gtest_main.vcxproj -> C:\Users\andy\AppData\Local\CMakeBuild\12c242dd-f206-c033-afac-74b8717657f2\build\x86-Debug\Debug\lib\gtest_main.lib</div><div>    Generating ../../bin/scan-build.bat</div><div>    Generating ../../libexec/ccc-analyzer.bat</div><div>    Generating ../../libexec/c++-analyzer.bat</div><div>    Generating ../../share/man/man1/scan-build.1</div><div>    Generating ../../share/scan-build/scanview.css</div><div>    Generating ../../share/scan-build/sorttable.js</div><div>    Generating ../../bin/scan-view</div><div>    Generating ../../share/scan-view/ScanView.py</div><div>    Generating ../../share/scan-view/Reporter.py</div><div>    Generating ../../share/scan-view/startfile.py</div><div>    Generating ../../share/scan-view/FileRadar.scpt</div><div>    Generating ../../share/scan-view/GetRadarVersion.scpt</div><div>    Generating ../../share/scan-view/bugcatcher.ico</div><div><br></div><div>Build failed.</div></div>