Compiling RPI.GPIO Fails

I cant compile RPI.GPIO from Lemaker or Sinvoip,

ld exited or arm-linux-gnueabihf exited.

does some one could explain me why?