Error during SonarQube Scan

I am using trial version of SonarQube to perform static code analysis for our source code.
Below versions of packages are used:
Latest version of Build wrapper ‘build-wrapper-win-x86-64.exe’ downloaded from SonarQube official portal.
Sonar Scanner version Used: sonar-scanner-cli-4.4.0.2170-windows

Our source code is a combination of C and C++ files and we are using Embarcadero Builder XE3 IDE. At background we are using Clang family compiler (bcc32 compiler).

We are following below steps:

  1. Build Wrapper and Sonar Scanner latest packages has been downloaded and respective paths are set in PATH environment variable
  2. New environment variable SONAR_TOKEN is created and correct Token value is set
  3. All properties are set correctly
  4. Running below two commands:
    Build Wrapper activity:
    build-wrapper-win-x86-64.exe --out-dir bw-output build command
    (Note: Build is successful, however there is issue during this build wrapper)

SonarQube scan command:
sonar-scanner.bat -D"sonar.organization=trail" -D"sonar.projectKey=XYZ" -D"sonar.sourceEncoding=UTF-8" -D"sonar.verbose=true" -D"sonar.sources=." -D"sonar.cfamily.build-wrapper-output=bw-output" -D"sonar.host.url=https://sonarcloud.io"

Issue faced:
While running build wrapper for SonarQube empty .json file is created and generated log files contains the errors like- Skipping processes for bcc32. So the build wrapper activity is not successful and subsequently execution of Sonar Scanner exe is also not successful.

In Buildwrapper logs getting below messages for every PID:
Thu Mar 04 07:48:04 2021: isWow64: 1
Thu Mar 04 07:48:04 2021: skipping process C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe with pid: 9788
Thu Mar 04 07:48:06 2021: process created with pid: 7248

As per further analysis on this issue we found that, bcc32/bcc64 compilers are not supported by SonarQube which seems to be resulting in skipping of the bcc32.exe processes and generating empty JSON file as output.

Can anyone suggest any workaround or solution for these issues. Is it true that bcc32 compiler is not supported by SonarQube?

Thanks .
Amit Yadav

Hi @ayadav1208 ,

we currently don’t support such compiler, see the related ticket: CPP-2092.

If possible I would recommend you to use a supported compiler for the analysis.