[FFmpeg-devel] [PATCH] configure: warn if GCC 4.2 is being used

Ganesh Ajjanagadde gajjanag at mit.edu
Mon Aug 24 13:23:57 CEST 2015


On Mon, Aug 24, 2015 at 2:49 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Ganesh Ajjanagadde <gajjanagadde <at> gmail.com> writes:
>
>> +    if [ "$first" = true ] && $_cc -dumpversion | grep -q '^4\.2'; then
>
> Will this not trigger for 4.4.2?

No. Here is a test:
echo "4.4.2" | grep '^4\.2'
vs echo "4.2" | grep '^4\.2'.
The (-q) is for suppressing output, only yielding the exit code.
The reason it works is because '^' matches the beginning of a line,
not the beginning after a punctuation character.

>
>> +        warn "$gcc_version does not build ffmpeg correctly.
>> Please do not use GCC 4.2!"
>> +        warn "See Ticket #1464 for more details."
>
> Please make this something like:
> "gcc 4.2 is outdated and may miscompile FFmpeg,
> please use a newer compiler."
>
> Fate passes with some patched versions and it
> works with Apple's ppc compiler (gcc 4.2).

Will change, but will keep the Ticket message as it sounds useful.
Thanks.

>
> Thank you, Carl Eugen
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


More information about the ffmpeg-devel mailing list