On Fri, Oct 10, 2014 at 05:51:08PM -0700, Wy kevinthesun wrote:
> These errors occur when I add "-mfloat-abi=hardfp" to the toolchain
> setting. If I don't add it, no error occurs. Now I think the problem is
> that 1.5.1 or 1.6.2 toolchain doesn't support hard float, which is required
> by my yocto 1.5.1 system.

Can you please explain how you got your "1.5.1 yocto system"? Did you built it 
yourself or downloaded prebuilt from the site? If latter, then it should match 
the toolchain...


> 2014-10-10 16:27 GMT-07:00 Denys Dmytriyenko <de...@denix.org>:
> 
> > 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.deche...@linaro.org
> > >:
> > >
> > > > On Thu, Oct 9, 2014 at 10:27 PM, Wy kevinthesun <
> > kevinthesu...@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.
> > > >
> >
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to