Author

Topic: [SOLVED] g++: internal compiler error: Killed (program cc1plus) (Read 62739 times)

legendary
Activity: 1862
Merit: 1002
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.
member
Activity: 72
Merit: 10
turns out 512mb of ram is not enough either Cheesy, you need 1gb ram
full member
Activity: 154
Merit: 100
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!
hero member
Activity: 714
Merit: 500
OK solved i build on a 4g ram system no worrys, turns out 256 is to low Wink
For others stuck here, make sure you do a "free -m" and see how much ram you have.
hero member
Activity: 714
Merit: 500
I tried adding a extra 1g swap space, still had problems.
I just bought some more ram.... ill keep you posted.
legendary
Activity: 1596
Merit: 1012
Democracy is vulnerable to a 51% attack.
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.
full member
Activity: 141
Merit: 100
Sounds as if your out of memory try adding even more swap space.
hero member
Activity: 714
Merit: 500
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 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
Jump to: