Date: Mon, 22 Dec 2014 21:49:58 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Harry Schmalzbauer <freebsd@omnilan.de> Cc: FreeBSD Stable Mailing List <freebsd-stable@freebsd.org> Subject: Re: CPUTYPEs includig avx are suspicious with clang in stable/10 Message-ID: <18B24CB4-0F39-4A7B-982C-9FAA5CE36749@FreeBSD.org> In-Reply-To: <54944D08.8000202@omnilan.de> References: <54944D08.8000202@omnilan.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_30B7364B-B4E6-447F-95FE-00B2D26F9AD3 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 19 Dec 2014, at 17:06, Harry Schmalzbauer <freebsd@omnilan.de> wrote: > > I'm seeing sporadic problems (core dumps) with binaries compiled with > CPUTYPE=core-i-avx. > They run fine on IvyBridge, but fail on Haswells. > Stripping avx from MACHINE_CPU (by defining CPUTYPE=corei7 instead of > core-i-avx) solved all crashes on the haswell system. Can you provide a concrete test case? E.g. binaries with both optimizations, of which one exhibits the crash? > I have no idea if applications like pkg(8) make use of AVX, I'd bet they > don't do. If you put CPUTYPE?=core-i-avx in /etc/make.conf, and recompile ports with that configuration, they can certainly use AVX, if there are parts in the code that can be vectorized (e.g. certain loops). > So I guess it's something wrong with clang. > Unfortuantely I currently don't have a development installation on any > haswell system to provide some useful backtraces, but perhaps somebody > with compiler knowledge can have a look at this problem? It is hard to say anything without more concrete information. :) -Dimitry --Apple-Mail=_30B7364B-B4E6-447F-95FE-00B2D26F9AD3 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.26 iEYEARECAAYFAlSYg/0ACgkQsF6jCi4glqMn7gCfS9o/cX7wSz5/YX4Q7azAGHyR tlEAoNfkYkgsQEtsuxEgY75pxM2KlO58 =npG6 -----END PGP SIGNATURE----- --Apple-Mail=_30B7364B-B4E6-447F-95FE-00B2D26F9AD3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18B24CB4-0F39-4A7B-982C-9FAA5CE36749>