<div dir="ltr">Older versions of clang/llvm relied on DIA to read PDB files on Windows. It's usually installed with Visual Studio, but perhaps you selected an option to omit it or the directory isn't in your PATH.<div><br></div><div>This page talks about where DIA was typically installed by VS 2015:</div><div><br></div><div><a href="https://docs.microsoft.com/en-us/visualstudio/debugger/debug-interface-access/getting-started-debug-interface-access-sdk?view=vs-2015">https://docs.microsoft.com/en-us/visualstudio/debugger/debug-interface-access/getting-started-debug-interface-access-sdk?view=vs-2015</a></div><div><br></div><div>If it's there, then you probably just need to add it to your PATH. (Using a Visual Studio command prompt or invoking the vcvarsall.bat file is a pretty reliable way to make sure everything for VS is set up in your environment.)</div><div><br></div><div>If DIA is not there, you might want to spin up your VS installer and see if there's an option to install it.<br><div><br></div><div>LLVM has a "native" PDB reader that tools can use instead of relying on DIA, but I don't remember how well that worked in LLVM 6 (if at all). Most tools now default to the native reader, but for transitional versions, some tools had a command line option to select the native PDB reader. All (almost all?) of them also checked for an environment variable: LLDB_USE_NATIVE_PDB_READER=TRUE</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 18, 2021 at 10:14 AM Concept kulkarni 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="auto"><span style="font-family:sans-serif;font-size:12.8px">Hi Team,</span><div dir="auto" style="font-family:sans-serif;font-size:12.8px"> I am getting an following error while preprocessing a file.</div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">LLVMSymbolizer: error while reading file: PDB Error: DIA is not installed on the system.</div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">The details of the error are shown in the attached screenshot.</div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">I am using clang 6.0.1 ,Microsoft visual studio 2015 update 3, and windows 10 operating system.</div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">Please let me know how to proceed.</div><div dir="auto" style="font-family:sans-serif;font-size:12.8px"><br></div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">Thanks and Regards </div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">Sudhindra Kulkarni</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>