Wrapper use on C++ code for MSP430

Hi everyone,

I got trouble using the wrapper (before using the scanner) for my embedded code (cpp on a MSP430).

I use CCS with the 20.2.0 LTS compiler and when I use the command

build-wrapper-win-x86-64.exe --out-dir bw-output C:\ti\ccs1011\ccs\utils\bin\gmake

the build-wrapper-dump.json produced is empty… I check every parameters and I use the makefile produce by CCS.

Is someone got the same problem?

Thanks

1 Like

Hi @Flavien,

First of all, welcome to the Community!

May I ask you the version of SonarQube you are using?

Best regards,
Fan

HI @Fan_Yang,

I’m currently using sonarqube-9.1.0.47736 and sonar-scanner-4.6.2.2472 on windows

Regards
Flavien

Hi @Flavien,

It seems like the compiler is good and it is a supported one.

Are you able to check build-wrapper.log under bw-output folder and to see if there is something wrong? You need to make sure that that everything is good on build-wrapper side.

Best regards,
Fan

1 Like

Hi @Fan_Yang, here the log:

Fri Sep 24 14:51:28 2021: build-wrapper, version 6.26 (win-x86-64)
Fri Sep 24 14:51:28 2021: isWow64: 0
Fri Sep 24 14:51:28 2021: windows version: 6.2, service pack: 0.0, build number: 9200, product type: 1
Fri Sep 24 14:51:28 2021: current directory: Project_Path
Fri Sep 24 14:51:28 2021: cwd: <Project_Path>
Fri Sep 24 14:51:28 2021: out-dir absolute path: <Project_Path\bw-output>
Fri Sep 24 14:51:28 2021: command line received: <C:\ti\ccs1011\ccs\utils\bin\gmake -j>
Fri Sep 24 14:51:28 2021: initializing json file
Fri Sep 24 14:51:28 2021: starting debug cycle
Fri Sep 24 14:51:28 2021: process created with pid: 2040
Fri Sep 24 14:51:28 2021: image path name: <C:\ti\ccs1011\ccs\utils\bin\gmake.exe>
Fri Sep 24 14:51:28 2021: command line: <C:\ti\ccs1011\ccs\utils\bin\gmake -j>
Fri Sep 24 14:51:28 2021: working directory: <Project_Path>
Fri Sep 24 14:51:28 2021: isWow64: 1
Fri Sep 24 14:51:28 2021: skipping process C:\ti\ccs1011\ccs\utils\bin\gmake.exe with pid: 2040
Fri Sep 24 14:51:28 2021: process with pid 2040 exit with code: 0 (0x0)
Fri Sep 24 14:51:28 2021: finalizing json file

I use the Makefile created by Code composer Studio, and I think it built only one of the .cpp file and not the whole project

Best regards

Hello @Flavien,

You need a command that fully builds your project from scratch. Are you calling clean(maybe C:\ti\ccs1011\ccs\utils\bin\gmake clean) before calling the build-wrapper with C:\ti\ccs1011\ccs\utils\bin\gmake? When do you call the build-wrapper do you see it compiling all your source files?

Thanks,
Thanks,