Compilation fails : xtensa-lx106-elf-g++: fatal error: Killed signal terminated program cc1plus

Wow, thank you very much man. This issue has been frustrating me for so long, that i ended giving up, but now after a year i wanted to try again after reading this method.

It solved the issue for my Raspberry Pie 3B+ !
The RPI simply dont have enough muscles for this task, even when i disabled all other add-ons.

Thank you so much!