Sonarscaner сan't parse cpp file on Ubuntu linux

INFO: SonarScanner 4.7.0.2747
INFO: Linux 5.13.0-30-generic amd64
INFO: CFamily plugin version: 6.32.0.44918
INFO: Analyzing on SonarQube server 9.4.0

On first file (and any other) parse:

INFO: [pool-3-thread-1] /root/xxx/Source/common/Src/acctproc.cpp
INFO: Reached stage: parsing
INFO: Requesting reproducer for: /root/xxx/Source/common/Src/acctproc.cpp
ERROR: Exception in thread pool-3-thread-1
com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code != 0: /root/xxx/Source/common/Src/acctproc.cpp
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:154)
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:54)
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:150)
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:54)
        at com.sonar.cpp.plugin.CFamilySensor.lambda$process$14(CFamilySensor.java:791)
        at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:59)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)

On Windows with same versions of Scanner and server all works fine.
EOL conversion does not help.
Any suggestions?

Hello @Als1973 and welcome to our community!

I believe at the end of the log you should find an error message about sonar-cfamily-reproducer.zip. Could you please follow these instructions and share that file with us?

If there isn’t such an error message, could you share with us the full output of the scanner?

If you think either the reproducer zip or the log contains private information, let us know, and we’ll send you a private message that will allow you to send it privately.

Thanks

Scanner can’t find some header files:

gcc driver version 3.3.4 executing gcc version 3.3.3
 /usr/samoa/tools/toolchain2.0/lib/gcc-lib/arm-linux-uclibc/3.3.4/cc1plus -E -D__GNUG__=3 -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -D_GNU_SOURCE -D__ARM_ARCH_4T__ - -dM
ignoring duplicate directory "/usr/samoa/tools/toolchain2.0/arm-linux-uclibc/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/samoa/tools/toolchain2.0/arm-linux-uclibc/include/c++
 /usr/samoa/tools/toolchain2.0/arm-linux-uclibc/include/c++/arm-linux-uclibc
 /usr/samoa/tools/toolchain2.0/arm-linux-uclibc/include/c++/backward
 /usr/samoa/tools/toolchain2.0/lib/gcc-lib/arm-linux-uclibc/3.3.4/include
 /usr/samoa/tools/toolchain2.0/arm-linux-uclibc/sys-include
End of search list.

11:31:05.812 DEBUG: Cache miss for /home/aleksejsst/WLPOS/wlpos/sources/comm/httplib/CHTTPBodyFile.cpp: cache is empty
11:31:05.815 DEBUG: Using build-wrapper-dump.json probe
11:31:05.816 DEBUG: Using build-wrapper-dump.json probe
11:31:05.821 INFO: [pool-2-thread-1] /home/aleksejsst/WLPOS/wlpos/sources/comm/httplib/CHTTPBodyFile.cpp
11:31:05.821 DEBUG: Cache miss for /home/aleksejsst/WLPOS/wlpos/sources/comm/httplib/CHTTPClientProto.cpp: cache is empty
11:31:06.159 INFO: Reached stage: parsing
11:31:06.159 DEBUG: Reproducer logs:
11:31:06.159 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/fshal.h:49 integer literal is too large to be represented in any integer type
11:31:06.160 DEBUG: [ParsingError] /usr/samoa/tools/toolchain2.0/lib/gcc-lib/arm-linux-uclibc/3.3.4/include/stdarg.h:53 integer literal is too large to be represented in any integer type
11:31:06.160 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:15 unknown type name 'size_t'
11:31:06.160 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:26 unknown type name 'size_t'
11:31:06.160 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:34 unknown type name 'size_t'
11:31:06.160 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:48 unknown type name 'size_t'
11:31:06.160 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:50 unknown type name 'size_t'
11:31:06.160 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:51 unknown type name 'size_t'
11:31:06.161 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:52 unknown type name 'size_t'
11:31:06.161 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:52 unknown type name 'size_t'
11:31:06.161 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:65 unknown type name 'size_t'
11:31:06.161 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:66 unknown type name 'size_t'

