Psptoolchain does not compile

I was trying to compile the psptoolchain on my MacBook Pro(2018), but it gave me an error. Full build log: https://mega.nz/#!XegEDYKY!vPrDWgq0au83kosgZYHNqx441xbdEhcnhWevPL10IFg

I'm on Mac Os Mojave(10.14.2 beta).