+elraro: that sounds like an issue where GCC is being killed because you are overusing system resources. Since you said "OVH kernel with grsec" I guess you need to increase the memory and/or cpu of the machine.
Edit: ignore what I said, see Aokrome's answer below