Header presented in:
/usr/samoa/tools/toolchain2.0/lib/gcc-lib/arm-linux-uclibc/3.3.4/include/stddef.h

Hello @Als1973,

I’m not sure I understood: is this a different issue?

Could you share the full analysis output? Thanks.

It’s same issue, another environment and with sonar.verbose=true option:

11:37:10.555 DEBUG: Using build-wrapper-dump.json probe
11:37:10.560 DEBUG: Probing compiler: [/usr/samoa/tools/toolchain2.0/bin/arm-linux-uclibc-g++, -x, c++, -v, -dM, -E, -]
11:37:10.589 DEBUG: stdout:
#define __DBL_MIN_EXP__ (-1021)
#define __FLT_MIN__ 1.17549435e-38F
#define __CHAR_BIT__ 8
#define __WCHAR_MAX__ 2147483647
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __FLT_EVAL_METHOD__ 0
#define __unix__ 1
#define unix 1
#define __SIZE_TYPE__ unsigned int
#define __ELF__ 1
#define __DBL_MIN_10_EXP__ (-307)
#define __FINITE_MATH_ONLY__ 0
#define __ARMEL__ 1
#define __GNUC_PATCHLEVEL__ 3
#define __FLT_RADIX__ 2
#define __LDBL_EPSILON__ 2.2204460492503131e-16L
#define __SHRT_MAX__ 32767
#define __LDBL_MAX__ 1.7976931348623157e+308L
#define __linux 1
#define __CHAR_UNSIGNED__ 1
#define __LDBL_MAX_EXP__ 1024
#define __LONG_MAX__ 2147483647L
#define __linux__ 1
#define __unix 1
#define __SCHAR_MAX__ 127
#define __DBL_DIG__ 15
#define __USER_LABEL_PREFIX__
#define linux 1
#define __STDC_HOSTED__ 1
#define __EXCEPTIONS 1
#define __LDBL_MANT_DIG__ 53
#define __FLT_EPSILON__ 1.19209290e-7F
#define __APCS_32__ 1
#define __GXX_WEAK__ 1
#define __LDBL_MIN__ 2.2250738585072014e-308L
#define __WCHAR_TYPE__ long int
#define __FLT_DIG__ 6
#define __FLT_MAX_10_EXP__ 38
#define __INT_MAX__ 2147483647
#define __gnu_linux__ 1
#define __FLT_MAX_EXP__ 128
#define __DECIMAL_DIG__ 17
#define __DBL_MANT_DIG__ 53
#define __WINT_TYPE__ unsigned int
#define __GNUC__ 3
#define __LDBL_MIN_EXP__ (-1021)
#define __arm__ 1
#define __LDBL_MAX_10_EXP__ 308
#define __DBL_EPSILON__ 2.2204460492503131e-16
#define __DBL_MAX__ 1.7976931348623157e+308
#define __cplusplus 1
#define __USING_SJLJ_EXCEPTIONS__ 1
#define __DEPRECATED 1
#define __DBL_MAX_EXP__ 1024
#define __FLT_DENORM_MIN__ 1.40129846e-45F
#define __GNUG__ 3
#define __LONG_LONG_MAX__ 9223372036854775807LL
#define __FLT_MAX__ 3.40282347e+38F
#define __GXX_ABI_VERSION 102
#define __FLT_MIN_10_EXP__ (-37)
#define __FLT_MIN_EXP__ (-125)
#define __GNUC_MINOR__ 3
#define __DBL_MAX_10_EXP__ 308
#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L
#define __DBL_MIN__ 2.2250738585072014e-308
#define __ARM_ARCH_4T__ 1
#define __PTRDIFF_TYPE__ int
#define __LDBL_MIN_10_EXP__ (-307)
#define __REGISTER_PREFIX__
#define __LDBL_DIG__ 15
#define __NO_INLINE__ 1
#define _GNU_SOURCE 1
#define __FLT_MANT_DIG__ 24
#define __VERSION__ "3.3.4"

