Build wrapper support for VxWorks ccsparc GCC compiler

  • Product: SonarQube Developer Edition Version 7.9 (build 26994)
  • Build Wrapper: version 6.3 (linux-x86)

I am trying to get build information to populate in the build-wrapper-dump.json file, but suspect the compiler we are using is not supported.

The compiler (ccsparc) is a derivative of GCC, targeting the SPARC CPU architecture.

It is part of a Wind River VxWorks toolchain, which your documentation claims there is support for. However, I wouldn’t be surprised if we’re the first people to try getting SonarQube to work with this compiler; it is very specific to aerospace applications.

To distill the issue down to bare bones, I have simply compared compiling a test “hello world” file in vanilla gcc, and the same file using ccsparc; both output a valid a.out for their respective architectures, so there’s no build problem.

$ build-wrapper-linux-x86-64 --out-dir bw gcc test.c

$ build-wrapper-linux-x86-64 --out-dir bw ccsparc test.c

The contents of the .json file are effectively empty when using ccsparc:

{
"version":0,
"captures":[
]}

With gcc, the “captures” populate as expected:

{
"version":0,
"captures":[
{
"compiler":"clang",
"executable":"/usr/bin/gcc",
"stdout":"#define __DBL_MIN_EXP__ ..."
}]}
  • Is there any way to get the build-wrapper working with the ccsparc compiler?
  • If not what is an avenue of obtaining support for this in the future?
  • Happy to provide the build-wrapper.log file if needed

Hey there.

If I recall, we had some problems with toolchains until a recent version. Can you make sure you’re using the latest version of the CFamily analyzer (v6.8) and build wrapper?

Colin

Hey Colin,

Thanks for the quick response! I am working with the owners of the server to see if we can get it upgraded. In the meantime, is it possible to download the latest build-wrapper-linux-x86 from SonarSource somehow? Technically to do just the build portion, we just need the standalone build-wrapper tool; if it produces a valid dump.json file then we can worry about the next step of getting the full analysis working.

Thanks,
David

Hey there.

That’s… an interesting point – you could probably download it from https://sonarcloud.io. I’d also recommend not falling behind on the updates anyhow.

However, I also just got the definitive word that we don’t currently support ccsparc. A ticket has been created, CPP-2505. No ETA, but you can vote for it / follow it!

1 Like

Colin,

Thanks for looking into this and providing a concrete answer that it’s not yet supported. We’ll keep our eyes on the progress of the ticket.

Thanks,
David

1 Like