SonarScanner failed to analyze C++ source code using Wind River compiler for VxWorks rtp

I am using SonarQube server 10.5.1.90531, SonarScanner 5.0.1.3006, CFamily plugin version: 6.54.0.69031.

I am trying to analyze my C++ source code using real time processing build (rtp) running on vxWorks. I am using Wind River compiler wrtool with build-wrapper. Below is the command:
build-wrapper-win-x86-64.exe --out-dir C:\Temp\wrws\myproject wrtool.bat prj build myproject

When running my script, I got some good correct info messages such as:

09:53:05.277 INFO: 4 source files to be analyzed
09:53:05.318 INFO: 4/4 source files have been analyzed

Then I got some errors below.

09:53:10.514 INFO: Found empty cache on server
09:53:10.589 DEBUG: Not enough content in 'Shared/MSV/msv.hpp' to have CPD blocks, it will not be part of the duplication detection
09:53:10.601 DEBUG: Not enough content in 'Shared/utils/Msg.cpp' to have CPD blocks, it will not be part of the duplication detection
09:53:10.619 DEBUG: Not enough content in 'Shared/MSV/msv.cpp' to have CPD blocks, it will not be part of the duplication detection
09:53:10.672 INFO: Subprocess(es) done in 39ms
09:53:10.682 DEBUG: C:\Temp\wrws\sbc\Shared\utils\Msg.h not marked as unchanged: file added
09:53:10.682 DEBUG: C:\Temp\wrws\sbc\Shared\MSV\msv.hpp not marked as unchanged: file added
09:53:10.683 DEBUG: C:\Temp\wrws\sbc\Shared\MSV\msv.cpp not marked as unchanged: file added
09:53:10.683 DEBUG: C:\Temp\wrws\sbc\Shared\utils\Msg.cpp not marked as unchanged: file added
09:53:10.683 INFO: 0/4 files marked as unchanged
09:53:10.683 INFO: Cache: 0/0 hits, 125 bytes
09:53:10.683 INFO: SE: 0 out of 0
09:53:10.683 INFO: PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
09:53:10.684 INFO: Z3 refutation rate: 0 out of 0
09:53:10.684 INFO: 0 compilation units analyzed
09:53:11.290 INFO: ------------------------------------------------------------------------
09:53:11.291 INFO: EXECUTION FAILURE

I am not sure what the problem is? I know my build is clean.
Thanks for the help

Hi,

We support Wind River Diab and GCC compilers. It’s not clear to me that Wind River wrtool.

 
Ann

We are developing SW that runs VxWorks for an embedded SBC (single board computer). For SW development, we use Wind River® WrTool is a CLI (Command Line Interface) tool for compilation of the code. The output of the command “wrtool.bat prj build myproject” is a binary executable myproject.vxe

Hello @M53636 ,

I would need the content of the whole log. Could you share it privately if I send you a message?

By this line

0 compilation units analyzed

There is either a configuration issue or the compiler is not supported. If WrTool is calling either Diab or GCC under the hood, it should work.

Alejandro,

Thank you so much for your help. I am getting the log files for you soon.

Thanks,

Michael Nguyen

1 Like

Alejandro, what is your private email, please?

hi Alejandro, I am ready to send you the log files and the console outputs. Can you please send me the private message so I can send them to you?
Thanks,
Michael Nguyen