Apple Silicon Issue

  • SonarScanner
  • Scan my project as usual in the Jenkins pipeline
  • Migrated to M1 Mac Mini

After a successful build using build-wrapper-macosx-x86, sonar-scanner fails with this error:

INFO: ------------------------------------------------------------------------
INFO: Total time: 12.161s
INFO: Final Memory: 40M/144M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found empty. Please make sure that:
* you are using the latest version of the build-wrapper and the CFamily analyzer
* your compiler is supported
* you are wrapping your build correctly
* you are wrapping a full/clean build
* if you are building your project inside a Docker container, build-wrapper is wrapping the build process inside the container and not wrapping the external Docker process

    at com.sonar.cpp.plugin.CFamilySensor.execute(
    at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(
    at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(
    at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(
    at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(
    at org.sonar.core.platform.ComponentContainer.startComponents(
    at org.sonar.core.platform.ComponentContainer.execute(
    at org.sonar.scanner.scan.ProjectScanContainer.scan(
    at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(
    at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(
    at org.sonar.core.platform.ComponentContainer.startComponents(
    at org.sonar.core.platform.ComponentContainer.execute(
    at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(
    at org.sonar.core.platform.ComponentContainer.startComponents(
    at org.sonar.core.platform.ComponentContainer.execute(
    at org.sonar.batch.bootstrapper.Batch.doExecute(
    at org.sonar.batch.bootstrapper.Batch.execute(
    at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.base/java.lang.reflect.Method.invoke(
    at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(
    at com.sun.proxy.$Proxy0.execute(Unknown Source)
    at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(
    at org.sonarsource.scanner.api.EmbeddedScanner.execute(
    at org.sonarsource.scanner.cli.Main.execute(
    at org.sonarsource.scanner.cli.Main.execute(
    at org.sonarsource.scanner.cli.Main.main(
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

I have browser the docs, forums and issue and I haven’t been able to find any mention of Apple Silicon. Would you be able to help?

Hello @Alessandro_Martin ,

Welcome to SonarSource Community! :wave:

The logs show the things to check. Which version of SonarQube are you using? Can you please show the following?

  • build-wrapper-dump.json
  • build-wrapper.log
  • the 2 sets of commands you used: one for the build-wrapper and one for the sonar-scanner

If you prefer, please message me privately (click on my avatar and click on “Message”).


Hi Joe, thank you so much for the quick response.
I don’t see the option to message you privately though, neither from Safari nor from Opera.

I messaged you privately. My apologies, here’s how to do it next time:

No worries, thank you!

@Alessandro_Martin : Thank you for your patience. Apple Silicon is not a compatible/supported platform for C-family analysis, based on our documentation:

  • macOS with version 10.14.3 and later on x86-64

Please try your analysis on a supported platform. We do have future plans to support Apple Silicon, see here:

Thanks for the help, @Godin !


Thank you @Joe and @Godin.
Fingers crossed that this issue is resolved soon.

1 Like

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