- Versions used (SonarQube, Scanner, Plugin, and any relevant extension)
$ sonar-scanner --version
INFO: Scanner configuration file: sonar-scanner-4.6.0.2311-linux/conf/sonar-scanner.properties
INFO: Project root configuration file: https://github.com/I2PC/xmippCore/blob/devel/sonar-project.properties
INFO: SonarScanner 4.6.0.2311
INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
INFO: Linux 5.8.0-45-generic amd64
$ build-wrapper-linux-x86-64 --version
build-wrapper, version 6.17 (linux-x86)
- Error observed
INFO: Requesting reproducer for: xmipp/src/xmippCore/core/transformations.cpp
ERROR: Exception in thread pool-1-thread-1
com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code != 0: xmipp/src/xmippCore/core/transformations.cpp
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:81)
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:78)
at com.sonar.cpp.plugin.CFamilySensor.lambda$process$8(CFamilySensor.java:655)
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)
ERROR:
An error occurred while analyzing the following compilation unit:
xmipp/src/xmippCore/core/transformations.cpp
A file named "sonar-cfamily-reproducer.zip" has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
xmipp/sonar-cfamily-reproducer.zip
- Steps to reproduce
build-wrapper-linux-x86-64 --out-dir bw-outputs ./xmipp noAsk
sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=i2pc -Dsonar.login=XXX
I get the same error using scanner version 4.5.
I tried to run the scanner with -DBOOST_NO_CXX11_ALLOCATOR
and with -DBOOST_ASIO_DISABLE_NOEXCEPT
, but got the same error.
I have the sonar-cfamily-reproducer.zip ready for you, please PM me.