Issue with SonarQube CFamily

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this
    Sonarqube version: sonar-scanner-4.7.0.2747-linux
NFO: 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: SE: 0 out of 0
INFO: Z3 refutation rate: 0 out of 0
INFO: Subprocess(es) done in 644ms
INFO: Cache: 0/0 hits, 122 bytes
INFO: 0 compilation units analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 8.544s
INFO: Final Memory: 28M/104M
INFO: ------------------------------------------------------------------------
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.process(CFamilySensor.java:462)
	at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:202)
	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:81)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
	at org.sonar.scanner.scan.SpringProjectScanContainer.scan(SpringProjectScanContainer.java:396)
	at org.sonar.scanner.scan.SpringProjectScanContainer.scanRecursively(SpringProjectScanContainer.java:392)
	at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:361)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
	at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:135)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
	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)
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

Hey there

While this is the scanner version, it’s not your SonarQube version. Check the footer of your SonarQube instance for the correct version information.

It would also be important for you to upload your build wrapper output directory.

INFO: Scanner configuration file: /home/ubuntu/sonarqube/sonar-scanner-4.7.0.2747-linux/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.7.0.2747
INFO: Java 11.0.14.1 Eclipse Adoptium (64-bit)
INFO: Linux 4.4.0-1128-aws amd64

04:54:55.118 DEBUG: Expression SubscriptionExpressionImpl has been translated to unknown function call.
04:54:55.118 DEBUG: Skipping statement DelStatementImpl.
04:54:55.118 DEBUG: Expression InExpressionImpl has been translated to unknown function call.
04:54:55.118 DEBUG: Expression NameImpl has been translated to unknown function call.
04:54:55.118 DEBUG: Skipping function add at file /home/ubuntu/jenkins/workspace/Sonarqube/gryphon-application/modules/sslproxy/src/extra/log2pcap.py as it uses a not-yet-supported language feature: Assignment having target SUBSCRIPTION
04:54:55.118 DEBUG: Expression StringLiteralImpl has been translated to unknown function call.
04:54:55.119 DEBUG: Expression SubscriptionExpressionImpl has been translated to unknown function call.
04:54:55.119 DEBUG: Expression SubscriptionExpressionImpl has been translated to unknown function call.
04:54:55.168 INFO: 24/24 source files have been analyzed
04:54:55.168 INFO: Sensor Python Sensor [python] (done) | time=3267ms
04:54:55.168 INFO: Sensor Cobertura Sensor for Python coverage [python]
04:54:55.169 DEBUG: Using pattern ‘coverage-reports/coverage-.xml’ to find reports

client_loop: send disconnect: Broken pipe

Unfortunately without the details requested (here and in the other thread you raised), there’s not much help we can offer.

At the very least, to prevent duplication, I will close this thread. Please read closely the information requested, rather than just posting more logs.