I built an x86_64-w64-mingw32 cross compiler under x86_64 linux using latest gcc SVN code, then use this cross compiler to build ffmpeg.
The compile failed with the following message : [dran...@dgnfedora bd_ffmpeg]$ /compile/mingw-w64-dgn/cross/bin/x86_64-w64-mingw32-gcc -DHAVE_AV_CONFIG_H -I. -I"/compile/mingw-w64-dgn/lib_source/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -fno-common -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -O3 -fno-strict-aliasing -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -MMD -MF libavcodec/ac3enc.d -MT libavcodec/ac3enc.o -c --save-temps -o a.out /compile/mingw-w64-dgn/lib_source/ffmpeg/libavcodec/ac3enc.c /compile/mingw-w64-dgn/lib_source/ffmpeg/libavcodec/ac3enc.c: In function 'AC3_encode_frame': /compile/mingw-w64-dgn/lib_source/ffmpeg/libavcodec/ac3enc.c:1180:12: error: type mismatch in address expression int16_t[256] * int16_t[6][256] D.12656_1073 = &psd[D.10907_836]; /compile/mingw-w64-dgn/lib_source/ffmpeg/libavcodec/ac3enc.c:1180:12: error: type mismatch in address expression int16_t[50] * int16_t[6][50] D.12659_102 = &mask[D.10907_836]; /compile/mingw-w64-dgn/lib_source/ffmpeg/libavcodec/ac3enc.c:1180:12: internal compiler error: verify_stmts failed Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: internal compiler error when using x86_64-w64-mingw32- gcc to build ffmpeg ac3enc.c Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: drangon dot mail at gmail dot com GCC build triplet: x86_64-gnu-linux GCC host triplet: x86_64-gnu-linux GCC target triplet: x86_64-w64-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41181