java.lang.IllegalStateException while scanning C project

  • SonarQube Developer Edition 7.7
  • build-wrapper, version 6.1 (linux-x86)
  • Java 1.8.0_121 Oracle Corporation (64-bit) on Ubuntu 16.04.6
  • SonarQube Scanner 3.3.0.1492

Following the instructions I was able to successfully scan the sample project (although I haven’t received my evaluation license key yet, so I’m not actually able to view the results).

My project must be compiled with a build of GCC provided by the CPU vendor for our embedded target. I’ve optimistically interpreted “any version … of GCC” to include this version of GCC.

Here’s my sonar-project.properties

sonar.projectKey=all-fw-hydra1
sonar.projectName=all-fw-hydra1
sonar.host.url=<redacted>
sonar.projectVersion=1.1
sonar.login=<redacted>
sonar.sources=.

I build the project via the wrapper like this: ~/Downloads/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw_output make -j

Then I run sonar-scanner like this: sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw_output -X

Here’s the last few lines of the output:

10:04:07.416 DEBUG: 'rfm/src/lib_sivers/sivers_eder.c' generated metadata with charset 'UTF-8'
10:04:07.429 DEBUG: 'mac/link/lp_pcie.c' generated metadata with charset 'UTF-8'
10:04:07.469 INFO: [pool-3-thread-1] /home/jackmanb/sources/all-fw-hydra1/rfm/src/lib_common/rfm_private.c
10:04:08.101 ERROR: Exception in thread pool-3-thread-1
java.lang.IllegalStateException: exit code != 0
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:54)
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:25)
        at com.sonar.cpp.plugin.CFamilySensor.lambda$process$4(CFamilySensor.java:323)
        at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:53)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

10:04:11.502 INFO: ------------------------------------------------------------------------
10:04:11.502 INFO: EXECUTION FAILURE
10:04:11.502 INFO: ------------------------------------------------------------------------
10:04:11.502 INFO: Total time: 1:22.133s
10:04:11.715 INFO: Final Memory: 50M/2926M
10:04:11.716 INFO: ------------------------------------------------------------------------
10:04:11.716 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: java.lang.IllegalStateException: exit code != 0
        at com.sonar.cpp.analyzer.AnalysisExecutor.submit(AnalysisExecutor.java:47)
        at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:310)
        at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:279)
        at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:198)
        at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:62)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:359)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:354)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:317)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
        at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
        at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:73)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:185)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:137)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:111)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.lang.IllegalStateException: exit code != 0
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:54)
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:25)
        at com.sonar.cpp.plugin.CFamilySensor.lambda$process$4(CFamilySensor.java:323)
        at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:53)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Here’s a snippet of my build-wrapper-dumps.json:

