Task: Resolve "Building Over..." Status

This task describes how to push forward an analysis that gets stuck in the "Building over; Awaiting analysis or more building" or "Building over; Native build failed" phase.

"Building over; Awaiting analysis or more building" is the expected final state if you are building a project without analyzing it, but may indicate problems if seen during an analysis or combined build/analysis.

"Building over; Native build failed" indicates that the build command being observed by CodeSonar executed with failure. This state is only possible for command-line builds: the Windows Build Wizard has no access to the exit codes of build processes and so will remain in state "Building over; Awaiting analysis or more building" if the observed build command fails.



Status "Building over; Awaiting analysis or more building"

Windows Services Issues

If your problem has arisen because CodeSonar components running as services are unable to access source files that are on mapped network drives, you can resolve it by shutting down the services and then re-running CodeSonar without services.

  1. Uninstall the existing CodeSonar services:
    codesonar uninstall-services
  2. Run your analysis again, this time specifying that you want to run without services:

Windows Build Wizard: Checking for a build failure

The Windows Build Wizard has no access to the exit codes of build processes and so will remain in state "Building over; Awaiting analysis or more building" if the observed build command fails.

  1. Inspect the build log to see whether the observed build command failed.
  2. Start the Windows Build Wizard if it is not already running.
  3. Specify the exact same information on the first page of the wizard that you specified in your previous attempt. Click Next.
  4. When the wizard asks whether you want to delete old files, instruct it to not delete any files.
  5. On the second page, specify the same information you originally specified, unless you have reason to do otherwise.
  6. Click Record.
  7. Work within your regular build system to resolve the build problems, then build the software again.
  8. Once the regular software build has run correctly, click Finalize.
    The analysis should progress to the "Analyzing" state, and ultimately run to completion.

Windows Build Wizard, Otherwise

If you are using the Windows build wizard and have eliminated the possibility of issues with Windows services and the possibility of a build failure, "Building over; Awaiting analysis or more building" probably indicates that you have exited the build wizard or clicked Previous without clicking Finalize.

  1. Start the Windows Build Wizard if it is not already running.
  2. Specify the exact same information on the first page of the wizard that you specified in your previous attempt. Click Next.
  3. When the wizard asks whether you want to delete old files, instruct it to not delete any files.
  4. On the second page, specify the same information you originally specified, unless you have reason to do otherwise.
  5. Once you click Record, the analysis will once again have the "Building" status. If you would like it to build additional software components into the CodeSonar project or update the project to account for modified components, compile those components now.
  6. Clicking Finalize will cause the analysis to progress to the "Analyzing" status.

Status "Building over; Native build failed"

This status indicates that your underlying build command exited with failure.

Suppose that the original command line used to run the analysis was:

codesonar analyze myProj [::1]:1234 make

Then to resolve the problem:

  1. Inspect the build log to see what error make encountered.
  2. Decide, based on the contents of the build log, whether you want to fix the build system and try again or just force CodeSonar to analyze the current contents of the CodeSonar project.
    Fix Build System
    1. Make edits to the build system to resolve the problem.
    2. If your build system does not support incremental builds, CodeSonar will need to observe a rebuild of the entire project, so execute
      make clean
      (If your build system does support incremental builds, go on to the next step. CodeSonar will rebuild only what your build system rebuilds, saving you time.)
    3. Reissue the very same command line.
    Force Analysis
    1. Reissue the command with the build subcommand omitted:
      codesonar analyze myProj [::1]:1234

IPv4 Note

If your system does not your system does not support IPv6 addresses, use IPv4 to specify addresses instead. For example, use 127.0.0.1:1234 instead of [::1]:1234 in the command lines in this task.

Links