C , C++ files scanning failed in SonarQube

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
    SonarQube Server - Enterprise Edition -v2025.1.2
    Sonar Scanner version - 5.0.1

  • how is SonarQube deployed: Docker

  • what are you trying to achieve - We have a sonarqube stage in gitlab pipeline. We are Trying to scan/analyse the C, C++ project

  • what have you tried so far to achieve this

Attempt 1 -

We have defined the SONAR_OPTS in gitlab pipeline. Only java files are scanned and Sonar scan stage passed since it doesnt analyse the C, C++ files. (logs for reference)

`MY_SONAR_OPTS: "-Dsonar.sources=. -Dsonar.java.binaries=. -Dsonar.c.file.suffixes=- -Dsonar.cpp.file.suffixes=- -Dsonar.objc.file.suffixes=-"`

Logs:
INFO: 2468 files indexed

INFO: Quality profile for docker: Sonar way

INFO: Quality profile for plsql: Sonar way

Attempt 2 -

We defined the below parameters in Sonar-project. properties. So it consider the C and C ++ files during scan but it throw the below error. Logs and property file for reference 

Project property file 
sonar.sources=.

sonar.java.libraries=.
sonar.java.binaries=.

sonar.c.file.suffixes=.c 
sonar.cpp.file.suffixes=.cpp 
sonar.objc.file.suffixes=.m

Log 
INFO: 2461 files indexed

INFO: Quality profile for c: Sonar way

INFO: Quality profile for cpp: Sonar way

INFO: Quality profile for docker: Sonar way

INFO: Quality profile for java: VN_Sonar_Profile

INFO: Quality profile for plsql: Sonar way

ERROR in Log
Exception in thread pool-4-thread-1

java.lang.IllegalStateException: java.io.IOException: Cannot run program "/builds/<project-name>/.scannerwork/.sonartmp/11109741531040494532/subprocess" (in directory "."): error=2, No such file or directory

Thanks

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!