From owner-freebsd-ports@FreeBSD.ORG Wed Aug 13 16:54:01 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7B9CD10; Wed, 13 Aug 2014 16:54:01 +0000 (UTC) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2233220EE; Wed, 13 Aug 2014 16:54:01 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::71c4:1710:fcd8:949e] (unknown [IPv6:2001:7b8:3a7:0:71c4:1710:fcd8:949e]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 52B465C44; Wed, 13 Aug 2014 18:53:56 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_E64C78A0-5414-40AF-A2A3-5540C98C597C"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: ImageMagic + Webp From: Dimitry Andric In-Reply-To: Date: Wed, 13 Aug 2014 18:53:47 +0200 Message-Id: <3E5B8CB8-9D69-406B-80AD-8AB20C7BB53D@FreeBSD.org> References: <53E882A2.5060506@webrz.net> To: Robert Backhaus X-Mailer: Apple Mail (2.1878.6) Cc: sunpoet@FreeBSD.org, "ports@FreeBSD.org" , Jos Chrispijn X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2014 16:54:01 -0000 --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 wrote: > > On 11 August 2014 18:45, Jos Chrispijn 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--