[yocto] Cannot run simple binary executable file

Nicolas Dechesne nicolas.dechesne at linaro.org
Thu Oct 9 23:12:35 PDT 2014


On Thu, Oct 9, 2014 at 10:27 PM, Wy kevinthesun <kevinthesunwy at gmail.com> wrote:
> It seems that Yocto 1.5.1 is built with hard float. However, the 1.51, 1.6
> and  1.62 toolchains are soft float. When I tried to set
> "-mfloat-abi=hardfp" in the compile option, the compiling process ran into
> error. It seems these toolchains don't  support hard float? How can I solve
> this problem?
>
> These are my set in the environment file of 1.5.1 toolchain:
> export CC="arm-poky-linux-gnueabi-gcc  -march=armv5te -marm
> -mthumb-interwork -mfloat-abi=hardfp
> --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> export CXX="arm-poky-linux-gnueabi-g++  -march=armv5te -marm
> -mthumb-interwork -mfloat-abi=hardfp
> --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> export CPP="arm-poky-linux-gnueabi-gcc -E  -march=armv5te -marm
> -mthumb-interwork -mfloat-abi=hardfp
> --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
>
> It ran into error.


maybe because the gcc documentation says -mfloat-abi=hard, not =hardfp ?

in general, showing us the error you have is much preferred, otherwise
it's difficult to help if we don't really know what went wrong.

cheers.



More information about the yocto mailing list