如何生成并行构建的 pdb 文件?
我们正在寻求解决使用 Visual Studio 运行多个 devenv.com 时链接/pdb 生成问题的想法2005 年。
使用 devenv.com 进行并行构建时,我们会间歇性地收到以下错误。 即,当以下内容在同一构建服务器上同时运行时:
devenv.com master.sln /build "Release|Win32"
devenv.com master.sln /build "Debug|x64"
fatal error LNK1318: Unexpected PDB error; RPC (23) '(0x000006BA)'
error C2471: cannot update program database
我们需要 pdb文件,因此关闭它们并不是一个真正的选择。 连续运行构建不会导致问题,但当然会减慢构建过程。
到目前为止发现的参考文献表明
- 文件名长度超过 256 个文件路径限制存在问题,这似乎不是我们的问题,因为我们可以单独构建,并且路径+文件名长度约为 160 个字符。
- 增量构建存在问题(但主要是在 Visual Studio 2008 中),并且我们关闭了增量链接。
如果可能的话,我们正在寻求有关解决此多进程问题的意见。
我们该如何解决呢?
We are seeking ideas on resolving a problem with linking/pdb generation when running multiple devenv.com using Visual Studio 2005.
We are getting the following intermittently errors when doing parallel builds using devenv.com.
I.e. when the following get run at the same time on the same build server:
devenv.com master.sln /build "Release|Win32"
devenv.com master.sln /build "Debug|x64"
fatal error LNK1318: Unexpected PDB error; RPC (23) '(0x000006BA)'
error C2471: cannot update program database
We want the pdb files, so turning them off isn't realy an option.
Running the builds serially doesn't cause the issue, but of course slows down the build process.
References found so far indicate
- that there are issues with length of file names exceeding the 256 file path limit, this doesn't seem to be our problem as we can build individually, and the path+filename length is around 160 chars.
- there are issues with incremental builds (but mainly in Visual Studio 2008) and we have incremental linking turned off.
We are looking for input on resolving this multiple process issue, if possible.
How do we resolve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试启用源代码并行构建。这将有效地使用服务器上的所有核心,除非解决方案中的核心数量多于源文件。以下是有关如何启用源代码并行构建的更多信息:http://vagus.wordpress.com/2008/02/15/source-level-parallel-build-in-visual-studio-2005/
Try enabling source-code parallel builds instead. That will efficiently use all cores on your server, unless you have more cores than source files in your solution. Here is more information on how you have enable source-code parallel builds: http://vagus.wordpress.com/2008/02/15/source-level-parallel-build-in-visual-studio-2005/
这可能是一个相关的问题和解决方案,因为它会产生
意外的 PDB 错误; RPC (23)“(0x000006BA)”
https ://software.intel.com/en-us/articles/unexpected-pdb-error-rpc-23-0x000006ba/
this may be a related problem&solution, because it produces
Unexpected PDB error; RPC (23) '(0x000006BA)'
https://software.intel.com/en-us/articles/unexpected-pdb-error-rpc-23-0x000006ba/