All of lore.kernel.org
 help / color / mirror / Atom feed
From: "thilo.cestonaro@ts.fujitsu.com" <thilo.cestonaro@ts.fujitsu.com>
To: "openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Building for armv7athf-neon but toolchain is softfp
Date: Fri, 22 Jul 2016 13:39:35 +0000	[thread overview]
Message-ID: <1469194596.6594.13.camel@ts.fujitsu.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1400 bytes --]

Hey all!

Hopefully this is no dumb question but I can't find any solution currently.

I want to build my own dist and a sdk for it. The dist is working and is as expected by the DEFAULT_TUNE of "armv7athf-neon", hardfp.

But the TARGET_SYS in the bitbake header always tells me, that the toolchain it uses is "...-gnueabi". Not "hf" in there?!
Thats the first thing what I can't figure out.

The other thing is, when I now use the sdk, after successfully populating it, the toolchain in there has the default -mfloat-abi=softfp ... 
But even when I compile with -mfloat-abi=hard, the executable which I get, segfaults on the target and ldd tells me "not a dynamic executable".
But readelf (on the target or host) tells me, that "Tag_ABI_VFP_args: VFP registers" (which is detection for hardfp, right?). 
And I miss the "hf" at the gnueabi in the sdk toolchain.


my program was the following and it compiled without any warnings or errors:
----------
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
	cout << "Hello World!" << endl;
	return 0;
}
--------------

I also tried Default tune to set to "cortexa8thf-neon" which had the same result.


Any hints why the toolchain is softfp by default?

Regards,
Thilo

PS: When I use the ubuntu arm-linux-gnueabihf-g++ with the sdk sysroot, the helloworld program works as expected.



[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3847 bytes --]

             reply	other threads:[~2016-07-22 13:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-22 13:39 thilo.cestonaro [this message]
2016-07-22 14:10 ` Building for armv7athf-neon but toolchain is softfp Khem Raj
2016-07-25 14:06   ` thilo.cestonaro
2016-07-25 14:14     ` Khem Raj
2016-07-26  9:39       ` thilo.cestonaro
2016-07-27  9:57         ` Khem Raj
2016-07-27 12:06           ` thilo.cestonaro
2016-07-27 12:14           ` thilo.cestonaro
2016-07-27 15:18             ` Khem Raj
2016-07-28  7:11               ` thilo.cestonaro
2016-07-28  8:18                 ` thilo.cestonaro
2016-07-28 13:55                   ` Khem Raj

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=1469194596.6594.13.camel@ts.fujitsu.com \
    --to=thilo.cestonaro@ts.fujitsu.com \
    --cc=openembedded-core@lists.openembedded.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.