"An error occurred while analyzing the following compilation unit" when upgraded to LTS 8.9

Upon upgrading from Developer Edition V 8.7.1 to LTS 8.9 the sonar-scanner now errors out on one particular file:

Versions Used:
Analyzer CFamily plugin version:
6.17 build-wrapper version (win-x86-64)
IAR ANSI C/C++ Compiler V9.10.1.308/W64 for ARM

Error Observed:

  An error occurred while analyzing the following compilation unit: 
	at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:396)
	at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:175)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
	at org.sonarsource.scanner.cli.Main.main(Main.java:61)

Not using boost, so does NOT appear to be related to the known BOOST issue: https://jira.sonarsource.com/browse/CPP-2696. “xxx”. Do not see any similar construct in the sonar-cfamily-reproducer.zip.

Hello @JFrey and welcome to our community!

Could you share the reproducer with us? I can send you a private PM if needed


Yes I can share that; via a Private PM please



Thanks Amélie-

Turned out the build-wrapper.exe for the C Family was incompatible with the SonarQube update.
See: C/C++/Objective-C | SonarQube Docs

File was found at: {SonarQube URL}/static/cpp/build-wrapper-win-x86.zip
Where {SonarQube URL} is the URL of your installed SonarQube instance.


1 Like

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