[JIRA] (JENKINS-38603) Coverity Plugin 1.8.0 fails on cov-analyze - intermediate directory contains no translation units

226 views
Skip to first unread message

jwstric2@gmail.com (JIRA)

unread,
Sep 29, 2016, 8:42:01 AM9/29/16
to jenkinsc...@googlegroups.com
Jonathan Strickland created an issue
 
Jenkins / Bug JENKINS-38603
Coverity Plugin 1.8.0 fails on cov-analyze - intermediate directory contains no translation units
Issue Type: Bug Bug
Assignee: Ken Dang
Components: coverity-plugin
Created: 2016/Sep/29 12:41 PM
Environment: Jenkins Core - 1.656
Coverity Plugin - 1.8.0
Slave node (Centos 7) runs all builds (No builds on master)
Priority: Critical Critical
Reporter: Jonathan Strickland

[pr-static-analysis] $ /opt/cisco/trust/coverity-analysis/bin/cov-analyze --dir /home/lab1/workspace/pr-static-analysis/coverity -all --enable-constraint-fpp --paths 5000
Coverity Static Analysis version 8.1.0 on Linux 3.10.0-327.18.2.el7.x86_64 x86_64
Internal version numbers: 5511032c07 p-jasper1-push-24789.298.98

Using 10 workers as limited by CPU(s)
Looking for translation units
Error: intermediate directory contains no translation units.
[Coverity] /opt/cisco/trust/coverity-analysis/bin/cov-analyze returned 2, aborting...
Build step 'Coverity' changed build result to FAILURE
Finished: FAILURE

This code works with 1.7.1.

We started investigating a bit and found a change which I was evaluating to possibly causing the issues. In 1.7.1, https://github.com/jenkinsci/coverity-plugin/blob/coverity-1.7.1/src/main/java/jenkins/plugins/coverity/CoverityLauncherDecorator.java#L227, and this works. In 1.8.0, https://github.com/jenkinsci/coverity-plugin/blob/be3051fbc6f5960917d05db7e40030396565bc37/src/main/java/jenkins/plugins/coverity/CoverityLauncherDecorator.java#L225 .. We are not sure exactly what if anything this may be evaluating to, need to dig deeper but it makes since if this isn't in the env that the build dir isn't getting evaluated properly, thus nothing to analyze at the end.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

mwald@visteon.com (JIRA)

unread,
Oct 4, 2016, 5:08:01 AM10/4/16
to jenkinsc...@googlegroups.com
Marius Wald commented on Bug JENKINS-38603
 
Re: Coverity Plugin 1.8.0 fails on cov-analyze - intermediate directory contains no translation units

After activating "Use advanced parsing mechanism" "$COV_IDIR" seems to be resolved.
You can try that as a workaround. It does not seem to work if you also use Xvfb.

jwstric2@gmail.com (JIRA)

unread,
Oct 28, 2016, 2:22:02 PM10/28/16
to jenkinsc...@googlegroups.com

Thanks, we will try this in our next go round of staging upgrades. We have multiple Coverity jobs (hosting 10+ projects on our server) thus we would have to plan for this to upgrade and reconfigure the appropriate jobs.

Reply all
Reply to author
Forward
0 new messages