Re: Problems compiling libmad-0.15.1b on ARM CortexA9

Drasko DRASKOVIC <[email protected]> Thu, 11 Jul 2013 19:39:52 +0200
Newsgroups gmane.comp.audio.mad.devel
Message-ID <CAEk6gTDo=416OcYBn6TAeyvsN68eda3gaUyKN9X1+Pfcctn0ww@mail.gmail.com>
On Thu, Jul 11, 2013 at 5:44 PM, Drasko DRASKOVIC
<[email protected]> wrote:
> /tmp/cczQx5fc.s: Assembler messages:
> /tmp/cczQx5fc.s:2653: Error: selected processor does not support Thumb
> mode `rsc r2,r2,#0'
> /tmp/cczQx5fc.s:2920: Error: selected processor does not support Thumb
> mode `rsc sl,sl,#0'
> /tmp/cczQx5fc.s:3623: Error: selected processor does not support Thumb
> mode `rsc r2,r2,#0'
> /tmp/cczQx5fc.s:3838: Error: selected processor does not support Thumb
> mode `rsc r7,r7,#0'
> make[2]: *** [synth.lo] Error 1
> make[2]: Leaving directory `/root/libmad/libmad-0.15.1b'
> make[1]: *** [all-recursive] Error 1

I have discovered that ARM Thum compilation problems can be overridden
with this configuration :
./configure --enable-fpm=default

Apparently assembly optimization procedures are not correct for ARMv7.

From what I can see in the code, it looks like only ARMv4 is
supported, and once (any) ARM architecture is discovered, ./configure
script will take ARM FPM optimizations (in this case incorrect).

Can somebody please confirm this ?

Also - do we need this optimizations for ARMv7 at all, since it has
hard-floating-point unit?

BR,
Drasko