-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube Enterpeise edition version 9.9.1 lts
-
how is SonarQube deployed: zip, Docker, Helm
SonarQube deployed by zip
-
what are you trying to achieve
C++ projects are not scanning when using GHS complier in SonarQube Enterprise version
-
what have you tried so far to achieve this
We using Build-wrapper for C++ project scanning, in our one of the project we are using GHS as a complier.
while scanning the build-wrapper is not capturing the inputs.
Build-wrapper output file:
{
“version”:“6.41”,
“captures”:[
]}
Hi @Ajaykumar, and thanks for sharing the problem with us.
Could you share the build-wrapper.log
file with us? You should be able to find it next to the generated build-wrapper-dump.json
file.
Let me know if you prefer to share it privately, and I can start a thread with you…
Best regards,
Michael
Hi @michael.jabbour
sure, can you please create private thread.
Hi again @Ajaykumar,
Unfortunately, we don’t support the GHS compiler in build-wrapper or compilation database mode, and we have an open ticket to track that here: [CPP-2239] - Jira.
Starting with SonarQube 10.6, you can try to use Automatic Configuration (AutoConfig) analysis mode, which is easy to setup and doesn’t require a configuration property or a supported compiler. For more information about it, you can also refer to this blog post.
I hope this helps,
Best regards,
Michael