Managed to get petalinux layer to compile gcc-runtime 4.8.2