Compiling BU from source - Error (Ubuntu Server)

theghost1980

New Member
Mar 30, 2017
2
1
Hi there guys I have been trying to compile from source, following the instructions and I am still getting this error:

Making all in src
make[1]: Entering directory '/home/ubuntu/bu-src/src'
make[2]: Entering directory '/home/ubuntu/bu-src/src'
CXX libbitcoin_server_a-init.o
g++:internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Makefile:4925: recipe for target 'libbitcoin_server_a-init.o' failed
make[2]: *** [libbitcoin_server_a-init.o] Error 4
make[2]: Leaving directory '/home/ubuntu/bu-src/src'
Makefile:8240: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/bu-src/src'
Makefile:653: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

The error persist even executing > sudo make , or > make

The server Specs:
1 GB Ram
10 GB HDD
Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
cache size : 30720 KB

Thanks!
 

freetrader

Moderator
Staff member
Dec 16, 2015
2,806
6,088
Not enough memory to compile Bitcoin Unlimited (it's abbreviated BU, not BTU* btw). Your compiler got killed because it ran out of memory. Maybe setting up more swap space could help, but it's going to be very slow to compile. Better take the compilation to a machine with more RAM.

I've only tried on machines with 2GB+ , I don't know what the lower limit is.

---

* BTU is a term introduced by some who think there is going to be a 'Bitcoin Unlimited' currency after a hard fork. This is a misunderstanding on their part. Bitcoin Unlimited has no plans for a separate currency - only to support and follow Bitcoin's greatest proof-of-work chain (allowing for block size increase by majority).
 
Last edited:

solex

Moderator
Staff member
Aug 22, 2015
1,558
4,693
fixed thread title to avoid confusion
 

theghost1980

New Member
Mar 30, 2017
2
1
Not enough memory to compile Bitcoin Unlimited (it's abbreviated BU, not BTU* btw). Your compiler got killed because it ran out of memory. Maybe setting up more swap space could help, but it's going to be very slow to compile. Better take the compilation to a machine with more RAM.

I've only tried on machines with 2GB+ , I don't know what the lower limit is.

---

* BTU is a term introduced by some who think there is going to be a 'Bitcoin Unlimited' currency after a hard fork. This is a misunderstanding on their part. Bitcoin Unlimited has no plans for a separate currency - only to support and follow Bitcoin's greatest proof-of-work chain (allowing for block size increase by majority).
Hi there thanks for answering. Got it BU will be from now on.

Some of the info in the GitHub repository: "C++ compilers are memory-hungry. It is recommended to have at least 1 GB of memory available when compiling Bitcoin Unlimited. With 512MB of memory or less compilation will take much longer due to swap thrashing."

I will try swapping the memory to 2 GB. If I succeed I will let you to know, so you may update this info in the GitHub files.
I guess, in the future, will be users supporting nodes, using the same service of AWS.
Thanks for the correction Solex!
 
Last edited:
  • Like
Reactions: freetrader