[yocto] Cannot run simple binary executable file

Wy kevinthesun kevinthesunwy at gmail.com
Fri Oct 10 16:15:42 PDT 2014


I tried both hard and hardfp. They both returned 3 errors:

C compiler cannot create executables    Hello        -1    Configure Problem
in `/home/kevinthefire/workspace/Hello':    Hello        -1    Configure
Problem
make: *** No rule to make target `all'.    Hello             C/C++ Problem




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

> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141010/374ed2c5/attachment.html>


More information about the yocto mailing list