Softfp Library on a Hardfp system

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Softfp Library on a Hardfp system

Postby antibni » Sat Nov 21, 2015 1:04 am

Hi guys,

I've been researching for quite some time now, and there are people who made kinda sorta similar questions but the response they get does not work for me.

I have Arch installed on my RaspBerry Pi 2 with the latest built Kernel. and I am working with a library that the documentation says It requires a Softfp system.

$this->bbcode_second_pass_quote('', '
')Type: Linux OS
Endian: Little
Float ABI: Soft
GNU C Library: 2.10 or more


During my research, I found this statement:
$this->bbcode_second_pass_quote('', 'V')FP hardware floating-point support using the soft-float ABI. This is selected by the -mfloat-abi=softfp option. When you select this variant, the compiler generates VFP floating-point instructions, but the resulting code uses the same call and return conventions as code compiled with software floating point.


I have tried compiling my code with the arguments:
$this->bbcode_second_pass_code('', ' -mtune=cortex-a9 -mfpu=neon-mfloat-abi=softfp')

but it fails with "gnu/stubs-soft.h: No such file or directory"

If the above quote is true, Where can I get that header file??

If the quote is NOT true, That means I need to compile Arch with Softfp right?
I also heard that the kernel does not even use floating points but does it make a difference compiling the kernel with softfp?

I'm a bit new to all this but I know I can tackle anything if I have the right information, I also don't want to go so deep into the rabbit hole and spend a few days and realize that I just wasted all that time.

Thanks,
Any help will be greatly appreciated!
antibni
 
Posts: 2
Joined: Sat Nov 21, 2015 12:34 am

Re: Softfp Library on a Hardfp system

Postby WarheadsSE » Sat Nov 21, 2015 3:57 pm

You really need to get this library in hardfloat. Otherwise, use a soft-float v5 userland in a chroot
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Softfp Library on a Hardfp system

Postby antibni » Sat Nov 21, 2015 6:14 pm

WarheadsSE,

Thank you for the response.

Is there a particular reason why you said v5? I'm working on the PI 2 which is ARMV7.
antibni
 
Posts: 2
Joined: Sat Nov 21, 2015 12:34 am

Re: Softfp Library on a Hardfp system

Postby WarheadsSE » Sun Nov 22, 2015 7:43 pm

Because v5 is the only soft-float we distribute.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 14 guests