You are trying to build with 3.0.4 => that is
not supported.
The OVERRIDEVERSIONCHECK is no guarantee for this to work. In fact the version check happens because it will fail in many cases.
To be honest, I am surprised you get as far as the log says you got... I would have thought an error to happen way earlier.
/home/freeman/BACKUP/freepascal/source/compiler/ppc1 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU/home/freeman/BACKUP/freepascal/source/rtl/units/x86_64-linux -Cg -O1 -dx86_64 -dRELEASE -Us -Sg system.pp
make[7]: *** [Makefile:3848: system.ppu] Segmentation fault
It looks like you made it through the first "cycle". I would have thought that it may bail out before with some error. But it created a ppc1.
Though given that this crashes, it created this with errors.
I don't know the kind of error, and I recommend a newer version of fpc as start-compiler.
But if you insist on trying then try
OPTNEW="-O-"
I have no idea if it will help at all. It may not. It would be pure luck. And even if it does compile all the way, then it does not mean the result is correct (i.e. without bugs due to the old starting compiler).