Hi,
We are trying to use SonarCloud on a particular project which uses gcc-arm-none-eabi-5_4-2016q3 unlike all our other projects which use the 2019 version. This project also has the particuliarity that it uses precombiled object files but it builds correctly on our CI pipeline. SonarCloud however fails with the error message We have added the debug option, upgraded to the latest version of SonarScanner but still no luck. Please help.
Best regards,
Galaxy
Template for a good bug report, formatted with Markdown:
- versions used: Scanner: sonar-scanner-4.6.0.2311-linux)
- error observed (wrap logs/code around triple quote ``` for proper formatting)
14:16:57.082 DEBUG: Probing compiler: [/work/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc, -x, c, --std, gnu99, -mcpu=cortex-m4, --sysroot=/work/gcc-arm-none-eabi-5_4-2016q3/bin, -mthumb, -v, -dM, -E, -]
14:16:57.137 DEBUG: stdout:
14:16:57.138 DEBUG: stderr:
execv: No such file or directory
14:16:57.140 WARN: Invalid probe found, skip analysis of files: [/builds/terabee_embedded/positioning_system/drtls/application/[FILE_NAME].c]
The compiler probe 'stdout' is expected to contain at least one '#define' directive:
14:16:57.143 WARN: Invalid probe found, skip analysis of files: [/builds/terabee_embedded/positioning_system/drtls/application/[FILE_NAME].c]
The compiler probe 'stdout' is expected to contain at least one '#define' directive:
14:16:57.154 WARN: Invalid probe found, skip analysis of files: [/builds/application/[FILE_NAME].c]
The compiler probe 'stdout' is expected to contain at least one '#define' directive:
14:16:57.161 WARN: Invalid probe found, skip analysis of files: [/builds/application/crc.c]
The compiler probe 'stdout' is expected to contain at least one '#define' directive:
14:16:57.165 WARN: Invalid probe found, skip analysis of files: [/builds/application/device.c]
The compiler probe 'stdout' is expected to contain at least one '#define' directive:
14:16:57.166 WARN: Invalid probe found, skip analysis of files: [/builds/error_check.c]
The compiler probe 'stdout' is expected to contain at least one '#define' directive:
14:16:57.183 WARN: Invalid probe found, skip analysis of files: [/builds/application/leds.c]
The compiler probe 'stdout' is expected to contain at least one '#define' directive:
14:16:57.183 WARN: Invalid probe found, skip analysis of files: [/builds/application/nvm.c]
The compiler probe 'stdout' is expected to contain at least one '#define' directive:
14:16:57.184 WARN: Invalid probe found, skip analysis of files: [/builds/application/rtos_thread.c]
The compiler probe 'stdout' is expected to contain at least one '#define' directive:
14:16:57.189 WARN: Invalid probe found, skip analysis of files: [/builds/application/[FILE_NAME].c]
The compiler probe 'stdout' is expected to contain at least one '#define' directive:
14:16:57.197 WARN: Invalid probe found, skip analysis of files: [/builds/application/uart.c]
The compiler probe 'stdout' is expected to contain at least one '#define' directive:
14:16:57.199 INFO: PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
14:16:57.213 INFO: Subprocess(es) done in 213ms
14:16:57.214 INFO: 0 compilation units analyzed
14:16:57.285 INFO: ------------------------------------------------------------------------
14:16:57.286 INFO: EXECUTION FAILURE
14:16:57.287 INFO: ------------------------------------------------------------------------
14:16:57.289 INFO: Total time: 1:04.008s
14:16:57.425 INFO: Final Memory: 25M/77M
14:16:57.426 INFO: ------------------------------------------------------------------------
14:16:57.427 ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found but 0 C/C++/Objective-C files were analyzed. Please make sure that:
* you are using the latest version of the build-wrapper and the CFamily analyzer
* you are correctly invoking the scanner with correct configuration
* your compiler is supported
* you are wrapping your build correctly
* you are wrapping a full/clean build
* you are providing the path to the correct build-wrapper output directory
* you are building and analyzing the same source checkout, absolute paths must be identical in build and analysis steps
at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:439)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:45)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:51)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:68)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:440)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:436)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:394)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:126)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:58)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:52)
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 com.sun.proxy.$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:112)
at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Cleaning up file based variables
00:01
ERROR: Job failed: exit code 1
- steps to reproduce
- potential workaround
P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour