# Build timeout

**URL:** <https://forum.defold.com/t/build-timeout/21642>\
**Category:** Bugs\
**Created:** [June 8, 2018, 1:21am UTC](https://forum.defold.com/t/build-timeout/21642 "2018-06-08T01:21:52Z")\
**Posts on this page:** 6\
**Page:** 5

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 21, 2018, 6:17am UTC](https://forum.defold.com/t/build-timeout/21642/82 "2018-08-21T06:17:16Z")

</div>

@nasthu, could you please take a look at this?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [August 21, 2018, 6:48am UTC](https://forum.defold.com/t/build-timeout/21642/83 "2018-08-21T06:48:39Z")

</div>

> [@Terry](#):
>
> We did tried the clang6 and got some building errors like A building error in release version 1.2.133 with Clang 6.

Well, the screenshot extension should support building with Clang 6 now, what errors did you actually get?  
Since the clang builds each .cpp file in less than a second, but cl.exe (the current default compiler) takes almost one minute, I would strongly suggest you try making your build work with clang. Soon we’ll also make the clang the default compiler for Windows.

Would it be possible to share the project with me? Or at least the extensions that you use?  
Perhaps I can reproduce it locally, by using some net limiter on my computer.

I see in your stats that the upload takes ~8 minutes for each platform, I will try increasing the Editor timeout to 25 minutes (it’s at ten right now) to see if that actually helps.

---

<div class="post-metadata">

**Author:** ![Terry](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/t/b9e5f3/32.png) [@Terry](https://forum.defold.com/u/Terry)\
**Post date:** [August 21, 2018, 12:39pm UTC](https://forum.defold.com/t/build-timeout/21642/84 "2018-08-21T12:39:48Z")

</div>

Hi Mathias,

For the uploading test, i guess you may reproduce it with a lib like google probuf. The key point is to uploading a large file to the build server. You can observer the detailed network traffic during uploading.

Indeed we also want to use the clang 6, but the build is failed.

 ![image](https://forum-defold-uploads.b-cdn.net/original/2X/d/d6ea034121b1753818d82e85e61e1de56a69bd56.png)

The building error for the pragam pack might be introduced by a socket extension base on following lib.  
[include.zip](https://forum-defold-uploads.b-cdn.net/original/2X/a/a9fe0cabbcb3542f6b660cbd448792922ff507bd.zip) (1.0 MB) . This is the only pice of code using pragma pack in our project. Maybe this compiler topic shall be continued in another post: [https://forum.defold.com/t/a-building-error-in-release-version-1-2-133-with-clang-6/25286](https://forum.defold.com/t/a-building-error-in-release-version-1-2-133-with-clang-6/25286)

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [August 21, 2018, 12:58pm UTC](https://forum.defold.com/t/build-timeout/21642/85 "2018-08-21T12:58:13Z")

</div>

What protobuf version do you use?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [August 21, 2018, 1:45pm UTC](https://forum.defold.com/t/build-timeout/21642/86 "2018-08-21T13:45:51Z")

</div>

Also, how many .cpp files does your project contain (in total, in all the extensions)?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [December 7, 2018, 3:33pm UTC](https://forum.defold.com/t/build-timeout/21642/87 "2018-12-07T15:33:46Z")

</div>

Now, we’ve released a fix for DEF-2410 in Editor 2  
(version: 1.2.143 sha1: 733561c366c9b1593d2011ad61757dccdb8fb505)

What this fix does is that it will upload all Native Extension resources the first time you build. But the next time, if a “larger” file was unchanged, it will not be uploaded to the server. Instead, the server uses a cached version of the same file. This is very useful for .lib/.a files etc.

Bob.jar will have this feature as well in the next release (1.2.143)

Edit: Due to some issues, this feature is currently disabled. We’ll rentable it when we’re back at work in January.

[Previous page](https://forum.defold.com/t/build-timeout/21642.md?page=4)
