Thanks, nts31180! 
@itr4e,
To free some space before the build process, use these commands:
sudo apt-get clean
sudo apt-get autoclean
Did you were able to build MAME, yet?
Hi sorry for the late reply been pretty busy and just noticed your post.
I did managed to fix it yes, don't recall what I did though.
I also made some changes on my own for simplicity, since it's for the kids and dont want to be complicated but easy enough to change games if needed without menus.
I added a script that reads some files from the boot volume and depending on that it starts the game and the relevant parameters with it, eg rotate, emulator and config.
So it starts only one game and no menu for kids to mess around with
Will do some changes some time this or next month in preparation of summer
thanks for your great work on that