Error The "build-wrapper-dump.json" file was found empty

I am facing this issue after migrating from SonarQube version 7.9.4 to 8.9.9
SonarCFamily plugin version also updated from to :
These versions remain same:

here is my file.


find . -name build-wrapper-dump.json
 + find . -name build-wrapper-dump.json
 + xargs -n1 cat
 # (C) SonarSource SA, 2014-2021,
 # All SONARSOURCE programs and content are copyright protected.
 # SONARSOURCE and SONARQUBE are trademarks of SonarSource SA. All rights are expressly reserved.
 # This file is designed exclusively for use with the SONARSOURCE C / C++ / Objective-C Plugin.
 # It may not be used in connection with any other software.
 # Any other use is prohibited by law and may be grounds for immediate termination of your License.

INFO: Sensor CFamily [cpp]
 INFO: CFamily plugin version:
 INFO: Using build-wrapper output: xxx/log_output/build-wrapper-dump.json
 INFO: Available processors: 5
 CFamily plugin supports multithreaded analysis:
 * to enable multithreaded analysis
   please specify the number of threads to use
   by setting the following property to your analysis:
 * if you do not want to enable multithreading
   please explicitly disable it
   by setting the following property to your analysis:
 * visit the documentation page for more information
 INFO: Using 1 thread for analysis according to value of "sonar.cfamily.threads" property.
 INFO: Cache is explicitly disabled: Optional[false]
 INFO: PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
 INFO: SE: 0 out of 0
 INFO: Subprocess(es) done in 10ms
 INFO: 0 compilation units analyzed
 INFO: ------------------------------------------------------------------------
 INFO: ------------------------------------------------------------------------
 INFO: Total time: 1:02.440s
 INFO: Final Memory: 31M/136M
 INFO: ------------------------------------------------------------------------
 ERROR: Error during SonarQube Scanner execution
 ERROR: The "build-wrapper-dump.json" file was found empty. Please make sure that:
   * you are using the latest version of the build-wrapper and the CFamily analyzer
   * your compiler is supported
   * you are wrapping your build correctly
   * you are wrapping a full/clean build
   * if you are building your project inside a Docker container, build-wrapper is wrapping the build process inside the container and not wrapping the external Docker process


Welcome to the community!

Can you complete your migration by moving to SonarQube 9.9.1 please Additionally, please upgrade your scanners to the latest version: 4.8.

Once there, please make sure these conditions are met

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.


Thanks a lot for the reply.
So does that mean the sonar and scanner version that I am currently using is not stable and has some known issues?
Sure, as you suggest I will try to upgrade to the suggested versions and will update my results here again.