[FFmpeg-devel] [PATCH] lavu: test for broken binutils on ARM

Michael Niedermayer michaelni at gmx.at
Sun Dec 16 00:44:48 CET 2012


On Sat, Dec 15, 2012 at 05:57:12PM -0500, Derek Buitenhuis wrote:
> On 15/12/2012 2:55 PM, Michael Niedermayer wrote:
> > Some old gnu assemblers fail to assemble qdadd correctly
> > Ideally we should check this at build time, but better to
> > check at run time than mysteriously failing.
> > 
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  libavutil/utils.c |    5 +++++
> >  1 file changed, 5 insertions(+)
> 
> I assume the reason we cannot check at build time is due to
> needing to support cross-compilation... which is tricky,
> indeed
>

> > @@ -35,6 +35,11 @@ unsigned avutil_version(void)
> >      av_assert0(LIBAVUTIL_VERSION_MICRO >= 100);
> >      av_assert0(HAVE_MMX2 == HAVE_MMXEXT);
> >  
> > +    if (av_sat_dadd32(1, 2) != 5) {
> > +        av_log(NULL, AV_LOG_FATAL, "Libavutil has been build with a broken binutils, please upgrade binutils and rebuild\n");
> > +        abort();
> > +    }
> 
> Perhaps this could go somewhere like an init function? A lot of people
> who use embedded setups have their own code that calls libav*, and they
> won't see this at all.

which function would you suggest ?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121216/cebd3e61/attachment.asc>


More information about the ffmpeg-devel mailing list