Scanning c/c++/qml fails with ERROR: Error java.lang.IllegalStateException

Must-share information (formatted with Markdown):

  • SonarQube Server Enterprise Edition v9.9.7 (build 96285)
  • CFamily plugin version: 6.41.2.69583
  • Experience Level : First time with both Gitlab and Sonarqube, absolute beginner, doing a PoC with SonarQube to prove if SonarQube can be used at company
  • SonarQube deployed: On-Premises installation / Docker
  • Scan a C/C++/Qt based embedded project, the project is currently built using “rpmbuild”, and need to integrate that with on-premises Gitlab instance where the code is at
  • Followed the instructions here GitHub - sonarsource-cfamily-examples/linux-cmake-gitlab-ci-vulnerability-reports-sq: An example C++ repository built with CMake on Linux using GitLab CI and analyzed on SonarQube with Vulnerability Reports
  • there is a failure ERROR: Error during SonarScanner execution java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found but 0 C/C++/Objective-C files were analyzed.
  • am attaching parts of verbose logs (unable to send the entire log due to confidential nature), sonar-project.properties, build.sh and gitlab-ci.yml files here (actual app names are text replaced for security purposes, and non-relevant lines are removed.
    all-files.zip (3.2 KB)

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

9.9.7 → 2025.1.1-> 2025.2 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

 
Ann