[yocto] Cannot run simple binary executable file
Denys Dmytriyenko
denis at denix.org
Fri Oct 10 16:27:56 PDT 2014
On Fri, Oct 10, 2014 at 04:15:42PM -0700, Wy kevinthesun wrote:
> 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
That doesn't sound like a toolchain error, but rather an autotools one. Make
sure you are setting up cross compilation properly.
> 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.
> >
More information about the yocto
mailing list