Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 374043

Summary: media-plugins/gst-plugins-ffmpeg-0.10.11-r1 does not compile on x86 with mstackrealign CFLAG and gcc-4.4
Product: Gentoo Linux Reporter: Till Korten <webmaster>
Component: Current packagesAssignee: GStreamer package maintainers <gstreamer>
Severity: normal CC: gnome
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: emerge --info
build log

Description Till Korten 2011-07-04 15:44:00 UTC
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 ).

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
Comment 1 Till Korten 2011-07-04 15:44:30 UTC
Created attachment 279051 [details]
emerge --info
Comment 2 Till Korten 2011-07-04 15:45:38 UTC
Created attachment 279053 [details]
build log
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-03-14 22:26:00 UTC
gcc-4.4 was known to have several bugs with -mfpmath=sse and sse3.

Per our documentation, 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.