I have a problem with the C/C++ commercial plugin on sonarqube 7.7 developer version.
Our build is on Red Hat Enterprise Linux server release 7.4 with gcc 4.8.5.
The build wrapper, extracted from sonarqube, is 6.1 version.
The build command:
/share/homes/bamboo/build-wrapper-6.1/build-wrapper-linux-x86-64 --out-dir sonar make -C stdlib clean all
The sonar-project.properties file:
Required metadata
sonar.projectKey=Cortex:c-s_donedone_ora-stdlib-ukbidpplx01
sonar.projectName=C :: s_donedone_ora :: stdlib :: ukbidpplx01
sonar.projectVersion=donedoneComma-separated paths to directories with sources (required)
sonar.sources=stdlib,include
The build-wrapper output dir
sonar.cfamily.build-wrapper-output=/cortex/build/product/s_donedone_ora/modules/common/src/sonar
Encoding of the source files
sonar.sourceEncoding=US-ASCII
The files are being compiled but there is nothing in the build-wrapper-dump.json file:
(C) SonarSource SA, 2014-2019, 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”:0,
“captures”:[
]}
The scan only contains duplication checks but I guess this is because the json file is empty.
I tried to use the build wrapper output from 5.4 but it does not work with the scanner from 7.7
I tried the build command directly in the source directory (without the -C option in the make command) and it does not make any difference. The build-wrapper-dump.json is still empty.
Documentation does not defines any additional parameters and I am stuck.
We also have sonarqube 5.4 and all is working as it should.