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:
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)
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?
Hi, We are using sonar cloud and using Embarcadero bcc32c compiler. Our company is using sonar cloud for C# project and planning to extend to C++ projects. Can you tell when we can expect bcc32c compiler support for sonar cloud?
We are using bcc32c compiler. Our current project is using bcc32 (Old borland compiler) and we are porting this to clang compiler. Win32 Clang-enhanced Compilers - RAD Studio.
If you didn’t see – last year we introduced support in SonarQube Server for a feature called C/C++ AutoConfig! Removing the question of supported compiler altogether.
This is available in SonarQube Server v10.6+, although you should really target at least v2025.1.