Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2014 18:53:47 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Robert Backhaus <robbak@robbak.com>
Cc:        sunpoet@FreeBSD.org, "ports@FreeBSD.org" <ports@freebsd.org>, Jos Chrispijn <ports@webrz.net>
Subject:   Re: ImageMagic + Webp
Message-ID:  <3E5B8CB8-9D69-406B-80AD-8AB20C7BB53D@FreeBSD.org>
In-Reply-To: <CABG_4jn4QtLBop%2BQUusUsZL0J3feVUTMswFNqTAaSAgNWL4ggw@mail.gmail.com>
References:  <53E882A2.5060506@webrz.net> <CABG_4jn4QtLBop%2BQUusUsZL0J3feVUTMswFNqTAaSAgNWL4ggw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_E64C78A0-5414-40AF-A2A3-5540C98C597C
Content-Type: multipart/mixed;
	boundary="Apple-Mail=_F0D25F90-7F14-4E49-B9FB-F5F2980D910B"


--Apple-Mail=_F0D25F90-7F14-4E49-B9FB-F5F2980D910B
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

On 12 Aug 2014, at 07:44, Robert Backhaus <robbak@robbak.com> wrote:
> 
> On 11 August 2014 18:45, Jos Chrispijn <ports@webrz.net> wrote:
>>   After I installed ImageMagic port, I got stuck at the installation of
>>   Webp:
>> 
>>   ===>  Building for webp-0.4.1
>>   Making all in src
>>   Making all in dec
>>   Making all in enc
>>   Making all in dsp
>>     CC     libwebpdspdecode_sse2_la-lossless_sse2.lo
>>   lossless_sse2.c: In function 'ConvertBGRAToBGR':
>>   lossless_sse2.c:403: note: use -flax-vector-conversions to permit
>>   conversions between vectors with differing element types or numbers of
>>   subparts
>>   lossless_sse2.c:403: error: incompatible type for argument 1 of
>>   '__builtin_ia32_psrlqi128'
>>   lossless_sse2.c:404: error: incompatible type for argument 1 of
>>   '__builtin_ia32_psrlqi128'
>>   *** [libwebpdspdecode_sse2_la-lossless_sse2.lo] Error code 1
[...]
> I have the same issue here. Sunpoet, do you have this? I have attached a
> script of my failure.
> 
> FreeBSD boffin 9.3-STABLE FreeBSD 9.3-STABLE #1 r268979: Tue Jul 22
> 22:42:39 EST 2014     root@boffin:/usr/obj/home/src/sys/GENERIC  amd64


This is a bug in gcc's emmintrin.h header.  I have committed a fix to
head in r269948, and I will merge it to stable/10 and stable/9 in three
days.  Meanwhile, please apply the attached diff to emmintrin.h in
/usr/include/gcc/4.2 manually.

-Dimitry

--Apple-Mail=_F0D25F90-7F14-4E49-B9FB-F5F2980D910B
Content-Disposition: attachment;
	filename=fix-mm_srli_epi64-cast-1.diff
Content-Type: application/octet-stream;
	name="fix-mm_srli_epi64-cast-1.diff"
Content-Transfer-Encoding: 7bit

--- emmintrin.h.orig	2013-12-11 08:40:21.000000000 +0100
+++ emmintrin.h	2014-08-13 16:11:43.000000000 +0200
@@ -1193,7 +1193,7 @@
 #define _mm_srli_epi32(__A, __B) \
   ((__m128i)__builtin_ia32_psrldi128 ((__v4si)(__A), __B))
 #define _mm_srli_epi64(__A, __B) \
-  ((__m128i)__builtin_ia32_psrlqi128 ((__v4si)(__A), __B))
+  ((__m128i)__builtin_ia32_psrlqi128 ((__v2di)(__A), __B))
 #endif
 
 static __inline __m128i __attribute__((__always_inline__))

--Apple-Mail=_F0D25F90-7F14-4E49-B9FB-F5F2980D910B
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii



--Apple-Mail=_F0D25F90-7F14-4E49-B9FB-F5F2980D910B--

--Apple-Mail=_E64C78A0-5414-40AF-A2A3-5540C98C597C
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)

iEYEARECAAYFAlPrmCAACgkQsF6jCi4glqPINwCg7n4F3Rit4QN9RHSvTbuf2M+B
z38AoIOR9nzAitF1qFGuzz1RXs+68HQq
=RZeg
-----END PGP SIGNATURE-----

--Apple-Mail=_E64C78A0-5414-40AF-A2A3-5540C98C597C--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E5B8CB8-9D69-406B-80AD-8AB20C7BB53D>