SonarQube with gcc cross compiler supportance

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Not running yet. Just to know the compiler I use is supported with SonarQube.
  • what are you trying to achieve
    To get information whether cross-compile for risc-v supported with SonarQube.
  • what have you tried so far to achieve this

Hi. I want to cross compile C project for risc-v in Linux on x86-64. Can I use Sonarqube with this compiler?

$ riscv64-unknown-elf-gcc --version
riscv64-unknown-elf-gcc (GCC) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I already read C supported compiler document, but confused…
and Where can I find cross compile for ARM with Sonarqube example?
If compiler I use is supported, I have a plan to trying to adapt the tool in our team development workflow.

Hi,

Welcome to the community!

Per the docs, the list includes:

  • Any version of Clang, GCC, and Microsoft C/C++ compilers

So under the assumption that riscv64-unknown-elf-gcc is a “version” of GCC, this should work.

 
HTH,
Ann