Sonar Scanner failed to analyze source code (ERROR: Exception in thread)

I have investigated the reproducer and the issue is caused by the fact that we do not see the following macros in the compiler probe, that define the size of given types in bytes:

  • __SIZEOF_INT__
  • __SIZEOF_LONG__
  • __SIZEOF_LONG_LONG__
  • __SIZEOF_FLOAT__
  • __SIZEOF_DOUBLE__
  • __SIZEOF_LONG_DOUBLE__

In general, we do not support older versions of Texas Instrument compilers that do not provide these macros. So our recommendation would be to update the newest compiler version (8.x) and retest the analysis.