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-220.127.116.110-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:
- Build Wrapper and Sonar Scanner latest packages has been downloaded and respective paths are set in PATH environment variable
- New environment variable SONAR_TOKEN is created and correct Token value is set
- All properties are set correctly
- 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"
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?