[yocto] Cannot run simple binary executable file

Wy kevinthesun kevinthesunwy at gmail.com
Thu Oct 9 13:27:21 PDT 2014


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.

Thank you!

2014-10-09 0:10 GMT-07:00 Nicolas Dechesne <nicolas.dechesne at linaro.org>:

> On Wed, Oct 8, 2014 at 11:34 PM, Wy kevinthesun <kevinthesunwy at gmail.com>
> wrote:
> > Hi Denys, I have tried 1.5.1 and 1.3. All of them use ld-linux.so.3.
> > Actually in the /lib directory of these toolchains I only find
> > ld-linux.so.3.
>
> it's not really about the toolchain version, but the compiler options
> you are using. a given toolchain will by default use wither soft-flat
> or hard-float, but you can specify different ABI on the gcc command
> line.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141009/0a9e0701/attachment.html>


More information about the yocto mailing list