SonarQube for IDE does not support Wind River GCC toolchain

  • Operating system: Linux (Ubuntu 22.04.5 LTS)
  • SonarLint plugin version: v4.13 (This also occurred with 4.12)
  • Programming language you’re coding in: C++
  • Is connected mode used: No, local only using compile_commands.json

And a thorough description of the problem / question:

According to C++ Static Code Analysis & Clean Code Programming Language, Wind River GCC is supported. But, SonarQube for IDE fails with errors, and doesn’t detect any issues.

Error Output:

[Warn - 13:20:24.733] Provided compiler is not compatible.
Invalid probe found, skip analysis of files: [/workspaces/StaticAnalysisTest/main.cpp]
The compiler probe 'stdout' is expected to contain at least one'#define' directive:

Wind River GCC (c++arm) --version output:

c++arm (Wind River VxWorks G++ 4.3-386) 4.3.3

When I switch to a different compiler other than Wind River GCC, things work as expected.

Hello @daulis,

Could you please enable verbose logging, reproduce the issue, and then share the logs with us? You can find a guide on how to so this here: How to get SonarQube for IDE logs

If you would rather share the logs privately, please let me know, and I can start a private thread for you to do so.

Thanks,

1 Like

Turning on verbose logs helped me figure out the problem, so I could see the error messages.

In my case, it was c++arm: environment variable "WIND_BASE" not defined. Normally our build process sets that directly, so I’ll just have to figure out how to make sure certain environment variables are set and visible to the SonarQube IDE extension.

Thank you! This was very helpful

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.