No matter which version of bitcoin I compile (0.10.x - master) I get the following error;
recipe for target 'libbitcoin_server_a-main.o' failed
This is on a Raspberry Pi 2. RAM is fine. It's not hogging that up.
Any ideas?
No matter which version of bitcoin I compile (0.10.x - master) I get the following error;
recipe for target 'libbitcoin_server_a-main.o' failed
This is on a Raspberry Pi 2. RAM is fine. It's not hogging that up.
Any ideas?
Does not look familiar. Can you pastebin the full output of ./automake.sh, ./configure, and make?
Closing due to inactivity.
same issue here, Raspberry Pi 2
$ sudo make install Making install in src make[1]: Entering directory '/home/pi/bin/bitcoin/src' make[2]: Entering directory '/home/pi/bin/bitcoin/src' CXX crypto/libbitcoinconsensus_la-hmac_sha512.lo CXX crypto/libbitcoinconsensus_la-ripemd160.lo CXX crypto/libbitcoinconsensus_la-sha1.lo CXX crypto/libbitcoinconsensus_la-sha256.lo CXX crypto/libbitcoinconsensus_la-sha512.lo CXX primitives/libbitcoinconsensus_la-transaction.lo CXX script/libbitcoinconsensus_la-bitcoinconsensus.lo CXX script/libbitcoinconsensus_la-interpreter.lo CXX script/libbitcoinconsensus_la-script.lo CXXLD libbitcoinconsensus.la 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-4.9/README.Bugs for instructions. Makefile:3578: recipe for target 'libbitcoin_server_a-init.o' failed make[2]: *** [libbitcoin_server_a-init.o] Error 4 make[2]: Leaving directory '/home/pi/bin/bitcoin/src' Makefile:6542: recipe for target 'install-recursive' failed make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory '/home/pi/bin/bitcoin/src' Makefile:620: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1
@pinheadmz same issue with gcc?
That could just be an out of memory while compiling.
Yep that's it, fixed by enlarging swap file. Thanks guys
Thx! enlarging swap is the solution.
Just wanted to add how to increase the swap size.
I used this how-to and set the swap size to 2048. Had to reboot a couple of times, but now it is compiling. Also, I had to install dphys-swapfile manually. Thanks for the hint!
thanks @sipa @pinheadmz @PJUllrich I found a solution on low (1G) ram VPS.
I had same issue and add 4G swap to my low spec VPS (ram1G, 1cpu). It resolved this issue.
how to enlarge swap on ubuntu 16.04 vps
https://hostadvice.com/how-to/how-to-add-swap-space-in-ubuntu-16-1/