Nice thats great news, i just built 2.5.0 on it too, had a small issue with libm.a linking on it and with ultima and titanic engines giving me a error but managed to get it compiled eventually. so hopefully you can compile all versions now, and yeah i hope you can find the issue, it would be great if you can compile all versions. (Would be even better if there was a proper scummvm port for ps4 though, the only one that seems to exist is the retroarch core for ps4).
Good luck and if there is anything i can do it help let me know
And the errors on the previous post, the 4 env seems like a libpng issue, but the top one does look like a gcc issue, but i guess it no longer matters since you can compile now