11:37:10.593 DEBUG: stderr:
Reading specs from /usr/samoa/tools/toolchain2.0/lib/gcc-lib/arm-linux-uclibc/3.3.4/specs
Configured with: /home/fred/ext/sdb3/sdb-packages-2/scripts/build/samoa-tools-2/uClibc-buildroot-200407/toolchain_build_arm_nofpu/gcc-3.3.4/configure --prefix=/usr/samoa/tools/toolchain2.0 --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=arm-linux-uclibc --enable-languages=c,c++ --enable-shared --with-gxx-include-dir=/usr/samoa/tools/toolchain2.0/arm-linux-uclibc/include/c++ --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --mandir=/usr/samoa/tools/toolchain2.0/share/man --infodir=/usr/samoa/tools/toolchain2.0/share/info --disable-nls --enable-multilib --without-float --enable-sjlj-exceptions
Thread model: posix
gcc driver version 3.3.4 executing gcc version 3.3.3
 /usr/samoa/tools/toolchain2.0/lib/gcc-lib/arm-linux-uclibc/3.3.4/cc1plus -E -D__GNUG__=3 -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -D_GNU_SOURCE -D__ARM_ARCH_4T__ - -dM
ignoring duplicate directory "/usr/samoa/tools/toolchain2.0/arm-linux-uclibc/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/samoa/tools/toolchain2.0/arm-linux-uclibc/include/c++
 /usr/samoa/tools/toolchain2.0/arm-linux-uclibc/include/c++/arm-linux-uclibc
 /usr/samoa/tools/toolchain2.0/arm-linux-uclibc/include/c++/backward
 /usr/samoa/tools/toolchain2.0/lib/gcc-lib/arm-linux-uclibc/3.3.4/include
 /usr/samoa/tools/toolchain2.0/arm-linux-uclibc/sys-include
End of search list.

