Yes I think I know which is the error you are talking about... you just have to edit the Makefile inside the midstate folder and change the -march compile flag so it looks like this:
-march=armv6
That worked for me... you'll need to indicate the proper architecture as well