Start here

Home
About Klocwork
What's new
Fixed issues
Release notes
Installation

Reference

C/C++ checkers
Java checkers
C# checkers
MISRA C 2004 checkers
MISRA C++ 2008 checkers
MISRA C 2012 checkers
MISRA C 2012 checkers with Amendment 1
Commands
Metrics
Troubleshooting
Reference

Product components

C/C++ Integration build analysis
Java Integration build analysis
Desktop analysis
Refactoring
Klocwork Static Code Analysis
Klocwork Code Review
Structure101
Tuning
Custom checkers

Coding environments

Visual Studio
Eclipse for C/C++
Eclipse for Java
IntelliJ IDEA
Other

Administration

Project configuration
Build configuration
Administration
Analysis performance
Server performance
Security/permissions
Licensing
Klocwork Static Code Analysis Web API
Klocwork Code Review Web API

Community

View help online
Visit RogueWave.com
Klocwork Support
Rogue Wave Videos

Legal

Legal information

Viewing integration build log files

Viewing integration build log files

During the analysis, brief build logs are available from the command line (kwbuildproject), on the console. Messages can be color coded (for example, errors appear in red) if you specify the --color option for kwbuildproject. Brief build logs contain only essential analysis information, such as the name of the build stage (for example, Compiling), and files processed.

After the analysis, several log files are available from any machine that has access to the Klocwork Server in the following location: <projects_root>/projects/<project_name>/builds/<build_name>/.

The most important logs stored in this location are build.log and parse_errors.log.

Another important build integration log file called build_integration.log is located in the tables directory for your project.

Full build log

The full build log, build.log, contains full details on the analysis. You can also access this log from Klocwork Static Code Analysis.

To view the log from the latest build in Klocwork Static Code Analysis:

In the Projects list, click log for any project. The log for the latest build opens in your browser.

To view logs for earlier builds:

  1. In the Projects list, click a project. The project details are displayed on the right.
  2. In the project details, click builds. The Builds page is displayed.
  3. Click log for the build you're interested in. The log file opens in your browser.

Parse errors log

If your build contains parse errors, it's critical to deal with them. An analysis that generates parse errors will not be accurate. Contact Klocwork Customer Support if your parse_errors.log file contains errors.

Build integration log

The build integration log file called build_integration.log lists meaningful build integration errors that the kwbuildproject command detected during the build process. To improve analysis results, we recommend you correct any errors listed in this file.

The build_integration.log file is located in the tables directory for your project, for example, D:\Klocwork\Server 18.0\samples\demosthenes\demosthenes_winbuild\kwtables4\build_integration.log.

The syntax for each error in the log file is as follows, for example, KW_BI:24229983:Error:/server1/developer/space/dec4_rtd/config_xyz.cpp:4:11:"expected ';' at end of declaration".

Each error entry
  • begins with the characters KW_BI: followed by an eight-digit number
  • contains the file path to the error, including the location within the file
  • ends with a specific message pertinent to the error.