- 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