Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2014 23:22:11 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Matthias Andree <mandree@FreeBSD.org>
Cc:        Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>, freebsd-ports@freebsd.org
Subject:   Re: ImageMagic + Webp
Message-ID:  <149EACA4-797C-45D1-B4BD-2149083F8AE0@FreeBSD.org>
In-Reply-To: <53EBD359.20402@FreeBSD.org>
References:  <53E882A2.5060506@webrz.net> <CABG_4jn4QtLBop%2BQUusUsZL0J3feVUTMswFNqTAaSAgNWL4ggw@mail.gmail.com> <3E5B8CB8-9D69-406B-80AD-8AB20C7BB53D@FreeBSD.org> <CAMHz58S4jXoFiCxF_AuJYjv3J9J9hODWiYEfikrfW9vYMniVFQ@mail.gmail.com> <53EBD359.20402@FreeBSD.org>

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

--Apple-Mail=_647FE45C-5FA3-43E1-A531-4C65D114328A
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=windows-1252

On 13 Aug 2014, at 23:06, Matthias Andree <mandree@FreeBSD.org> wrote:
> Am 13.08.2014 um 20:20 schrieb Sunpoet Po-Chuan Hsieh:
>> On Thu, Aug 14, 2014 at 12:53 AM, Dimitry Andric <dim@freebsd.org> wrote:
>>> 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
>>> 
>>> 
>>> 
>>> 
>> Hi dim,
>> 
>> Thanks for your explanation.
>> I've posted the information to ports/192600 and ports/192637.
> 
> I have proposed in the latter that you switch the port to using a newer
> GCC version or clang on the affected systems, to sidestep the issue.

Either that, or include a patched version of emmintrin.h in the port as
a workaround?  The bad macro for _mm_srli_epi64() has been in our tree
for 7 years, and this is the first program that ever barfs on it. :-)

> I am unsure if we will have an erratum, so for the benefit of users who
> use the releases rather than STABLE/, it would be beneficial to have the
> port compilable on systems that installed a broken/unpatched gcc 4.2.
> 
> Dimitry, any plans for an erratum?

That is extremely unlikely.  Release errata are normally only for severe
security issues, and this is definitely not such an issue.

It's actually less hassle to just patch the file in /usr/include/gcc/4.2
than to patch your sources, rebuild world, etc. :)  You can even do this
if you use binary updates.

-Dimitry


--Apple-Mail=_647FE45C-5FA3-43E1-A531-4C65D114328A
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)

iEYEARECAAYFAlPr1wcACgkQsF6jCi4glqOimQCePQ1Edw32n/EH84cVs5ODR6BV
lhkAmwSnD8fq3q375tCOiVlz7DBUk2Ix
=FfML
-----END PGP SIGNATURE-----

--Apple-Mail=_647FE45C-5FA3-43E1-A531-4C65D114328A--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?149EACA4-797C-45D1-B4BD-2149083F8AE0>