Need you support regarding ARM 7 (32 Bit) board to do Sonarqube scanning for C language. As we are getting error while running sonar-scanner is “ syntax error : “(“ unexpected “ where run time environment details are as below :
Ubuntu 14.04.6 LTS
Motherboard ARM 7 (32 Bit)
Sonar New version: 9.0.1 (build 46107)
Sonar scanner version 4.7.0.2747
Open JDK version 11.0.14 2022-01-18 mixed mode
Requirement Sonarqube scanning for C language
I would be grateful for your prompt reply.
Previous query for your reference only :
Best Regards
Marish Sharp
STJ Electronics Pvt Ltd | X-51, Okhla Industrial Area | Phase-2 | New Delhi | 110 020 |
As mentioned in our Doc, ARM arch isn’t officially supported for Linux: C/C++/Objective-C | SonarQube Docs
So the analyses are not guaranteed to work on ARM or on32-bit.
Also, the syntax error that you mentioned is internal and should only appear in the verbose log. Are you facing an actual issue? is the analysis finishing successfully? Are you facing a specific false positive?
Out of curiosity, can you share the full scanner verbose log?
You didn’t answer my question.
C++ analysis on ubuntu ARM is not supported. there is no workaround currently. Some people tried it and it worked for them and for others, it failed. We never implemented support for C and C++ analysis on such a platform.
If your project compiles on one of the supported platforms, you can try to run the analysis there.
As we are able to generate a build-wrapper-dump.json file for sample file as per blog Compilation database, can shift the source code to a desktop pc and then perform the scanning, if such a scenario is workable.
I asked you 3 times what do you mean by the scanner “doesn’t work”. I’m still not getting any answer.
If by “it doesn’t work” you mean the scanner is failing. please share the full log of the failure.
What does “desktop PC” mean? What matters is the platform, and the documentation is clear about what is supported and what is not. For example, 32-bit ARM Desktop PC with Linux isn’t supported. While x86-64bit desktop PC with Linux is supported. Please read the documentation and conclude if your platform is supported.