<div dir="ltr">I see two interesting things in your configuration:<div>- You are passing -DCMAKE_CXX_STANDARD=17. Is there a reason for that? Using fewer options is generally more likely to result in a successful build.</div><div>- You are using MSVC build 14.23.28105. This is newer than what I am using and our bots are using. I will have to try upgrading myself.</div><div><br></div><div>This is the error in question isolated:</div><div>C:\llvm-project\clang\lib\AST\Interp\ByteCodeStmtGen.cpp(239,1): error C2872: 'Optional': ambiguous symbol [C:\llvm-project\build\tools\clang\lib\AST\obj.clangAST.vcxproj]<br>C:\llvm-project\clang\lib\AST\Interp\ByteCodeStmtGen.cpp(22,57): message : could be 'Optional = llvm::Optional<T>' [C:\llvm-project\build\tools\clang\lib\AST\obj.clangAST.vcxproj]<br></div><div><br></div><div>This ByteCodeStmtGen.cpp file is relatively new, so that could be interesting.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 30, 2019 at 10:17 AM Osman Zakir via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span>I configured with this command:</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span>"</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span>cmake ../llvm -G"Visual Studio 16 2019" -A Win32 -Thost=x64 -DLLVM_ENABLE_EH=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_CRT_RELEASE=MT -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;libcxx;libcxxabi" -DCMAKE_CXX_FLAGS="/permissive-
/D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS" -DCMAKE_CXX_STANDARD=17</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span>"</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span>and when building the target ALL_BUILD.vcxproj I redirected the output to a file. I'm attaching that file to this message. Name of the file is build.log. I'm attaching CMakeCache.txt and CMakeOutput.log for reference. </span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span><br>
</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span>Any help is appreciated. Thanks in advance.</span></div>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>