# Building v1.0.6 requires \> 6GB of ram

**URL:** <https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544>\
**Category:** Technical Support\
**Created:** [March 3, 2017, 11:08pm UTC](https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544 "2017-03-03T23:08:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![wildcat](https://avatars.discourse-cdn.com/v4/letter/w/439d5e/32.png) [@wildcat](https://forum.zcashcommunity.com/u/wildcat)\
**Post date:** [March 3, 2017, 11:08pm UTC](https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544/1 "2017-03-03T23:08:14Z")

</div>

I am not able to build 1.0.6. I get out of memory errors and top shows I am actually out of memory. If I switch back to 1.0.5 everything builds fine and does not even get low on mem. Watching the build in top seems to show 1.0.6 creating many many more threads than 1.0.5…

---

<div class="post-metadata">

**Author:** ![anon47418038](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anon47418038](https://forum.zcashcommunity.com/u/anon47418038)\
**Post date:** [March 4, 2017, 4:36am UTC](https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544/2 "2017-03-04T04:36:55Z")

</div>

are you building with `zcutil/build.sh -j<some number>` which does a parallel make, or just `zcutil/build.sh` ???

If the latter, you can always add swap, which I know is Not A Good Thing, but will get you there

---

<div class="post-metadata">

**Author:** ![bitcartel](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/bitcartel/32/8558_2.png) [@bitcartel](https://forum.zcashcommunity.com/u/bitcartel)\
**Post date:** [March 6, 2017, 6:10pm UTC](https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544/5 "2017-03-06T18:10:17Z")

</div>

Are you still having memory issues? What about when building on a fresh reboot?

I’ve filed a ticket about this just in case something has changed in the build script which causes more memory usage: [Building 1.0.6 consumes more memory and threads than building 1.0.5 · Issue #2154 · zcash/zcash · GitHub](https://github.com/zcash/zcash/issues/2154)

---

<div class="post-metadata">

**Author:** ![wildcat](https://avatars.discourse-cdn.com/v4/letter/w/439d5e/32.png) [@wildcat](https://forum.zcashcommunity.com/u/wildcat)\
**Post date:** [March 6, 2017, 7:09pm UTC](https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544/6 "2017-03-06T19:09:35Z")

</div>

Yes, I am still having this issue. I am building in a virtual ubuntu machine (vbox) with 7GB of memory allocated (6GB free after boot). I’ve restarted many times adjusting my memory allocated to the vm. I’ve built (I think) all the previous version of zcash without issue with total system memory of just 5GB. I am just using 1 CPU in the vm. I’ll try 1.0.7 as soon as its out and maybe things will just work again.

---

<div class="post-metadata">

**Author:** ![anon47418038](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anon47418038](https://forum.zcashcommunity.com/u/anon47418038)\
**Post date:** [March 6, 2017, 9:55pm UTC](https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544/7 "2017-03-06T21:55:18Z")

</div>

1.0.7 is tagged in the repo, so you can build from source now

---

<div class="post-metadata">

**Author:** ![wildcat](https://avatars.discourse-cdn.com/v4/letter/w/439d5e/32.png) [@wildcat](https://forum.zcashcommunity.com/u/wildcat)\
**Post date:** [March 7, 2017, 4:52am UTC](https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544/8 "2017-03-07T04:52:16Z")

</div>

Just tried building tag v1.0.7 and I have the same high memory usage issue as with v1.0.6. It seems to just keep creating new cpp threads until memory fills up… The previous versions don’t seem to behave like this? Can someone else just check their memory usage when you build? My build exceeds 4GB probably within 3-4 mins of the build.

---

<div class="post-metadata">

**Author:** ![anon47418038](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anon47418038](https://forum.zcashcommunity.com/u/anon47418038)\
**Post date:** [March 7, 2017, 7:57am UTC](https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544/9 "2017-03-07T07:57:19Z")

</div>

what exact command line are you typing when you compile it?

---

<div class="post-metadata">

**Author:** ![wildcat](https://avatars.discourse-cdn.com/v4/letter/w/439d5e/32.png) [@wildcat](https://forum.zcashcommunity.com/u/wildcat)\
**Post date:** [March 7, 2017, 12:17pm UTC](https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544/10 "2017-03-07T12:17:13Z")

</div>

See the below command line, I have tried with and without a make clean. I just started and terminated the build below before the memory fail error.

rd@rd-VirtualBox:~/git/zcash$ ls  
aclocal.m4 config.log COPYING libzcashconsensus.pc qa  
autogen.sh config.status depends libzcashconsensus.pc.in README.md  
autom4te.cache configure doc Makefile share  
build-aux configure.ac INSTALL Makefile.am src  
code\_of\_conduct.md contrib libtool Makefile.in zcutil  
rd@rd-VirtualBox:~/git/zcash$ git remote show origin

- remote origin  
Fetch URL: [GitHub - zcash/zcash: Zcash - Internet Money](https://github.com/zcash/zcash.git)  
Push URL: [GitHub - zcash/zcash: Zcash - Internet Money](https://github.com/zcash/zcash.git)  
HEAD branch: master  
Remote branches:  
1597.fix-test-race-condition tracked  
auto tracked  
daira-equihash-benchmark-50-iterations tracked  
daira-link-readme-to-protocol-spec tracked  
daira-update-CoC-email tracked  
master tracked  
try tracked  
Local branch configured for ‘git pull’:  
master merges with remote master  
Local ref configured for ‘git push’:  
master pushes to master (local out of date)  
rd@rd-VirtualBox:~/git/zcash$ git checkout v1.0.7  
HEAD is now at d9bfce7… Update debian changelog for 1.0.7 release process  
rd@rd-VirtualBox:~/git/zcash$ ./zcutil/build.sh -j$1  
+++ readlink -f ./zcutil/build.sh  
++ dirname /home/rd/git/zcash/zcutil/build.sh

- cd /home/rd/git/zcash/zcutil/…
- LCOV\_ARG=
- HARDENING\_ARG=–enable-hardening
- TEST\_ARG=
- ‘[’ x-j = x–enable-lcov ‘]’
- ‘[’ x-j = x–disable-tests ‘]’
- MINING\_ARG=
- ‘[’ x-j = x–disable-mining ‘]’  
++ pwd
- PREFIX=/home/rd/git/zcash/depends/x86\_64-unknown-linux-gnu/
- HOST=x86\_64-unknown-linux-gnu
- BUILD=x86\_64-unknown-linux-gnu
- make -j -C ./depends/ V=1 NO\_QT=1  
make: Entering directory ‘/home/rd/git/zcash/depends’  
^CMakefile:142: recipe for target ‘check-sources’ failed  
make: \*\*\* [check-sources] Interrupt

rd@rd-VirtualBox:~/git/zcash$

---

<div class="post-metadata">

**Author:** ![anon47418038](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anon47418038](https://forum.zcashcommunity.com/u/anon47418038)\
**Post date:** [March 7, 2017, 12:18pm UTC](https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544/11 "2017-03-07T12:18:50Z")

</div>

Try it with just `./zcutil/build.sh`  
to compile

---

<div class="post-metadata">

**Author:** ![wildcat](https://avatars.discourse-cdn.com/v4/letter/w/439d5e/32.png) [@wildcat](https://forum.zcashcommunity.com/u/wildcat)\
**Post date:** [March 7, 2017, 1:02pm UTC](https://forum.zcashcommunity.com/t/building-v1-0-6-requires-6gb-of-ram/14544/12 "2017-03-07T13:02:20Z")

</div>

Hey, wow that was it. Weird I wouldn’t have expected that behavior to change. Does the -j flag still work if you have more than one processor?
