Adrian McCarthy via llvm-dev
2020-Dec-08 19:17 UTC
[llvm-dev] Ninja hangs when I try to build
The program database manager is a separate process VS uses to compile debug info into a PDB. The error happens when it's trying to update a PDB that was created (or last modified) by a newer version of the PDB manager. https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1902?view=msvc-160 I suspect you have more than one version of VS installed. I would close all instances of Visual Studio, check your environment to ensure that your build is set up to use the specific version you're expecting, and make sure there are no lingering processes running mspdbsrv.exe, and then try again. If the problem recurs after that, I'd repeat but also delete the PDB files in question and force the compiler to rebuild them from scratch. On Tue, Dec 8, 2020 at 10:13 AM Paul C. Anagnostopoulos via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I tried my first build after switching to origin main. I did the switch by > renaming my master branch and then pointing it at origin main. > > I just tried to build llvm-tblgen. It fails building > RandomNumberGenerator.cpp.obj with "C1902: Program database manager > mismatch; please check your installation" Then it hangs; Ctrl+C does > nothing. > > I killed the window and started it up again. This time I tried a full > build. It hangs building DebugCounter.cpp.obj. > > I'm running Visual Studio 2019 on Windows 7. Has anyone else seen this? > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201208/e0a43bff/attachment.html>
Paul C. Anagnostopoulos via llvm-dev
2020-Dec-08 21:13 UTC
[llvm-dev] Ninja hangs when I try to build
Thank you! I killed mspdbsrv and things got much further. Now I'm getting the usual message about switching from the 32-bit to the 64-bit linker, and then an "Unexpected PDB error; RPC (23)" message. This has been going on for awhile. Is there an easy way to turn off PDB creation? At 12/8/2020 02:17 PM, Adrian McCarthy wrote:>The program database manager is a separate process VS uses to compile debug info into a PDB. The error happens when it's trying to update a PDB that was created (or last modified) by a newer version of the PDB manager. > ><https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1902?view=msvc-160>https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1902?view=msvc-160 > >I suspect you have more than one version of VS installed. > >I would close all instances of Visual Studio, check your environment to ensure that your build is set up to use the specific version you're expecting, and make sure there are no lingering processes running mspdbsrv.exe, and then try again. If the problem recurs after that, I'd repeat but also delete the PDB files in question and force the compiler to rebuild them from scratch.