{
"version":0,
"captures":[
{
"compiler":"clang",
"executable":"/opt/bwt/gcc7.2_esirisc_mac/bin/esirisc-bwtmac-elf-gcc",
"stdout":"#define __DBL_MIN_EXP__ (-1021)\n#define __FLT32X_MAX_EXP__ 1024\n#define __UINT_LEAST16_MAX__ 0xffff\n#define __ATOMIC_ACQUIRE 2\n#define __FLT_MIN__ 1.1754943508222875e-38F\n#define __GCC_IEC_559_COMPLEX 0\n#define __UINT_LEAST8_TYPE__ unsigned char\n#define __vbits__ 0\n#define __INTMAX_C(c) c ## LL\n#define __CHAR_BIT__ 8\n#define __UINT8_MAX__ 0xff\n#define __WINT_MAX__ 0xffffffffU\n#define __FLT32_MIN_EXP__ (-125)\n#define __ORDER_LITTLE_ENDIAN__ 1234\n#define __SIZE_MAX__ 0xffffffffU\n#define __WCHAR_MAX__ 0x7fffffff\n#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1\n#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1\n#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1\n#define __DBL_DENORM_MIN__ ((double)4.9406564584124654e-324L)\n#define __GCC_ATOMIC_CHAR_LOCK_FREE 2\n#define __GCC_IEC_559 0\n#define __mmu_ptcache_entries__ 24\n#define __FLT32X_DECIMAL_DIG__ 17\n#define __FLT_EVAL_METHOD__ 0\n#define __FLT64_DECIMAL_DIG__ 17\n#define __imem_enabled__ 1\n#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2\n#define __UINT_FAST64_MAX__ 0xffffffffffffffffULL\n#define __SIG_ATOMIC_TYPE__ int\n#define __DBL_MIN_10_EXP__ (-307)\n#define __FINITE_MATH_ONLY__ 0\n#define __null_pointer_detection_enabled__ 1\n#define __GNUC_PATCHLEVEL__ 0\n#define __FLT32_HAS_DENORM__ 1\n#define __min_max_enabled__ 1\n#define __UINT_FAST8_MAX__ 0xffffffffU\n#define __has_include(STR) __has_include__(STR)\n#define __DEC64_MAX_EXP__ 385\n#define __INT8_C(c) c\n#define __INT_LEAST8_WIDTH__ 8\n#define __UINT_LEAST64_MAX__ 0xffffffffffffffffULL\n#define __SHRT_MAX__ 0x7fff\n#define __LDBL_MAX__ 1.7976931348623157e+308L\n#define __cpu__ bhmac_cpu_0\n#define __exception_table_address__ 0\n#define __UINT_LEAST8_MAX__ 0xff\n#define __GCC_ATOMIC_BOOL_LOCK_FREE 2\n#define __UINTMAX_TYPE__ long long unsigned int\n#define __DEC32_EPSILON__ 1E-6DF\n#define __FLT_EVAL_METHOD_TS_18661_3__ 0\n#define __UINT32_MAX__ 0xffffffffUL\n#define __bits__ 32\n#define __LDBL_MAX_EXP__ 1024\n#define __WINT_MIN__ 0U\n#define __barrel_shift_enabled__ 1\n#define __INT_LEAST16_WIDTH__ 16\n#define __SCHAR_MAX__ 0x7f\n#define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1)\n#define __INT64_C(c) c ## LL\n#define __DBL_DIG__ 15\n#define __GCC_ATOMIC_POINTER_LOCK_FREE 2\n#define __debug_enabled__ 1\n#define __SIZEOF_INT__ 4\n#define __SIZEOF_POINTER__ 4\n#define __hw_h__ \"esirisc/bhmac_cpu_0_esi3250mp_bluwireless_bhmac.h\"\n#define __USER_LABEL_PREFIX__ \n#define __STDC_HOSTED__ 1\n#define __LDBL_HAS_INFINITY__ 1\n#define __update_addr_enabled__ 1\n#define __FLT32_DIG__ 6\n#define __FLT_EPSILON__ 1.1920928955078125e-7F\n#define __SHRT_WIDTH__ 16\n#define __dcache_sets__ 256\n#define __LDBL_MIN__ 2.2250738585072014e-308L\n#define __STDC_UTF_16__ 1\n#define __DEC32_MAX__ 9.999999E96DF\n#define __mmu_enabled__ 1\n#define __dcache_size__ 1150091264\n#define __FLT32X_HAS_INFINITY__ 1\n#define __INT32_MAX__ 0x7fffffffL\n#define __INT_WIDTH__ 32\n#define __SIZEOF_LONG__ 4\n#define __UINT16_C(c) c\n#define __PTRDIFF_WIDTH__ 32\n#define __DECIMAL_DIG__ 17\n#define __FLT64_EPSILON__ 2.2204460492503131e-16F64\n#define __INTMAX_WIDTH__ 64\n#define __has_include_next(STR) __has_include_next__(STR)\n#define __LDBL_HAS_QUIET_NAN__ 1\n#define __FLT64_MANT_DIG__ 53\n#define __breakpoints__ 4\n#define __user_base_address__ 0\n#define __GNUC__ 7\n#define __scaled_index_addr_enabled__ 1\n#define __branch_zero_enabled__ 1\n#define __FLT_HAS_DENORM__ 1\n#define __SIZEOF_LONG_DOUBLE__ 8\n#define __nmi_enabled__ 1\n#define __BIGGEST_ALIGNMENT__ 4\n#define __FLT64_MAX_10_EXP__ 308\n#define __icache_associativity__ 4\n#define __DBL_MAX__ ((double)1.7976931348623157e+308L)\n#define __INT_FAST32_MAX__ 0x7fffffff\n#define __DBL_HAS_INFINITY__ 1\n#define __unsupported_enabled__ 1\n#define __DEC32_MIN_EXP__ (-94)\n#define __muladd_enabled__ 1\n#define __INTPTR_WIDTH__ 32\n#define __FLT32X_HAS_DENORM__ 1\n#define __INT_FAST16_TYPE__ int\n#define __LDBL_HAS_DENORM__ 1\n#define __scall_enabled__ 1\n#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL\n#define __INT_LEAST32_MAX__ 0x7fffffffL\n#define __USING_SJLJ_EXCEPTIONS__ 1\n#define __DEC32_MIN__ 1E-95DF\n#define __DBL_MAX_EXP__ 1024\n#define __WCHAR_WIDTH__ 32\n#define __FLT32_MAX__ 3.4028234663852886e+38F32\n#define __DEC128_EPSILON__ 1E-33DL\n#define __PTRDIFF_MAX__ 0x7fffffff\n#define __rev__ 14\n#define __eta_writable__ 1\n#define __FLT32_HAS_QUIET_NAN__ 1\n#define __LONG_LONG_MAX__ 0x7fffffffffffffffLL\n#define __SIZEOF_SIZE_T__ 4\n#define __widening_multiply_enabled__ 1\n#define __SIZEOF_WINT_T__ 4\n#define __LONG_LONG_WIDTH__ 64\n#define __FLT32_MAX_EXP__ 128\n#define __GXX_ABI_VERSION 1011\n#define __jtag_enabled__ 1\n#define __bit_reverse_enabled__ 1\n#define __FLT_MIN_EXP__ (-125)\n#define __bwt__ 1\n#define __INT_FAST64_TYPE__ long long int\n#define __FLT64_DENORM_MIN__ 4.9406564584124654e-324F64\n#define __DBL_MIN__ ((double)2.2250738585072014e-308L)\n#define __swap_enabled__ 1\n#define __von_neumann__ 1\n#define __vector_complex_enabled__ 1\n#define __rotate_enabled__ 1\n#define __FLT32X_EPSILON__ 2.2204460492503131e-16F32x\n#define __FLT64_MIN_EXP__ (-1021)\n#define __FLT64_MIN_10_EXP__ (-307)\n#define __cycle_counter_enabled__ 1\n#define __DEC128_MIN__ 1E-6143DL\n#define __REGISTER_PREFIX__ \n#define __UINT16_MAX__ 0xffff\n#define __DBL_HAS_DENORM__ 1\n#define __FLT32_MIN__ 1.1754943508222875e-38F32\n#define __UINT8_TYPE__ unsigned char\n#define __NO_INLINE__ 1\n#define __little_endian__ 1\n#define __FLT_MANT_DIG__ 24\n#define __LDBL_DECIMAL_DIG__ 17\n#define __VERSION__ \"7.2.0\"\n#define __vregisters__ 0\n#define __UINT64_C(c) c ## ULL\n#define __clz_enabled__ 1\n#define __GCC_ATOMIC_INT_LOCK_FREE 2\n#define __FLT32_MANT_DIG__ 24\n#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__\n#define __alignment_error_enabled__ 1\n#define __SCHAR_WIDTH__ 8\n#define __INT32_C(c) c ## L\n#define __DEC64_EPSILON__ 1E-15DD\n#define __ORDER_PDP_ENDIAN__ 3412\n#define __DEC128_MIN_EXP__ (-6142)\n#define __FLT32_MAX_10_EXP__ 38\n#define __INT_FAST32_TYPE__ int\n#define __UINT_LEAST16_TYPE__ short unsigned int\n#define __INT16_MAX__ 0x7fff\n#define __SIZE_TYPE__ unsigned int\n#define __UINT64_MAX__ 0xffffffffffffffffULL\n#define __INT8_TYPE__ signed char\n#define __ELF__ 1\n#define __FLT_RADIX__ 2\n#define __INT_LEAST16_TYPE__ short int\n#define __LDBL_EPSILON__ 2.2204460492503131e-16L\n#define __UINTMAX_C(c) c ## ULL\n#define __SIG_ATOMIC_MAX__ 0x7fffffff\n#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2\n#define __SIZEOF_PTRDIFF_T__ 4\n#define __ffs_enabled__ 1\n#define __FLT32X_MANT_DIG__ 53\n#define __FLT32X_MIN_EXP__ (-1021)\n#define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF\n#define __bwt_mac__ 1\n#define __INT_FAST16_MAX__ 0x7fffffff\n#define __dcache_enabled__ 1\n#define __FLT64_DIG__ 15\n#define __UINT_FAST32_MAX__ 0xffffffffU\n#define __UINT_LEAST64_TYPE__ long long unsigned int\n#define __multiply_enabled__ 1\n#define __FLT_HAS_QUIET_NAN__ 1\n#define __FLT_MAX_10_EXP__ 38\n#define __LONG_MAX__ 0x7fffffffL\n#define __wait_enabled__ 1\n#define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL\n#define __FLT_HAS_INFINITY__ 1\n#define __soc__ esi3250mp_bluwireless_bhmac\n#define __bitfield_enabled__ 1\n#define __UINT_FAST16_TYPE__ unsigned int\n#define __DEC64_MAX__ 9.999999999999999E384DD\n#define __INT_FAST32_WIDTH__ 32\n#define __CHAR16_TYPE__ short unsigned int\n#define __PRAGMA_REDEFINE_EXTNAME 1\n#define __SIZE_WIDTH__ 32\n#define __INT_LEAST16_MAX__ 0x7fff\n#define __DEC64_MANT_DIG__ 16\n#define __INT64_MAX__ 0x7fffffffffffffffLL\n#define __UINT_LEAST32_MAX__ 0xffffffffUL\n#define __FLT32_DENORM_MIN__ 1.4012984643248171e-45F32\n#define __GCC_ATOMIC_LONG_LOCK_FREE 2\n#define __SIG_ATOMIC_WIDTH__ 32\n#define __INT_LEAST64_TYPE__ long long int\n#define __vector_half_word_enabled__ 1\n#define __INT16_TYPE__ short int\n#define __INT_LEAST8_TYPE__ signed char\n#define __STDC_VERSION__ 201112L\n#define __DEC32_MAX_EXP__ 97\n#define __aregisters__ 0\n#define __INT_FAST8_MAX__ 0x7fffffff\n#define __INTPTR_MAX__ 0x7fffffff\n#define __interrupts__ 32\n#define __FLT64_HAS_QUIET_NAN__ 1\n#define __privilege_levels_enabled__ 1\n#define __FLT32_MIN_10_EXP__ (-37)\n#define __FLT32X_DIG__ 15\n#define __LDBL_MANT_DIG__ 53\n#define __DBL_HAS_QUIET_NAN__ 1\n#define __FLT64_HAS_INFINITY__ 1\n#define __vector_multiply_enabled__ 1\n#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)\n#define __INTPTR_TYPE__ int\n#define __UINT16_TYPE__ short unsigned int\n#define __WCHAR_TYPE__ int\n#define __SIZEOF_FLOAT__ 4\n#define __load_multiple_enabled__ 1\n#define __dcache_base_address__ 997392384\n#define __UINTPTR_MAX__ 0xffffffffU\n#define __INT_FAST64_WIDTH__ 64\n#define __DEC64_MIN_EXP__ (-382)\n#define __icache_sets__ 256\n#define __FLT32_DECIMAL_DIG__ 9\n#define __INT_FAST64_MAX__ 0x7fffffffffffffffLL\n#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1\n#define __FLT_DIG__ 6\n#define __FLT32_HAS_INFINITY__ 1\n#define __UINT_FAST64_TYPE__ long long unsigned int\n#define __icache_size__ 1150091264\n#define __INT_MAX__ 0x7fffffff\n#define __INT64_TYPE__ long long int\n#define __FLT_MAX_EXP__ 128\n#define __esirisc__ 1\n#define __co_enabled__ 1\n#define __DBL_MANT_DIG__ 53\n#define __icache_enabled__ 1\n#define __INT_LEAST64_MAX__ 0x7fffffffffffffffLL\n#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2\n#define __DEC64_MIN__ 1E-383DD\n#define __WINT_TYPE__ unsigned int\n#define __UINT_LEAST32_TYPE__ long unsigned int\n#define __SIZEOF_SHORT__ 2\n#define __LDBL_MIN_EXP__ (-1021)\n#define __FLT64_MAX__ 1.7976931348623157e+308F64\n#define __WINT_WIDTH__ 32\n#define __INT_LEAST8_MAX__ 0x7f\n#define __FLT32X_MAX_10_EXP__ 308\n#define __LDBL_MAX_10_EXP__ 308\n#define __ATOMIC_RELAXED 0\n#define __DBL_EPSILON__ ((double)2.2204460492503131e-16L)\n#define __UINT8_C(c) c\n#define __abs_enabled__ 1\n#define __FLT64_MAX_EXP__ 1024\n#define __INT_LEAST32_TYPE__ long int\n#define __SIZEOF_WCHAR_T__ 4\n#define __UINT64_TYPE__ long long unsigned int\n#define __dcache_bytes_per_line__ 32\n#define __dmem_enabled__ 1\n#define __watchpoints__ 4\n#define __user_size__ 0\n#define __INT_FAST8_TYPE__ int\n#define __pc_width__ 32\n#define __GNUC_STDC_INLINE__ 1\n#define __FLT64_HAS_DENORM__ 1\n#define __interrupt_priorities__ 0\n#define __FLT32_EPSILON__ 1.1920928955078125e-7F32\n#define __DBL_DECIMAL_DIG__ 17\n#define __STDC_UTF_32__ 1\n#define __INT_FAST8_WIDTH__ 32\n#define __DEC_EVAL_METHOD__ 2\n#define __FLT32X_MAX__ 1.7976931348623157e+308F32x\n#define __crc_enabled__ 1\n#define __stop_enabled__ 1\n#define __icache_bytes_per_line__ 32\n#define __ORDER_BIG_ENDIAN__ 4321\n#define __UINT32_C(c) c ## UL\n#define __INTMAX_MAX__ 0x7fffffffffffffffLL\n#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__\n#define __FLT_DENORM_MIN__ 1.4012984643248171e-45F\n#define __mpu_pt_entries__ 0\n#define __dcache_associativity__ 4\n#define __divide_enabled__ 1\n#define __break_enabled__ 1\n#define __INT8_MAX__ 0x7f\n#define __LONG_WIDTH__ 32\n#define __UINT_FAST32_TYPE__ unsigned int\n#define __CHAR32_TYPE__ long unsigned int\n#define __FLT_MAX__ 3.4028234663852886e+38F\n#define __bus_error_enabled__ 1\n#define __INT32_TYPE__ long int\n#define __SIZEOF_DOUBLE__ 8\n#define __registers__ 32\n#define __FLT_MIN_10_EXP__ (-37)\n#define __sign_extend_enabled__ 1\n#define __FLT64_MIN__ 2.2250738585072014e-308F64\n#define __INT_LEAST32_WIDTH__ 32\n#define __INTMAX_TYPE__ long long int\n#define __DEC128_MAX_EXP__ 6145\n#define __FLT32X_HAS_QUIET_NAN__ 1\n#define __ATOMIC_CONSUME 1\n#define __GNUC_MINOR__ 2\n#define __INT_FAST16_WIDTH__ 32\n#define __UINTMAX_MAX__ 0xffffffffffffffffULL\n#define __DEC32_MANT_DIG__ 7\n#define __FLT32X_DENORM_MIN__ 4.9406564584124654e-324F32x\n#define __DBL_MAX_10_EXP__ 308\n#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L\n#define __mmu_dat_enabled__ 1\n#define __INT16_C(c) c\n#define __config_csrs_enabled__ 1\n#define __STDC__ 1\n#define __icache_base_address__ 997392384\n#define __PTRDIFF_TYPE__ int\n#define __ATOMIC_SEQ_CST 5\n#define __UINT32_TYPE__ long unsigned int\n#define __FLT32X_MIN_10_EXP__ (-307)\n#define __UINTPTR_TYPE__ unsigned int\n#define __load_locked_enabled__ 1\n#define __movcc_enabled__ 1\n#define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD\n#define __DEC128_MANT_DIG__ 34\n#define __LDBL_MIN_10_EXP__ (-307)\n#define __SIZEOF_LONG_LONG__ 8\n#define __GCC_ATOMIC_LLONG_LOCK_FREE 1\n#define __FLT32X_MIN__ 2.2250738585072014e-308F32x\n#define __LDBL_DIG__ 15\n#define __FLT_DECIMAL_DIG__ 9\n#define __UINT_FAST16_MAX__ 0xffffffffU\n#define __GCC_ATOMIC_SHORT_LOCK_FREE 2\n#define __INT_LEAST64_WIDTH__ 64\n#define __UINT_FAST8_TYPE__ unsigned int\n#define __ATOMIC_ACQ_REL 4\n#define __ATOMIC_RELEASE 3\n",
"stderr":"Using built-in specs.\nCOLLECT_GCC=/opt/bwt/gcc7.2_esirisc_mac/bin/esirisc-bwtmac-elf-gcc\nTarget: esirisc-bwtmac-elf\nConfigured with: /home/spelis/ensilica/ntools4/work.x86_64.mac.d/gcc/configure --prefix=/opt/bwt/.new_new/gcc7.2_esirisc_mac --with-mpc=/opt/bwt/gcc7.2_esirisc_host --with-mpfr=/opt/bwt/gcc7.2_esirisc_host --with-gmp=/opt/bwt/gcc7.2_esirisc_host --enable-languages=c,c++ --disable-libstdcxx --disable-lto --target=esirisc-bwtmac-elf --disable-bootstrap --disable-shared --disable-libmudflap --disable-libssp --disable-libquadmath --with-newlib --enable-newlib-io-pos-args --enable-newlib-register-fini --enable-newlib-io-long-long --disable-newlib-atexit-dynamic-alloc --enable-newlib-global-atexit --enable-newlib-reent-small --disable-newlib-fvwrite-in-streamio --disable-newlib-fseek-optimization --disable-newlib-wide-orient --enable-newlib-nano-malloc --disable-newlib-unbuf-stream-opt --enable-multilib --enable-newlib-multithread --enable-dependency-tracking --disable-shared --enable-static --disable-libtool-lock --enable-newlib-elix-level=3 --enable-newlib-nano-formatted-io --enable-sjlj-exceptions\nThread model: single\ngcc version 7.2.0 (GCC) \nCOLLECT_GCC_OPTIONS='-v' '-dM' '-E'\n /opt/bwt/gcc7.2_esirisc_mac/bin/../libexec/gcc/esirisc-bwtmac-elf/7.2.0/cc1 -E -quiet -v -imultilib \"\" -iprefix /opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/esirisc-bwtmac-elf/7.2.0/ - -msoc=esi3250mp_bluwireless_bhmac -mcpu=bhmac_cpu_0 -mpc-width=32 -muser-base-address=0x0000 -mimem-enabled -mdmem-enabled -mwrite-queue-enabled -mmpid=0x0000 -mrev=0x000e -mmid=0x0026 -mwatchpoints=4 -mbreakpoints=4 -mnull-pointer-detection-enabled -mjtag-enabled -mdebug-enabled -mbreak-enabled -mcycle-counter-enabled -minterrupts=32 -mnmi-enabled -meta-writable -mconfig-csrs-enabled -mbus-error-enabled -malignment-error-enabled -munsupported-enabled -mprivilege-levels-enabled -mdcache-size=0x448d0000 -mdcache-base-address=0x3b730000 -mdcache-bytes-per-line=32 -mdcache-sets=256 -mdcache-associativity=4 -mdcache-enabled -micache-size=0x448d0000 -micache-base-address=0x3b730000 -micache-bytes-per-line=32 -micache-sets=256 -micache-associativity=4 -micache-enabled -mmmu-ptcache-entries=24 -mmmu-dat-enabled -mmmu-enabled -mupdate-addr-enabled -mscaled-index-addr-enabled -mvector-complex-enabled -mvector-half-word-enabled -mvector-multiply-enabled -mwait-enabled -mscall-enabled -mstop-enabled -mbranch-zero-enabled -mmovcc-enabled -muserx-enabled -mcrc-enabled -msign-extend-enabled -mbit-reverse-enabled -mswap-enabled -mffs-enabled -mco-enabled -mclz-enabled -mmin-max-enabled -mabs-enabled -mload-locked-enabled -mload-multiple-enabled -mrotate-enabled -mbitfield-enabled -mbarrel-shift-enabled -mdivide-enabled -mmuladd-enabled -mwidening-multiply-enabled -mmultiply-enabled -mvregisters=0 -mvbits=0 -mregisters=32 -mbits=32 -mvon-neumann -mcpu=bhmac_cpu_0 -dM\nignoring nonexistent directory \"/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/esirisc-bwtmac-elf/7.2.0/../../../../esirisc-bwtmac-elf/sys-include\"\nignoring duplicate directory \"/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/esirisc-bwtmac-elf/7.2.0/../../../../esirisc-bwtmac-elf/include\"\nignoring duplicate directory \"/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/../../lib/gcc/esirisc-bwtmac-elf/7.2.0/include\"\nignoring duplicate directory \"/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/../../lib/gcc/esirisc-bwtmac-elf/7.2.0/include-fixed\"\nignoring nonexistent directory \"/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/../../lib/gcc/esirisc-bwtmac-elf/7.2.0/../../../../esirisc-bwtmac-elf/sys-include\"\nignoring duplicate directory \"/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/../../lib/gcc/esirisc-bwtmac-elf/7.2.0/../../../../esirisc-bwtmac-elf/include/\"\nignoring duplicate directory \"/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/../../lib/gcc/esirisc-bwtmac-elf/7.2.0/../../../../esirisc-bwtmac-elf/include\"\n#include \"...\" search starts here:\n#include <...> search starts here:\n /opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/esirisc-bwtmac-elf/7.2.0/include\n /opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/esirisc-bwtmac-elf/7.2.0/include-fixed\n /opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/esirisc-bwtmac-elf/7.2.0/../../../../esirisc-bwtmac-elf/include/\nEnd of search list.\nCOMPILER_PATH=/opt/bwt/gcc7.2_esirisc_mac/bin/../libexec/gcc/esirisc-bwtmac-elf/7.2.0/:/opt/bwt/gcc7.2_esirisc_mac/bin/../libexec/gcc/:/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/esirisc-bwtmac-elf/7.2.0/../../../../esirisc-bwtmac-elf/bin/\nLIBRARY_PATH=/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/esirisc-bwtmac-elf/7.2.0//:/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc//:/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/esirisc-bwtmac-elf/7.2.0/../../../../esirisc-bwtmac-elf/lib//:/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/esirisc-bwtmac-elf/7.2.0/:/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/:/opt/bwt/gcc7.2_esirisc_mac/bin/../lib/gcc/esirisc-bwtmac-elf/7.2.0/../../../../esirisc-bwtmac-elf/lib/\nCOLLECT_GCC_OPTIONS='-v' '-dM' '-E'\n"},

Happy to share the rest of mybuild-wrapper-dump.json privately with a SonarSource employee but unfortunately it contains information I’m not willing to post publicly - same for the full scan output.

It looks like the build-wrapper+sonar-scanner may be confused by this project ("compiler": "clang" does not look good!). Is there anything else I could try to get this working?

Hi @brendan.jackman.bwt,

you are affected by CPP-2126 , it is going to be released with version 6.2 of the analyzer at the end of the month and included in SonarQube 7.8.

OK thanks - when that issue is fixed do you expect that sonar-scanner will be able to analyse my project? Or will it just be a better error message saying “your target is not supported”?

Hi @brendan.jackman.bwt,

in case of unknown target we are going to analyse the project with a generic target and log a warning about that, hoping in being the best choice for unrecognised targets.