1

我目前正在尝试运行 Coverity Prevent,并且我相信我已经在我的 Windows 7 构建机器上正确设置了所有内容。我已经用 AnthillPro 运行它,当我的代码完成并到达 Coverity 时,它说一切都构建得很好,我得到的唯一错误是:

Warning: Cygwin pathname conversion ignored; no applicable
         'bash'/'mount', 'cygpath', or registry keys found.

我什至尝试安装 Cygwin 看看这是否可以解决问题,但我仍然遇到同样的错误。


我目前正在使用 AnthillPro 3.7 和 Coverity 5.5.3。构建日志说我有警告但没有错误,并且它没有发出任何东西。我试图直接从机器(而不是服务器)本身运行脚本,但我遇到了与在 Anthill 中使用 Coverity Prevent 相同的错误

这是我在构建日志底部获得的唯一信息。

Run from AnthillPro:
Build time (cov-build overall): 00:00:17.753597

[WARNING] No files were emitted. This may be due to a problem with your configuration
or because no files were actually compiled by your build command.
Please make sure you have configured the compilers actually used in the compilation.
For more details, please look at: 
  d:\Coverity\Intermediate\AllToolsProjects.sln_pc_vs2010\build-log.txt


Run from Script:
  The cov-build FAILED.

This may be because less than 90 percent of units were successfully compiled
Check for errors here:

  D:\\Coverity\Scripts\build_AllToolsProjects.sln_pc_vs2010.bat
  D:\\Coverity\Intermediate\AllToolsProjects.sln_pc_vs2010\build-log.txt
  D:\\Coverity\Configuration\pc_vs2010
4

1 回答 1

1

听起来您还没有配置编译器 - 那是您告诉您的 Coverity Analysis 安装您正在使用哪个编译器。 devenv不是编译器,cl.exe是。

运行以下命令:

coverity-analysis-dir/bin/cov-configure --msvc

这将表示您正在使用cl.exe编译器,并且msvc无论它安装在哪里,它都是类型。

然后重新运行 Coverity 构建,看看它是否捕获了更多的编译。

于 2012-04-25T20:23:37.577 回答