recipe for target 'libbitcoin_server_a-main.o' failed #6624

issue owenashurst opened this issue on September 2, 2015
  1. owenashurst commented at 9:18 PM on September 2, 2015: none

    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?

  2. laanwj added the label Build system on Sep 4, 2015
  3. laanwj commented at 1:58 PM on September 4, 2015: member

    Does not look familiar. Can you pastebin the full output of ./automake.sh, ./configure, and make?

  4. laanwj commented at 5:55 PM on September 22, 2015: member

    Closing due to inactivity.

  5. laanwj closed this on Sep 22, 2015

  6. pinheadmz commented at 6:04 AM on January 4, 2016: member

    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

  7. dcousens commented at 6:08 AM on January 4, 2016: contributor

    @pinheadmz same issue with gcc?

  8. sipa commented at 8:42 AM on January 4, 2016: member

    That could just be an out of memory while compiling.

  9. pinheadmz commented at 9:12 AM on January 4, 2016: member

    Yep that's it, fixed by enlarging swap file. Thanks guys

  10. dukati commented at 10:23 PM on March 30, 2017: none

    Thx! enlarging swap is the solution.

  11. PJUllrich commented at 5:54 PM on March 3, 2018: none

    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!

  12. cryptozeny commented at 10:52 AM on January 31, 2019: none

    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/

  13. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-01 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me