# Sonarscaner сan't parse cpp file on Ubuntu linux

**URL:** <https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856>\
**Category:** SonarQube Server / Community Build\
**Tags:** cfamily, scanner\
**Created:** [July 28, 2022, 7:53am UTC](https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856 "2022-07-28T07:53:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Als1973](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@Als1973](https://community.sonarsource.com/u/Als1973)\
**Post date:** [July 28, 2022, 7:53am UTC](https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856/1 "2022-07-28T07:53:58Z")

</div>

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:

```auto
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?

---

<div class="post-metadata">

**Author:** ![marco.b](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marco.b/32/25371_2.png) [@marco.b](https://community.sonarsource.com/u/marco.b)\
**Post date:** [July 29, 2022, 1:59pm UTC](https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856/3 "2022-07-29T13:59:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Als1973](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@Als1973](https://community.sonarsource.com/u/Als1973)\
**Post date:** [November 1, 2022, 10:26am UTC](https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856/6 "2022-11-01T10:26:47Z")

</div>

Scanner can’t find some header files:

```auto
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

---

<div class="post-metadata">

**Author:** ![marco.b](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marco.b/32/25371_2.png) [@marco.b](https://community.sonarsource.com/u/marco.b)\
**Post date:** [November 11, 2022, 10:49am UTC](https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856/8 "2022-11-11T10:49:11Z")

</div>

Hello @Als1973,

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

Could you share the full analysis output? Thanks.

---

<div class="post-metadata">

**Author:** ![Als1973](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@Als1973](https://community.sonarsource.com/u/Als1973)\
**Post date:** [November 11, 2022, 11:19am UTC](https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856/9 "2022-11-11T11:19:22Z")

</div>

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

```auto
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)

```

---

<div class="post-metadata">

**Author:** ![marco.b](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marco.b/32/25371_2.png) [@marco.b](https://community.sonarsource.com/u/marco.b)\
**Post date:** [November 11, 2022, 12:41pm UTC](https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856/10 "2022-11-11T12:41:02Z")

</div>

To make progress on understanding this issue, first, please make sure you’re using a supported version of SonarQube. See [Download | SonarQube](https://www.sonarqube.org/downloads/).

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.

---

<div class="post-metadata">

**Author:** ![Als1973](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@Als1973](https://community.sonarsource.com/u/Als1973)\
**Post date:** [November 11, 2022, 1:46pm UTC](https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856/11 "2022-11-11T13:46:06Z")

</div>

SonarScanner 4.7.0.2747  
Analyzing on SonarQube server 9.7.1.62043  
Reproducer log attached.  
[sonar-cfamily-reproducer.zip](https://community.sonarsource.com/uploads/short-url/sBEDcEIyooyMKAFl7DCXLoYvzP.zip) (686.5 KB)

---

<div class="post-metadata">

**Author:** ![marco.b](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marco.b/32/25371_2.png) [@marco.b](https://community.sonarsource.com/u/marco.b)\
**Post date:** [November 16, 2022, 10:40am UTC](https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856/12 "2022-11-16T10:40:32Z")

</div>

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

We have [[CPP-3550] - Jira](https://sonarsource.atlassian.net/browse/CPP-3550) to improve error reporting on unsupported compiler.

I’ve also raised [[CPP-3942] - Jira](https://sonarsource.atlassian.net/browse/CPP-3942) to record request for supporting the uClibC toolchain.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [November 23, 2022, 10:42am UTC](https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856/14 "2022-11-23T10:42:13Z")

</div>

Closed on November 23, 2022, 10:42am UTC

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

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [May 20, 2025, 3:01pm UTC](https://community.sonarsource.com/t/sonarscaner-ant-parse-cpp-file-on-ubuntu-linux/68856/15 "2025-05-20T15:01:44Z")

</div>

Hey @Als1973,

If you didn’t see – last year we introduced support in SonarQube Server for a feature called C/C++ AutoConfig! Removing the question of supported compiler altogether.

> [@C and C++ AutoConfig for SonarQube](https://community.sonarsource.com/t/c-and-c-autoconfig-for-sonarqube/117344):
>
> We have big news for our dear C and C++ SonarQube users. Configuring the analysis requires some skills; at times, it can get technical and tedious, with a few known caveats. We unleashed the talent of our mighty engineers, and they made our C and C++ analyzer smart enough to configure itself. Hence the name AutoConfig. As a result: No need to worry about compiler support No need to worry about build-wrapper or compilation database No need to know anything about the project to configure, nor C…

This is available in SonarQube Server _v10.6+_, although you should really target at least _v2025.1_.
