HEADS UP: merged llvm/clang 3.4

Dimitry Andric dim at FreeBSD.org
Sat Mar 22 19:20:39 UTC 2014


On 22 Mar 2014, at 16:02, Jakub Lach <jakub_lach at mailplus.pl> wrote:
> I'm now testing with CPUTYPE?=core2 which translates to -march=core2, 
> however I would like to emphasize, that previously it was set as native, 
> I was not forcing (faulty?) penryn march. 
> 
> It should just autodetect CPU features (at least that was how GCC worked
> iirc- it used multiple flags for all features detected, not a single march)?

Yes, it auto-detects, if you use -march=native.  If you have a Penryn,
you have SSE4.1 support, which is more than "plain" Core2 does, e.g.
SSSE3.


> ... core2 fails the same way, now I will try sans CPUTYPE.

After some sleuthing, it turns out this is a bug in boost, when 128-bit
types are represented as a struct.  See this upstream commit:

https://github.com/boostorg/atomic/commit/e4bde20f2eec0a51be14533871d2123bd2ab9cf3

To fix it, drop the attached patch in /usr/ports/devel/boost-libs/files.
I tried this with CPUTYPE=penryn, and it worked for me.

I have cc'd the boost port maintainers, so I hope they can add this
patch soon. :)

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-boost__atomic__detail__gcc-atomic.hpp
Type: application/octet-stream
Size: 2317 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140322/7c331421/attachment-0001.obj>
-------------- next part --------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140322/7c331421/attachment-0001.sig>


More information about the freebsd-stable mailing list