All of lore.kernel.org
 help / color / mirror / Atom feed
* Building for armv7athf-neon but toolchain is softfp
@ 2016-07-22 13:39 thilo.cestonaro
  2016-07-22 14:10 ` Khem Raj
  0 siblings, 1 reply; 12+ messages in thread
From: thilo.cestonaro @ 2016-07-22 13:39 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org

[-- 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 --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-07-28 13:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-22 13:39 Building for armv7athf-neon but toolchain is softfp thilo.cestonaro
2016-07-22 14:10 ` 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

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.