Installation failed: gcc exited with exit code 4

Probably a memory problem?
see python - lxml installation error ubuntu 14.04 (internal compiler error) - Stack Overflow