Sonar-Qube version : sonarqube-9.9.4.87374
Sonar-scanner version : sonar-scanner-5.0.1.3006-windows and used build-wrapper-win-x86.exe
my java version is:
openjdk 11.0.8-internal 2020-07-14
OpenJDK Runtime Environment (build 11.0.8-internal+0-adhoc…jdk11u)
OpenJDK 64-Bit Server VM (build 11.0.8-internal+0-adhoc…jdk11u, mixed mode)
And I added these paths in my environment variables .
C:\SonarQube\build-wrapper-win-x86
C:\SonarQube\sonar-scanner-5.0.1.3006-windows\bin
- In my project, I use Renesas RL-78 G23 processor. I want to analyse in my code.
I build the code in my code path with “build-wrapper-win-x86-64.exe --out-dir bw-output build.cmd” this command. The following commands are included in build.cmd :
**cd HardwareDebug**
**make -j8 clean **
**make -j8 all**
**cd..**
After this command, I write “sonar-scanner.bat” command. After this command I see this below error message.
Here is our command and debug:
C:\workspace_e2\*****project>
C:\workspace_e2\*****project>sonar-scanner.bat
....
INFO: Starting PHP symbol indexer
INFO: 4 source files to be analyzed
INFO: 4/4 source files have been analyzed
INFO: Cached information of global symbols will be used for 0 out of 4 files. Global symbols were recomputed for the remaining files.
INFO: Starting PHP rules
INFO: 4 source files to be analyzed
INFO: 4/4 source files have been analyzed
INFO: The PHP analyzer was able to leverage cached data from previous analyses for 0 out of 4 files. These files were not parsed.
INFO: Sensor PHP sensor [php] (done) | time=2758ms
INFO: Sensor Analyzer for "php.ini" files [php]
INFO: Sensor Analyzer for "php.ini" files [php] (done) | time=2ms
INFO: Sensor PHPUnit report sensor [php]
INFO: No PHPUnit tests reports provided (see 'sonar.php.tests.reportPath' property)
INFO: No PHPUnit coverage reports provided (see 'sonar.php.coverage.reportPaths' property)
INFO: Sensor PHPUnit report sensor [php] (done) | time=4ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=47ms
INFO: Sensor Serverless configuration file sensor [security]
INFO: 0 Serverless function entries were found in the project
INFO: 0 Serverless function handlers were kept as entrypoints
INFO: Sensor Serverless configuration file sensor [security] (done) | time=4ms
INFO: Sensor AWS SAM template file sensor [security]
INFO: Sensor AWS SAM template file sensor [security] (done) | time=2ms
INFO: Sensor AWS SAM Inline template file sensor [security]
INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=1ms
INFO: Sensor CFamily [cpp]
INFO: CFamily plugin version: 6.52.1.66618
INFO: Using build-wrapper output: C:\workspace_e2\new_gen_dimming_act_bottom\bw-output\build-wrapper-dump.json
INFO: Available processors: 8
INFO: Using 8 threads for analysis.
INFO: Found empty cache on server
INFO: PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
INFO: Z3 refutation rate: 0 out of 0
INFO: SE: 0 out of 0
INFO: Subprocess(es) done in 12ms
INFO: 0/64 files marked as unchanged
INFO: Cache: 0/0 hits, 126 bytes
INFO: 0 compilation units analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 23.798s
INFO: Final Memory: 37M/136M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found empty. Please make sure that:
* you are using the latest version of the build-wrapper and the CFamily analyzer
* your compiler is supported
* you are wrapping your build correctly
* you are wrapping a full/clean build
* if you are building your project inside a Docker container, build-wrapper is wrapping the build process inside the container and not wrapping the external Docker process
at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:606)
at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:241)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:88)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:64)
at org.sonar.scanner.scan.SpringModuleScanContainer.doAfterStart(SpringModuleScanContainer.java:82)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:223)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:202)
at org.sonar.scanner.scan.SpringProjectScanContainer.scan(SpringProjectScanContainer.java:197)
at org.sonar.scanner.scan.SpringProjectScanContainer.scanRecursively(SpringProjectScanContainer.java:193)
at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:166)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:223)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:202)
at org.sonar.scanner.bootstrap.SpringScannerContainer.doAfterStart(SpringScannerContainer.java:351)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:223)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:202)
at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:138)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:223)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:202)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:71)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:65)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
at org.sonarsource.scanner.cli.Main.main(Main.java:62)
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
And our bw-output folder.
build-wrapper.log size is 281 KB
build-wrapper-dump.json size is 1 KB
It seems our build-wrapper-dump.json appears empty.
I used Renesas make.exe folder. RL-78 G23 proccessor used CC-RL Compiler.
Using this link https://docs.sonarsource.com/sonarqube/9.9/analyzing-source-code/languages/c-family/ ,I look supported compiler list and I can’t see CC-RL Compiler.
Is this list up to date and Can you help me that how can I solve this problem?