The "build-wrapper-dump.json" file was found but 0 C/C++/Objective-C files were analyzed. again

With:

  • sonarqube developer edition Version 8.7.1.42226 docker flavor
  • build-wrapper, version 6.17 (linux-x86)
  • sonarsource/sonar-scanner-cli:latest(f4966ab5488f)
  • gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)

during the build and scan the source is mounted in /usr/src
And still:

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. Please make sure that:

  • you are using the latest version of the build-wrapper and the CFamily analyzer
  • you are correctly invoking the scanner with correct configuration
  • your compiler is supported
  • you are wrapping your build correctly
  • you are wrapping a full/clean build
  • you are providing the path to the correct build-wrapper output directory
  • you are building and analyzing the same source checkout, absolute paths must be ident

The interesting part is this same configuration was working during the trial license and stopped working after purchase.

Please advise?

Hi @lyubomir.yatanski ,

from this I can guess that you are using the sonar-scanner-cli docker which doesn’t work with C/C++ analysis.

this constraint is broken when using the sonar-scanner-cli docker.

You should use the non-docker sonar-scanner-cli: SonarScanner | SonarQube Docs.

1 Like

A post was split to a new topic: Invalid probe found, skip analysis of files