Sonarqube failed due to "build-wrapper-dump.json" file was found empty

My project is built by cmake/ninja with the Renesas RX compiler in Windows.

The command I use to build and scan are:

build-wrapper-win-x86-64.exe --out-dir ..\sonar_wrapper_output ninja.exe -C ..\build
sonar-scanner

And at the end, I got java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found empty.

Did anyone meet this before?

Hey there.

Are you using SonarQube Cloud or SonarQube Server (if the latter, which version?)

Colin, thanks for the reply. I am using SonarQube Enterprise Edition v9.9.8 (build 100196) and SonarScanner CLI 7.0.2.4839.

Here are a few points that might help:

  • The Renesas RX compiler should indeed be supported (CPP-1989)
  • Although I’m not familiar with Ninja, I recommend ensuring that you’re performing a clean (or full) build to avoid any potential issues.
  • It’s likely that the build-wrapper.log file contains more detailed information that can provide insights into how the compiler is being invoked, as well as the specific compiler being used. If you don’t get anywhere with making sure you have a clean build, uploading that would be a next step.
  • It’s worth noting that SonarQube v9.9 LTS is very nearly end-of-life. Considering that SonarQube v2025.1 includes C/C++ AutoConfig, which allows you to bypass the need for the build wrapper entirely, upgrading to the latest version is reccomended.

I did do a clean before the build. See
build-wrapper.log (17.4 MB)