forked from cryptonotefoundation/cryptonote
-
Notifications
You must be signed in to change notification settings - Fork 2
Fixing C Internal Compile Error when building in Ubuntu 16.04
Jared Odulio edited this page Mar 20, 2018
·
3 revisions
This was a trial and error attempt to build Tamadcoin for Ubuntu 16.04 second seed node which is not a dedicated server but a cheaper VPS compared to the main seed node. What I did:
- Update GCC compiler to 7.2 or the latest stable build
- Update Boost to 1.58
- Update physical memory to 8GB
- Allocated swap space using the following commands
free dd if=/dev/zero of=/var/swap.img bs=1024k count=8370176 mkswap /var/swap.img swapon /var/swap.img free
- fix the crypto.cpp file replacing the line
return sizeof(rs_comm) + pubs_count * sizeof(((rs_comm*)0)->ab[0]);
thanks to the genius from bytecoin repo
- build the source with make -j 3, only maximum of 3 jobs instead of make -j which will cause out of memory error
2 Seed Nodes are running now, waiting for something to happen overnight
======= Update: 2 nodes successfully mined it's initial tokens and has distributed some amount to other users.