# The "build-wrapper-dump.json" file was found empty Error

**URL:** <https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037>\
**Category:** SonarQube Server / Community Build\
**Tags:** build-wrapper, cfamily, scanner\
**Created:** [June 18, 2021, 1:23am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037 "2021-06-18T01:23:44Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![luocy](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@luocy](https://community.sonarsource.com/u/luocy)\
**Post date:** [June 18, 2021, 1:23am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/1 "2021-06-18T01:23:44Z")

</div>

Hello, when we used sonarscanner to scan the Object-C language on the MAC recently, we reported the following error. Please help me solve the following problem. What is the cause? Thank you

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

---

<div class="post-metadata">

**Author:** ![mpaladin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mpaladin/32/118_2.png) [@mpaladin](https://community.sonarsource.com/u/mpaladin)\
**Post date:** [June 18, 2021, 7:31am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/2 "2021-06-18T07:31:53Z")

</div>

Hi @luocy ,

could you please share the `build-wrapper.log` and `build-wrapper-dump.json` files?

---

<div class="post-metadata">

**Author:** ![luocy](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@luocy](https://community.sonarsource.com/u/luocy)\
**Post date:** [June 18, 2021, 7:54am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/3 "2021-06-18T07:54:50Z")

</div>

Of course, my Mac chip is M1，I look forward to your reply

[build-wrapper-dump.json](https://community.sonarsource.com/uploads/short-url/dsEQTPJIlNmW62enaxK4ZecVkRj.json) (507 Bytes)

---

<div class="post-metadata">

**Author:** ![luocy](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@luocy](https://community.sonarsource.com/u/luocy)\
**Post date:** [June 21, 2021, 3:35am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/4 "2021-06-21T03:35:18Z")

</div>

Hello, Massimo Paladin, can you see what the problem is?

---

<div class="post-metadata">

**Author:** ![mpaladin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mpaladin/32/118_2.png) [@mpaladin](https://community.sonarsource.com/u/mpaladin)\
**Post date:** [June 21, 2021, 7:44am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/5 "2021-06-21T07:44:26Z")

</div>

Hi @luocy ,

Apple Silicon is not supported as a runtime for build-wrapper and the C/C++ analyzer, see [CPP-2882](https://jira.sonarsource.com/browse/CPP-2882). Please use an x86-64 architecture for now.

---

<div class="post-metadata">

**Author:** ![luocy](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@luocy](https://community.sonarsource.com/u/luocy)\
**Post date:** [June 21, 2021, 1:43pm UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/6 "2021-06-21T13:43:15Z")

</div>

M1 is a common chip now. I suggest sonarqube support it as soon as possible. Thank you

---

<div class="post-metadata">

**Author:** ![mpaladin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mpaladin/32/118_2.png) [@mpaladin](https://community.sonarsource.com/u/mpaladin)\
**Post date:** [June 21, 2021, 2:30pm UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/7 "2021-06-21T14:30:01Z")

</div>

thank you for your feedback, feel free to follow the ticket.

You are right, still, it is not easy given that CI tools are still on x86-64.

---

<div class="post-metadata">

**Author:** ![vahagnv](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/vahagnv/32/22341_2.png) [@vahagnv](https://community.sonarsource.com/u/vahagnv)\
**Post date:** [August 26, 2021, 11:48am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/8 "2021-08-26T11:48:22Z")

</div>

Any updates on this issue?

We are planning to switch all the runners to apple silicon and sonar is the only blocker rigth now.

---

<div class="post-metadata">

**Author:** ![mpaladin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mpaladin/32/118_2.png) [@mpaladin](https://community.sonarsource.com/u/mpaladin)\
**Post date:** [August 30, 2021, 7:33am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/9 "2021-08-30T07:33:53Z")

</div>

Hi @vahagnv ,

> [@vahagnv](#):
>
> Any updates on this issue?

no updates for the time being given that the major CI providers don’t provide Apple Silicon agents. Out of curiosity, are you using a public CI provider or are you using your private infrastructure\>

---

<div class="post-metadata">

**Author:** ![vahagnv](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/vahagnv/32/22341_2.png) [@vahagnv](https://community.sonarsource.com/u/vahagnv)\
**Post date:** [October 29, 2021, 9:54am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/10 "2021-10-29T09:54:07Z")

</div>

Its the private one yet.

---

<div class="post-metadata">

**Author:** ![mpaladin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mpaladin/32/118_2.png) [@mpaladin](https://community.sonarsource.com/u/mpaladin)\
**Post date:** [November 1, 2021, 9:09am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/11 "2021-11-01T09:09:39Z")

</div>

Hi @vahagnv ,

you can try to configure the analysis with Compilation Database, you can have a look at _Analysis Steps Using Compilation Database_ section in the [documentation page](https://docs.sonarqube.org/latest/analysis/languages/cfamily/).

---

<div class="post-metadata">

**Author:** ![luocy](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@luocy](https://community.sonarsource.com/u/luocy)\
**Post date:** [November 12, 2021, 3:38am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/12 "2021-11-12T03:38:05Z")

</div>

hi, Can you customize the text on the login interface of sonarqube, such as adding text: please contact XXX for login exceptions

---

<div class="post-metadata">

**Author:** ![mpaladin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mpaladin/32/118_2.png) [@mpaladin](https://community.sonarsource.com/u/mpaladin)\
**Post date:** [November 12, 2021, 8:05am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/13 "2021-11-12T08:05:56Z")

</div>

Hi @luocy ,

> [@luocy](#):
>
> hi, Can you customize the text on the login interface of sonarqube, such as adding text: please contact XXX for login exceptions

this is out of scope, if you have other questions please open a new topic.

---

<div class="post-metadata">

**Author:** ![mpaladin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mpaladin/32/118_2.png) [@mpaladin](https://community.sonarsource.com/u/mpaladin)\
**Post date:** [November 12, 2021, 8:05am UTC](https://community.sonarsource.com/t/the-build-wrapper-dump-json-file-was-found-empty-error/45037/14 "2021-11-12T08:05:59Z")

</div>

Closed on November 12, 2021, 8:05am UTC


