Issues with building APM from sources and failing

Still failing after multiple attempts. It might not have been clear but I am doing this directly on the RPI2. I found this thread that suggests others are having issues building on the RPI2 as well. I guess I’ll try to cross compile: