I am facing this issue after migrating from SonarQube version 7.9.4 to 8.9.9
SonarCFamily plugin version also updated from 6.8.0.16475 to : 6.20.5.49286
These versions remain same:
sonar-scanner-4.7.0.2747-linux
sonar-scanner-cli-3.2.0.1227.jar
here is my sonar.properties file.
sonar.projectKey=myprojnamekey
sonar.projectName=myprojname
sonar.projectVersion=1.0
sonar.sources=.
sonar.sourceEncoding=UTF-8
sonar.exclusions=*soap*,httpget.*
sonar.cfamily.build-wrapper-output.bypass=false
sonar.cfamily.build-wrapper-output=log_output
sonar.cfamily.cache.enabled=false
sonar.cfamily.cppunit.reportsPath=build-x86_64/target/unittest/reports
sonar.cfamily.cppunit.reportsPath=build-x86_64/target/UT/reports
sonar.cppcheck.reportPath=cppcheck-report.xml
sonar.shell.addlanguage=false
find . -name build-wrapper-dump.json
./log_output/build-wrapper-dump.json
+ find . -name build-wrapper-dump.json
+ xargs -n1 cat
# (C) SonarSource SA, 2014-2021, info@sonarsource.com
# All SONARSOURCE programs and content are copyright protected.
# SONARSOURCE and SONARQUBE are trademarks of SonarSource SA. All rights are expressly reserved.
#
# This file is designed exclusively for use with the SONARSOURCE C / C++ / Objective-C Plugin.
# It may not be used in connection with any other software.
# Any other use is prohibited by law and may be grounds for immediate termination of your License.
{
"version":"6.20.5",
"captures":[
]}
INFO: Sensor CFamily [cpp]
INFO: CFamily plugin version: 6.20.5.49286
INFO: Using build-wrapper output: xxx/log_output/build-wrapper-dump.json
INFO: Available processors: 5
WARN:
CFamily plugin supports multithreaded analysis:
* to enable multithreaded analysis
please specify the number of threads to use
by setting the following property to your analysis:
sonar.cfamily.threads=number_of_threads
* if you do not want to enable multithreading
please explicitly disable it
by setting the following property to your analysis:
sonar.cfamily.threads=1
* visit the documentation page for more information
https://sonarqube.int.net.nokia.com/documentation/analysis/languages/cfamily/
INFO: Using 1 thread for analysis according to value of "sonar.cfamily.threads" property.
INFO: Cache is explicitly disabled: Optional[false]
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: Subprocess(es) done in 10ms
INFO: 0 compilation units analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:02.440s
INFO: Final Memory: 31M/136M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: 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