Oh, I have just about completed compiling my selection of packages on
my Raspberry Pi3, hit a failure with package audio/ladspa.

In T2 config, I chose CPU "cortex-a8" and enabled thumb instructions.
I did NOT tick the "soft floating point" option.

However, I have just discovered that all my packages have compiled
with soft floating point, not using the VFP or NEON.

I found this excellent page, that explains why:

https://community.arm.com/groups/tools/blog/2013/04/15/arm-cortex-a-processors-and-gcc-command-lines

Just specifying "cortex-a8" does not turn on the vfp or neon, they
have to be explicitly turned on.

The ladspa package alerted me to this problem, as it fails with soft
floating point.

At first, I put this into ladspa.conf, but it failed:

var_append GCC_WRAPPER_INSERT " " "-mfpu=vfp3 -mfloat-abi=hard"

...if failed because glibc is compiled without vfp or neon support,
and /usr/include/gnu/stubs-hard.h does not exist, only stubs-soft.h

Note, Debian and Ubuntu armhf DEBs are compiled with
"-mfloat-abi=hard" and /usr/include/gnu/stubs-hard.h exists, not
stubs-soft.h.

So, I changed it to this, and it works:

var_append GCC_WRAPPER_INSERT " " "-mfpu=vfp3 -mfloat-abi=softfp"

This has to be fixed in T2. If it already is, my apologies. I am
currently using an older T2.

Regards,
Barry Kauler



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to