Unable to build a separate MAME core

Hello

I want to build a MAME core, but it seems that the MAME build patch doesn’t work and can’t complete the compilation. Can you help me see it?

Thank you in advance.