have you done the cross-compile to arm compiler? I think the problem is cross-compiler you have to compile with arm-gnu gcc ++