Home > zero-VM > g++: internal compiler error: Killed (program cc1plus) while building zerovm inside a vagrant box

g++: internal compiler error: Killed (program cc1plus) while building zerovm inside a vagrant box

While Installing zerovm toolchain (build toolchain section from https://github.com/zerovm/toolchain/blob/master/README.md) inside a vagrant box  I came across following error:

 

       g++: internal compiler error: Killed (program cc1plus)

 

it turns out that [1]  that that was because default vegrant box is 360 MB. and 360 MB of ram is not enough for building the toolchain. So, you need to change the vagrant box ram to 1024.

 

This is how you can change vagrant box ram size[2]

config.vm.provider :virtualbox do |vb|
  vb.customize ["modifyvm", :id, "--memory", "1024"]
end



does it give you a luck ?

References:
[1] https://bitcointalk.org/index.php?topic=304389.0
[2] http://stackoverflow.com/questions/12308149/vagrantfile-how-do-i-increase-ram-and-set-up-host-only-networking
Advertisements
Categories: zero-VM
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s