Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: vual on September 29, 2013, 04:16:32 AM



Title: [SOLVED] g++: internal compiler error: Killed (program cc1plus)
Post by: vual on September 29, 2013, 04:16:32 AM
SOLVED: Not enough ram, make sure to run the command "free -m" and check your ram, turns our 256 isnt enough even with all the swap space in the world.

Hi guys ,

I have tried everything, swap space fix, building dependencys from scratch, ... reinstalling os.. everything.
Anyway i keep getting this error:


http://pastebin.com/w14BVNAL

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.7/README.Bugs> for instructions.
make: *** [obj/alert.o] Error 4


All dependencys are fine, its just this strange error im getting, i tried to check dmsg and there was no info about running out of memory and i tried to give it 1g of swapspace before build.. still same error.

I offer a 0.1BTC bounty to any linux wizard that can jump on my home windows box via team-view and use my ssh connection threw that to get it to compile.

Bounty's on the table,
MSG me if you are interested.
-Scott


Title: Re: g++: internal compiler error: Killed (program cc1plus)
Post by: GoldenWings91 on September 29, 2013, 04:36:14 AM
Sounds as if your out of memory try adding even more swap space.


Title: Re: g++: internal compiler error: Killed (program cc1plus)
Post by: JoelKatz on September 29, 2013, 04:42:40 AM
I agree with GoldenWings91. How much swap space and memory do you have? Make sure you're only compiling one file at a time. You can watch with 'top' as it compiles. See how many compilers it's starting and how big the RSS of the compiler process gets. Determine, for sure, whether it's virtual memory exhaustion or not.


Title: Re: g++: internal compiler error: Killed (program cc1plus)
Post by: vual on September 29, 2013, 06:01:53 AM
I tried adding a extra 1g swap space, still had problems.
I just bought some more ram.... ill keep you posted.


Title: Re: g++: internal compiler error: Killed (program cc1plus)
Post by: vual on September 29, 2013, 06:10:44 AM
OK solved i build on a 4g ram system no worrys, turns out 256 is to low ;)
For others stuck here, make sure you do a "free -m" and see how much ram you have.


Title: Re: [SOLVED] g++: internal compiler error: Killed (program cc1plus)
Post by: twistedtrick on December 18, 2013, 09:04:10 PM
Currently having this issue as well - going to try and boost my RAM and see if it solves the issue. Thank you for the topic/solution!


Title: Re: [SOLVED] g++: internal compiler error: Killed (program cc1plus)
Post by: headsex on December 23, 2013, 04:39:39 AM
turns out 512mb of ram is not enough either :D, you need 1gb ram


Title: Re: [SOLVED] g++: internal compiler error: Killed (program cc1plus)
Post by: GoldSeal on June 18, 2014, 06:20:18 AM
I had the same problem ona  digital ocean $5 VPS. Couldn't compile a client to save my life. The fix was to do the following:

Code:
free
dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
mkswap /var/swap.img
swapon /var/swap.img
free
make -f makefile.unix

Regardless of what the first poster said. Swap will overcome this problem.