Build-wrapper-dump.json mismatch with CPP analyzer 6.20.4.45706 version

SonarQube Version:
Wrapper - 6.20.3
CPP Analyzer - 6.20.4.47506
Sonar Scanner - 4.7.0.2747-linux
Deployment - On Prem

  • what are you trying to achieve
    Mismatch between Wrapper version and cpp analyzer version - 6.20.4.45706

  • what have you tried so far to achieve this
    We have tried downloading the latest wrapper from our server url (https:/static/cpp/build-wrapper-linux-x86.zip) but it is still 6.20.3 but the expected version is 6.20.4

Need download link to wrapper - 6.20.4

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

This got fixed by the very last version of SonarQube v8.9 (v8.9.10) – I would guess you’re using an earlier version.

And all that said, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.9.x → 9.9.3 → 10.3 (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.

Thanks for the update. We will check the options for upgrade to 8.9.10.
Is there any option to have the build-wrapper 6.20.4 to meet our immediate needs?

This is a warning that shouldn’t affect the analysis results.

Upgrade Completed. The server system Info is given below.

Server Version - 8.9.10.61524
Build Wrapper - 6.20.5
CFamily Plugin - 6.20.5.49286
Sonar Scanner - 5.0.1

Now we have the issues with Analysis - java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found but 0 C/C++/Objective-C files were analyzed.

Log Snippet - Screenshot attached

build 02-Feb-2024 03:35:25 02:35:25.977 INFO: Cache is explicitly disabled: Optional[false]
build 02-Feb-2024 03:35:26 02:35:26.017 INFO: PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
build 02-Feb-2024 03:35:26 02:35:26.018 INFO: SE: 0 out of 0
build 02-Feb-2024 03:35:26 02:35:26.019 INFO: Subprocess(es) done in 42ms
build 02-Feb-2024 03:35:26 02:35:26.019 INFO: 0 compilation units analyzed
build 02-Feb-2024 03:35:26 02:35:26.046 INFO: ------------------------------------------------------------------------
build 02-Feb-2024 03:35:26 02:35:26.046 INFO: EXECUTION FAILURE
build 02-Feb-2024 03:35:26 02:35:26.046 INFO: ------------------------------------------------------------------------
build 02-Feb-2024 03:35:26 02:35:26.047 INFO: Total time: 12.089s
build 02-Feb-2024 03:35:26 02:35:26.094 INFO: Final Memory: 32M/148M
build 02-Feb-2024 03:35:26 02:35:26.094 INFO: ------------------------------------------------------------------------
error 02-Feb-2024 03:35:26 02:35:26.094 ERROR: Error during SonarScanner execution
error 02-Feb-2024 03:35:26 java.lang.IllegalStateException: The build-wrapper-dump.json file was found but 0 C/C++/Objective-C files were analyzed. Please make sure that:

Thanks
Valavan

Were you also getting this error previously, or were you having successful analyses?

There’s really not much debugging we can do on an EOL version of SonarQube. Like I said above, I really encourage you to get to at least v9.9 LTS.

We were getting successful analysis before which stopped sometime around this year start. We performed the intermediate minor upgrade (8.9.10 LTS) to meet our Release deadlines and we will upgrade to major version - 9.9 LTS by end of Feb.

Since this turns out to be a show stopper for our release, we need some pointers on debugging the issue would be highly appreciated.