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?
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.
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'
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.