[arch-commits] Commit in lame/trunk (PKGBUILD sse.patch)
Evangelos Foutras
foutrelis at archlinux.org
Mon Sep 7 08:50:43 UTC 2015
Date: Monday, September 7, 2015 @ 10:50:43
Author: foutrelis
Revision: 245429
Fix build on i686
Added:
lame/trunk/sse.patch
Modified:
lame/trunk/PKGBUILD
-----------+
PKGBUILD | 11 +++++++++--
sse.patch | 30 ++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-07 08:26:49 UTC (rev 245428)
+++ PKGBUILD 2015-09-07 08:50:43 UTC (rev 245429)
@@ -12,9 +12,16 @@
depends=('ncurses')
makedepends=('nasm')
license=('LGPL')
-source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
-md5sums=('84835b313d4a8b68f5349816d33e07ce')
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+ "sse.patch")
+md5sums=('84835b313d4a8b68f5349816d33e07ce'
+ 'ca77f3259ed398ae1c55073dacdd752f')
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -Np1 -i ../sse.patch
+}
+
build() {
cd "$srcdir/$pkgname-$pkgver"
Added: sse.patch
===================================================================
--- sse.patch (rev 0)
+++ sse.patch 2015-09-07 08:50:43 UTC (rev 245429)
@@ -0,0 +1,30 @@
+xmm_quantize_sub.c: In function 'init_xrpow_core_sse':
+xmm_quantize_sub.c:65:18: warning: SSE vector return without SSE enabled changes the ABI [-W
+psabi]
+ const __m128 vec_fabs_mask = _mm_loadu_ps(&fabs_mask._float[0]);
+ ^
+In file included from xmm_quantize_sub.c:37:0:
+/usr/lib/gcc/i686-w64-mingw32/4.9.0/include/xmmintrin.h:933:1: error: inlining failed in call to always_inline '_mm_loadu_ps': target specific option mismatch
+ _mm_loadu_ps (float const *__P)
+ ^
+xmm_quantize_sub.c:65:18: error: called from here
+ const __m128 vec_fabs_mask = _mm_loadu_ps(&fabs_mask._float[0]);
+ ^
+--- lame/libmp3lame/vector/xmm_quantize_sub.c.orig 2014-06-08 12:16:19.455468042 -0700
++++ lame/libmp3lame/vector/xmm_quantize_sub.c 2014-06-08 12:16:09.592356980 -0700
+@@ -35,6 +35,7 @@
+ #ifdef HAVE_XMMINTRIN_H
+
+ #include <xmmintrin.h>
++#pragma GCC target("sse")
+
+ typedef union {
+ int32_t _i_32[4]; /* unions are initialized by its first member */
+@@ -124,6 +125,7 @@
+ }
+
+
++#pragma GCC target("sse2")
+ void
+ fht_SSE2(FLOAT * fz, int n)
+ {
More information about the arch-commits
mailing list