Since Update to VS2022 17.12.3 I have many error C2471: cannot update program database

Gérald Fauvelle 0 Reputation points
2025-01-07T16:27:37.3666667+00:00

Hi,

Since I've update all my build agents with Visual Studio 2022 to version 17.12.3 (instead of 17.11.4) I see a lot of my build to fail with the same error

 149>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\ObjectArray.h(338,1): error C2471: cannot update program database |'D:\TC\work\daily\prod.dev-dev\build\msvc22-x64\A2iAAPIGUI\A2iARCGUI\A2iARCGUI.dir\Release\vc143.pdb|'|r|n

        149>C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\atlmfc\include\afx.inl(1,1): error C2471: cannot update program database |'D:\TC\work\daily\prod.dev-dev\build\msvc22-x64\A2iAAPIGUI\A2iARCGUI\A2iARCGUI.dir\Release\vc143.pdb|'|r|n

        149>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\shared\ifdef.h(1,1): error C2471: cannot update program database |'D:\TC\work\daily\prod.dev-dev\build\msvc22-x64\A2iAAPIGUI\A2iARCGUI\A2iARCGUI.dir\Release\vc143.pdb|'|r|n

        149>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_math.h(1,1): error C2471: cannot update program database |'D:\TC\work\daily\prod.dev-dev\build\msvc22-x64\A2iAAPIGUI\A2iARCGUI\A2iARCGUI.dir\Release\vc143.pdb|'|r|n

Sometimes relaunching the build helps, sometimes I need to do a full rebuild. This is happening either with a fresh sources clone and a build from scratch or an incremental build.

I'm launching the build in command line, either with msbuild or devenv, and it leads to the same errors.

This is random, I didn't find a cause of this issue.

Is there a known regression in VS2022 17.12.3 ?

Is there something I can do to avoid this error?

Thanks,

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,343 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,822 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.