[FFmpeg-devel] FATE failure on mingw gcc-4.2.4

Frank Barchard fbarchard
Thu Mar 11 10:24:13 CET 2010


On Mon, Mar 8, 2010 at 8:02 PM, M?ns Rullg?rd <mans at mansr.com> wrote:

> The build failures on mingw with gcc 4.2.4 are caused by the recent
> addition of -Werror=missing-prototypes triggering an error in
> stdio.h.  For some reason, this gcc version isn't treating this as a
> system header and suppressing warnings.
>
> It might be possible to work around this by providing an explicit
> --sysroot argument to ffmpeg's configure.  Could someone with an
> affected system please try this?
>

This is affecting chromium, which uses:
gcc-sjlj.exe (GCC) 4.2.1-sjlj (mingw32-2)
a sampling of errors:
c:\msys\1.0\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/inttypes.h:259:
error: no previous prototype for 'imaxabs'
c:\msys\1.0\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/math.h:357:
error: no previous prototype for '__fpclassifyl'
c:\msys\1.0\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/stdio.h:372:
error: no previous prototype for 'getc'

updating to 4.4, it builds.  But it doesn't run?
I'm able to repro this using
 ./configure --enable-memalign-hack --enable-shared
static version is fine.

If I remove this

    check_cflags -Werror=missing-prototypes

and configure for gcc 4.2, it works

$ ./configure --enable-memalign-hack --disable-bsfs --enable-shared
--cc=gcc-sjij

I propose we back off on the fatal warning until 4.4 is sorted out.



More information about the ffmpeg-devel mailing list