这是编译ffmpeg的时候遇到的一个错误:
CC libgstffmpeg_la-gstffmpegcodecmap.lo
gstffmpegcodecmap.c: In function 'gst_ff_aud_caps_new':
gstffmpegcodecmap.c:424:5: internal compiler error: in set_jump_prob, at stmt.c:2319
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
=========
参考:http://lists.freedesktop.org/archives/gstreamer-bugs/2011-March/075376.html
... ...
3. This code is compiled with gcc-4.4, but is not compiled with
gcc-4.5.2-6ubuntu5 due to internal compiler error.
It seems that this error begin to appear after I updated to gcc-4.5.2-6ubuntu5.
Anyhow, if I add 'maxchannels = 6' or 'maxchannels = 8' right below 'default:',
both gcc-4.4 and gcc-4.5.2-6ubuntu5 comples the whole code without error.
A patch is as follows:
--- a/ext/ffmpeg/gstffmpegcodecmap.c.orig 2011-03-24 02:29:40.000000000
+0900
+++ b/ext/ffmpeg/gstffmpegcodecmap.c 2011-03-24 02:08:12.000000000 +0900
@@ -444,6 +444,7 @@
maxchannels = 8;
break;
default:
+ maxchannels = 6;
break;
}
=========