Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529962 - media-libs/gst-plugins-base-0.10.36-r1 - /usr/lib/gcc/i686-pc-linux-gnu/4.9.2/include/emmintrin.h:99:1: error: inlining failed in call to always_inline '_mm_setzero_pd': target specific option mismatch
Summary: media-libs/gst-plugins-base-0.10.36-r1 - /usr/lib/gcc/i686-pc-linux-gnu/4.9.2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks: gcc-4.9
  Show dependency tree
 
Reported: 2014-11-20 15:09 UTC by Martin Väth
Modified: 2015-01-19 11:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
media-libs:gst-plugins-base-0.10.36-r1:20141120-120949.log.xz (media-libs:gst-plugins-base-0.10.36-r1:20141120-120949.log.xz,16.61 KB, application/x-xz)
2014-11-20 15:09 UTC, Martin Väth
Details
emerge --info gst-plugins-base:0.10 (emerge.info.gst-plugins-base,19.80 KB, text/plain)
2014-11-20 15:20 UTC, Martin Väth
Details
Combined patch (gst-plugins-base-gcc-4.9.patch,387 bytes, patch)
2015-01-17 18:49 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2014-11-20 15:09:45 UTC
Created attachment 389860 [details]
media-libs:gst-plugins-base-0.10.36-r1:20141120-120949.log.xz

This error occurs with x86 and gcc-4.9 (here: gcc-4.9.2).
It does *not* occur with gcc-4.8 (tested with gcc-4.8.2) or amd64.

Compilation of media-libs/gst-plugins-base-0.10.36-r1 fails.
The relevant (first) error message is

../../../gst-plugins-base-0.10.36/gst/audioresample/resample_sse.h: In function 'inner_product_double':
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/include/emmintrin.h:99:1: error: inlining failed in call to always_inline '_mm_setzero_pd': target specific option mismatch
 _mm_setzero_pd (void)
 ^
In file included from ../../../gst-plugins-base-0.10.36/gst/audioresample/resample.c:134:0,
                 from ../../../gst-plugins-base-0.10.36/gst/audioresample/speex_resampler_float.c:26:
../../../gst-plugins-base-0.10.36/gst/audioresample/resample_sse.h:102:12: error: called from here
    __m128d sum = _mm_setzero_pd();
            ^
Comment 1 Martin Väth 2014-11-20 15:20:56 UTC
Created attachment 389864 [details]
emerge --info gst-plugins-base:0.10
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-11-23 15:12:24 UTC
Adding toolchain herd since I have no idea about this kind of problem.
Comment 3 Stephan Hartmann (RETIRED) gentoo-dev 2014-12-30 14:29:48 UTC
This was fixed upstream in 1.2 branch with following two commits:

http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?h=1.2&id=fa16f25ba6ecf92aa54b03b7ea25d1a87510cb52
http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?h=1.2&id=74b741d0a43f6d44bd5f9801c34a3a6242d3bde6

Both patches apply without modifications on gst-plugins-base-0.10.36. Compilation and tests complete successfull.

gst-plugins-base-1.2.4 should be affected too cause both commits are after 1.2.4 release.
Comment 4 Anthony Basile gentoo-dev 2015-01-17 15:39:09 UTC
(In reply to Stephan Hartmann from comment #3)
> This was fixed upstream in 1.2 branch with following two commits:
> 
> http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?h=1.
> 2&id=fa16f25ba6ecf92aa54b03b7ea25d1a87510cb52
> http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?h=1.
> 2&id=74b741d0a43f6d44bd5f9801c34a3a6242d3bde6
> 
> Both patches apply without modifications on gst-plugins-base-0.10.36.
> Compilation and tests complete successfull.
> 
> gst-plugins-base-1.2.4 should be affected too cause both commits are after
> 1.2.4 release.

Can you please test the upstream fixes so that we can unblock gcc-4.9 stabilization eventually.
Comment 5 Martin Väth 2015-01-17 18:45:12 UTC
I can confirm that applying the two patches (in order), fixes the compilation on x86 with gcc-4.9.2. Compilation on amd64 continues to work with these patches.
Comment 6 Martin Väth 2015-01-17 18:49:58 UTC
Created attachment 394194 [details, diff]
Combined patch

For your convenience, I attach the combined patch which I have actually tested: It makes no sense to add a patch and a patch to this patch..
Comment 7 Stephan Hartmann (RETIRED) gentoo-dev 2015-01-18 10:37:59 UTC
Sure, was just bit lazy to combine both commits ;)

Meanwhile checked that the patch is needed on gst-plugins-base:1.2 branch too.
Comment 8 Pacho Ramos gentoo-dev 2015-01-19 11:15:46 UTC
+  19 Jan 2015; Pacho Ramos <pacho@gentoo.org>
+  +files/gst-plugins-base-0.10.36-gcc-4.9.patch,
+  +files/gst-plugins-base-0.10.36-resync-ringbuffer.patch,
+  -gst-plugins-base-0.10.36.ebuild, gst-plugins-base-0.10.36-r1.ebuild,
+  gst-plugins-base-1.2.4-r1.ebuild:
+  Fix compilation with gcc-4.9 (#529962 by Martin Väth and Stephan Hartmann),
+  fix hang during gapless transition (#520090 by Georg Rudoy), drop old
+
Comment 9 Pacho Ramos gentoo-dev 2015-01-19 11:17:43 UTC
Oops

+*gst-plugins-base-0.10.36-r2 (19 Jan 2015)
+
+  19 Jan 2015; Pacho Ramos <pacho@gentoo.org>
+  +gst-plugins-base-0.10.36-r2.ebuild, gst-plugins-base-0.10.36-r1.ebuild:
+  Revbump with the fix for the hang
+