From: Denys Dmytriyenko <denis@denix.org>
To: Wy kevinthesun <kevinthesunwy@gmail.com>
Cc: Yocto list discussion <yocto@yoctoproject.org>
Subject: Re: Cannot run simple binary executable file
Date: Fri, 10 Oct 2014 19:27:56 -0400 [thread overview]
Message-ID: <20141010232756.GR25997@denix.org> (raw)
In-Reply-To: <CAG6mzOPvNvjcN+2kmeYkd3efkbsSa5gsG4SUF0VMT-f8_ZnB7w@mail.gmail.com>
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@linaro.org>:
>
> > On Thu, Oct 9, 2014 at 10:27 PM, Wy kevinthesun <kevinthesunwy@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 prev parent reply other threads:[~2014-10-10 23:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-07 11:07 Cannot run simple binary executable file Wy kevinthesun
2014-10-07 15:17 ` Khem Raj
2014-10-07 15:21 ` Nicolas Dechesne
2014-10-08 1:17 ` Wy kevinthesun
2014-10-08 2:05 ` Wy kevinthesun
2014-10-08 20:43 ` Denys Dmytriyenko
2014-10-08 21:34 ` Wy kevinthesun
2014-10-08 22:04 ` Maciej Borzecki
2014-10-09 7:10 ` Nicolas Dechesne
2014-10-09 20:27 ` Wy kevinthesun
2014-10-10 6:12 ` Nicolas Dechesne
2014-10-10 23:15 ` Wy kevinthesun
2014-10-10 23:27 ` Denys Dmytriyenko [this message]
2014-10-11 0:51 ` Wy kevinthesun
2014-10-11 1:16 ` Denys Dmytriyenko
2014-10-11 5:19 ` Wy kevinthesun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141010232756.GR25997@denix.org \
--to=denis@denix.org \
--cc=kevinthesunwy@gmail.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.