11:37:10.610 DEBUG: Cache miss for /home/aleksejsst/WLPOS/wlpos/sources/comm/httplib/CHTTPBodyFile.cpp: cache is empty
11:37:10.620 DEBUG: Using build-wrapper-dump.json probe
11:37:10.622 DEBUG: Using build-wrapper-dump.json probe
11:37:10.623 INFO: [pool-2-thread-1] /home/aleksejsst/WLPOS/wlpos/sources/comm/httplib/CHTTPBodyFile.cpp
11:37:10.633 DEBUG: Cache miss for /home/aleksejsst/WLPOS/wlpos/sources/comm/httplib/CHTTPClientProto.cpp: cache is empty
11:37:10.994 INFO: Reached stage: parsing
11:37:10.994 DEBUG: Reproducer logs:
11:37:10.995 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/fshal.h:49 integer literal is too large to be represented in any integer type
11:37:10.995 DEBUG: [ParsingError] /usr/samoa/tools/toolchain2.0/lib/gcc-lib/arm-linux-uclibc/3.3.4/include/stdarg.h:53 integer literal is too large to be represented in any integer type
11:37:10.995 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:15 unknown type name 'size_t'
11:37:10.995 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:26 unknown type name 'size_t'
11:37:10.995 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:34 unknown type name 'size_t'
11:37:11.001 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:48 unknown type name 'size_t'
11:37:11.001 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:50 unknown type name 'size_t'
11:37:11.001 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:51 unknown type name 'size_t'
11:37:11.001 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:52 unknown type name 'size_t'
11:37:11.001 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:52 unknown type name 'size_t'
11:37:11.001 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:65 unknown type name 'size_t'
11:37:11.001 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:66 unknown type name 'size_t'
11:37:11.002 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:66 unknown type name 'size_t'
11:37:11.002 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:76 unknown type name 'size_t'
11:37:11.002 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:86 unknown type name 'size_t'
11:37:11.002 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:96 unknown type name 'size_t'
11:37:11.002 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:96 unknown type name 'size_t'
11:37:11.002 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:104 unknown type name 'size_t'
11:37:11.002 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:105 unknown type name 'size_t'
11:37:11.002 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:119 unknown type name 'size_t'
11:37:11.003 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:119 unknown type name 'size_t'
11:37:11.003 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:119 unknown type name 'size_t'
11:37:11.003 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:121 unknown type name 'size_t'
11:37:11.003 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:121 unknown type name 'size_t'
11:37:11.003 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:122 unknown type name 'size_t'
11:37:11.003 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:122 unknown type name 'size_t'
11:37:11.004 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:126 unknown type name 'size_t'
11:37:11.004 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:134 unknown type name 'size_t'
11:37:11.004 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:144 unknown type name 'size_t'
11:37:11.004 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:154 unknown type name 'size_t'
11:37:11.004 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:188 unknown type name 'va_list'
11:37:11.004 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:200 unknown type name 'size_t'
11:37:11.004 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:201 unknown type name 'size_t'
11:37:11.004 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:202 unknown type name 'size_t'
11:37:11.004 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:202 unknown type name 'size_t'
11:37:11.004 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:203 unknown type name 'size_t'
11:37:11.004 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:204 unknown type name 'size_t'
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:204 unknown type name 'size_t'
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:208 unknown type name 'size_t'
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:209 unknown type name 'size_t'
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../util/include/CString.hpp:128 integer literal is too large to be represented in any integer type
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/CFile.hpp:27 unknown type name 'size_t'
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/CFile.hpp:27 unknown type name 'size_t'
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/CFile.hpp:28 unknown type name 'size_t'
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/CFile.hpp:31 unknown type name 'size_t'
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/CFile.hpp:31 unknown type name 'size_t'
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/CFile.hpp:41 unknown type name 'size_t'
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/CFile.hpp:41 unknown type name 'size_t'
11:37:11.005 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/CFile.hpp:50 unknown type name 'size_t'
11:37:11.006 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/CFile.hpp:69 unknown type name 'size_t'
11:37:11.006 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/CFile.hpp:22 integer literal is too large to be represented in any integer type
11:37:11.006 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/../fshal/include/CFile.hpp:25 integer literal is too large to be represented in any integer type
11:37:11.006 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/./include/httplib/IHTTPBodyOut.hpp:26 unknown type name 'size_t'
11:37:11.006 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/./include/httplib/IHTTPBodyOut.hpp:26 unknown type name 'size_t'
11:37:11.006 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/./include/httplib/IHTTPBodyOut.hpp:54 unknown type name 'size_t'
11:37:11.006 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/./include/httplib/CHTTPBodyFile.hpp:30 unknown type name 'size_t'
11:37:11.006 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/./include/httplib/CHTTPBodyFile.hpp:30 unknown type name 'size_t'
11:37:11.006 DEBUG: [ParsingError] /home/aleksejsst/WLPOS/wlpos/sources/comm/./include/httplib/CHTTPBodyFile.hpp:31 unknown type name 'size_t'
11:37:11.007 INFO: Requesting reproducer for: /home/aleksejsst/WLPOS/wlpos/sources/comm/httplib/CHTTPBodyFile.cpp
11:37:11.222 ERROR: Exception in thread pool-2-thread-1
com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code != 0: /home/aleksejsst/WLPOS/wlpos/sources/comm/httplib/CHTTPBodyFile.cpp
        at com.sonar.cpp.analyzer.Subprocess.lambda$execute$1(Subprocess.java:42)
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:113)
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:38)
        at com.sonar.cpp.analyzer.ReproducerRequester.requestReproducer(ReproducerRequester.java:37)
        at com.sonar.cpp.analyzer.AnalysisHandler.acceptResult(AnalysisHandler.java:40)
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:113)
        at com.sonar.cpp.plugin.CFamilySensor.lambda$process$19(CFamilySensor.java:1031)
        at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:59)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)


To make progress on understanding this issue, first, please make sure you’re using a supported version of SonarQube. See Download | SonarQube.

If, after upgrading, you still experience the issue, please share the full, untruncated analysis output. There should also be a mention of a reproducer file in the log. We will also need this file to understand what is going on.

Thanks.

SonarScanner 4.7.0.2747
Analyzing on SonarQube server 9.7.1.62043
Reproducer log attached.
sonar-cfamily-reproducer.zip (686.5 KB)

Thanks for sharing this file. Now I understand what is going on.

We have [CPP-3550] - Jira to improve error reporting on unsupported compiler.

I’ve also raised [CPP-3942] - Jira to record request for supporting the uClibC toolchain.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.