1

I am trying to install bitcoin server using this guide
https://www.sky-ip.org/configure-bitcoin-node-debian-ubuntu.html
However when I make, I see the error

g++: internal compiler error: Killed (program cc1plus)  
Please submit a full bug report,  
with preprocessed source if appropriate.  
Making all in src  
make[1]: Entering directory /root/bitcoinsrc/bitcoin/src  
make[2]: Entering directory /root/bitcoinsrc/bitcoin/src  
CXX      libbitcoin_server_a-main.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.  
make[2]: ** [libbitcoin_server_a-main.o] Error 4  
make[2]: Leaving directory /root/bitcoinsrc/bitcoin/src  
make[1]: ** [all-recursive] Error 1  
make[1]: Leaving directory /root/bitcoinsrc/bitcoin/src  
make: ** [all-recursive] Error 1'

Following advice to install and use clang instead, I can't get Ubuntu to actually use Clang:

When I try to make It still uses the old GCC. When i try 'sudo apt-get update-alternatives --config c++'
E: Command line option --config is not understood

When I try sudo update-alternatives --query c++ I get

Name: c++  
Link: /usr/bin/c++  
Slaves:  
c++.1.gz /usr/share/man/man1/c++.1.gz  
Status: auto  
Best: /usr/bin/clang++-3.6  
Value: /usr/bin/clang++-3.6  

Alternative: /usr/bin/clang++-3.6  
Priority: 100  
Slaves:  

Alternative: /usr/bin/g++  
Priority: 20  
Slaves:  
c++.1.gz /usr/share/man/man1/g++.1.gz  

I want to be able to compile this somehow someway. This is my first time trying to compile so I am pretty unfamiliar with it. Please explain noobly

Derek
  • 11
  • It seems that g++ itself is crashing, which is not that common. Could you try with a newer g++? E.g. Ubuntu 15.10 ships with 5.2.1. – juzzlin Nov 05 '15 at 20:11
  • I am running 14.04 from my VPS provider. Is there a way I can upgrade g++? – Derek Nov 06 '15 at 00:13
  • See: http://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-4-9-on-ubuntu-14-04 – juzzlin Nov 06 '15 at 07:03
  • You could also try compiling with Clang which is compatible with GCC. – juzzlin Nov 06 '15 at 07:07
  • Same error even with 4.9. I updated above so u can see it is using 4.9... How do I do it with Clang? I'm not familiar how to install and use it – Derek Nov 06 '15 at 08:05
  • IIRC "sudo apt-get install clang-3.6" and then for setting it the default c++ compiler see this: http://stackoverflow.com/questions/30549502/installed-clang3-6-on-ubuntu-cant-select-as-alternative – juzzlin Nov 06 '15 at 12:48
  • Updated the thread, having problems with both gcc and clang now – Derek Nov 07 '15 at 07:03
  • Can you check the kernel logs? (dmesg | tail) My guess is that your VPS is running out of memory and then decides to kill g++ – Lekensteyn Nov 07 '15 at 09:43
  • It says 512 ram 512 vswap. I am getting Out of memory in UB 3023: OOM killed process 12260 (cc1plus). Can I still use clang? Why won't it setup properly..I didn't know this could happen, can't it just compile slower? – Derek Nov 08 '15 at 15:45

0 Answers0