Today, when downloading and compiling P4C, it was extremely slow and ran for a long time. I jumped out this error:
c++: fatal error: Killed signal terminated program cc1plus

Solution:
Just turn off the virtual machine and increase the allocated memory…

It’s 100%.. Happy!