trying to emerge gst-plugins-ffmpeg-0.10.11-r1 on x86 with the following CFLAGS on an Atom 330: CFLAGS="-O2 -march=native -msse3 -mfpmath=sse -mstackrealign -pipe" with these cflags it works nicely: CFLAGS="-O2 -march=native -msse3 -mfpmath=sse -pipe" however if I permanently disable mstackrealign system-wide, I get the infamous mozilla segfaults due to misaligned stacks (see bug #270120 and http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838 ). In these bugs it is also suggested that this error only occurs with the sse CFLAGS enabled, however I think for performance reasons it is better to disable mstackrealign than sse. Therefore, I suggest to disable the mstackrealign flag in the gst-plugins-ffmpeg ebuild. I attached the compile error and emerge --info Reproducible: Always Steps to Reproduce: 1.enable sse and mstackrealign CFLAGs 2.try to emerge gst-plugins-ffmpeg Actual Results: emerge fails with compile error if mstackrealign and sse is enabled in CFLAGS Expected Results: ffmpeg ebuild should disable the mstackrealign CFLAG and then compile fine
Created attachment 279051 [details] emerge --info
Created attachment 279053 [details] build log
gcc-4.4 was known to have several bugs with -mfpmath=sse and sse3. Per our documentation http://www.gentoo.org/doc/en/gcc-optimization.xml, I don't think setting mstackrealign globally will do any good to your system. It'd be best if mozilla ebuild added this to its CFLAGS if it needs it. In any case, please test this with gcc-4.6 which is currently the stable gcc and gcc-4.7 if 4.6 still fails. I certainly cannot reproduce this problem here.