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:
sonarqube-8.1.0.31237 Developer edition and licensed.
SonarQube Scanner version:
SonarQube Scanner 4.2.0.1873
What I try to achive
As team we try to Analyse the source code created in Microchip studio. The cpu used is a atmel arm chip. The program gets compiled using the following command.
This is executed from within a jenkins workspace folder.
The running command on the Jenkins server
bat "build-wrapper-win-x86-64.exe --out-dir analyse clean.bat"
bat "build-wrapper-win-x86-64.exe --out-dir analyse build.bat"
It generates the folder
The output of the SonarQube analyzer is:
Its to big to paste, can I upload a file for this?
The problem is
16:50:17.985 ERROR: Error during SonarQube Scanner 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:
In the other project we use the xc8 compiler using GCC and this works.
The only big diffrence is now that we use the build / clean using atmelstudio exe
Where should we look to solve this problem?build_sonarqube_log_anaylzer.txt (40.2 KB)
@mpaladin
The compiler used in this project is arm-none-eabi-g++.exe. Only its build from within microchip and atmel studio.
This project isnt compiled with XC8.
@Abbas
I remember u helped me in the past with GCC and XC8
Is this issue the same as in the past with XC8 or is the arm compiler supported?
Cause I seen a topic here on the forum that a man in 2018 compiled successfully with SonarScanner and the build wrapper for atmel studio but he had a short path in his folder name.
I needed to change the path in a script that make sure I can access the makedep.mk file
makedep.mk
if I then executed:
build-wrapper-win-x86-64.exe --out-dir analyse make -k clean all
Then it succeeded but then the license was expiered the web ui told me.
I forgot to renew the license but we already purchased one in janury only forgot to activate.
only there is something else going on. We have another misra analyser and this tool finds a lot more misra c++ faults
As you can see the bugs are related to misra cert bugs.
So I think bugs are equal to the misra detections notice the 4.1K code smells does they contain misra too?
I am not sure what you are trying to achieve. If you browse the issues do you get what you expect? You should not expect to compare 2 tools by simply looking at the top issues numbers.