If you like what I do and would like me to do more, feel free to donate.
[TUTORIAL] Setup GCC6 on Raspberry Pi
As of the latest version, MAME now requires GCC 5 as a minimum to compile. Raspbian Jessie ships with GCC 4.9.2 which, at nearly 2 years old, is now just a little too stable. GCC 6.2 is considered stable so there seems no reason to not upgrade.