It seems GCC is allocating a lot of memory, check this
Stopping as many services as possible (Apache, MySQL etc.) will free up more memory, and Phalcon will compile. Worst case scenario you will need to increase the memory of your virtual box.
Thanks to @AndrewD for providing the link that works.