https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95122
--- Comment #5 from chengcongxiu at huawei dot com <chengcongxiu at huawei dot com> --- (In reply to Richard Earnshaw from comment #4) > Don't use -mhard-float or -msoft-float. Instead, you should be using > -mfloat-abi=[hard|softfp|soft] as appropriate. Also, rather than encoding > this into various sets of flags you should configure the compiler with > --with-float=[hard|softfp|soft] as your environment requires. Then it > should not be necessary to pass various flags into the library builds. > > There's no such option as -mhardfloat. thank you! for GCC 4.9, compile gcc first ,gcc second and final with flags --with-float=hard can compiler arm-linux-gnueabihf!!!