I have yet to try compiling trinitycore on linux, but I've compiled other gameservers before and in one particular case, had to have 8gbs free in order to compile everything, so try increasing it to 2-4gbs and see if it compiles.
From the errors on the log, you seem to be running out of memory.
How much do you have on that specific box/vm? If it's a VM, try increasing the memory allocated to it.