No clue for "build-wrapper-dump.json" file was found but 0 C/C++/Objective-C files were analyzed

HEllo

I am using a linux environnement for a C code and use then the build wrapper for linux.

INFO: SonarScanner 4.8.0.2856

INFO: Java 11.0.19 Ubuntu (64-bit)
INFO: Linux 5.15.0-69-generic amd64
INFO: User cache: /home/shoareau/.sonar/cache
INFO: Analyzing on SonarQube server 9.9.0.65466
INFO: CFamily plugin version: 6.41.0.60884

I ve checked my configuration and i can not figure why it says
““build-wrapper-dump.json” file was found but 0 C/C++/Objective-C files were analyzed.”

In my working direcotry , i have the following directories:
→ project/src
–>sonar-output

The
build-wrapper.log (1.7 MB)
build-wrapper-dump.json (408.4 KB)

thank you

Hi @shoareau ,

in your build-wrapper-dump.json I can only see compiler invocation on files in tools/ subfolders. Few things to check:

  • are you running a clean build? In the build-wrapper.log I can see
    Thu May 25 08:00:28 2023: argv[0]: </usr/bin/cmake>
    Thu May 25 08:00:28 2023: argv[1]: <--build>
    Thu May 25 08:00:28 2023: argv[2]: <.>
    
    which is not a clean build
  • what compiler are you using for the source files in project subfolder?
  • would you be able to share the build logs and the sonar-scanner logs in verbose mode? I can send you a private message if you want to do it privately