[cctbxbb] Boost broken on mac?

richard.gildea at diamond.ac.uk richard.gildea at diamond.ac.uk
Wed Apr 6 09:16:00 PDT 2016

I have just tried the following:

-o2: still fails

-o2, remove -ffast-math flag: success!

I will now try -o3 combined with removal of -ffast-math flag.

Do you happen to know what clang/llvm version was used with the previous version of XCode (perhaps someone who has yet to update to XCode could tell us)?

$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin



Dr Richard Gildea
Data Analysis Scientist
Tel: +441235 77 8078

Diamond Light Source Ltd.
Diamond House
Harwell Science & Innovation Campus
OX11 0DE

From: cctbxbb-bounces at phenix-online.org [cctbxbb-bounces at phenix-online.org] on behalf of Luc Bourhis [luc_j_bourhis at mac.com]
Sent: 06 April 2016 17:10
To: cctbx mailing list
Subject: Re: [cctbxbb] Boost broken on mac?

> I don't think this has anything to do with boost (as Markus initially thought). This smells like over-aggressive compiler optimization after the xcode 7.3 update, I am just testing recompilation with -O2 instead of -O3 optimization.

It is indeed likely a bug in clang/llvm, which is be triggered by a particular stack of function calls. But at least, we know the said bug is not triggered when using Boost 1.56. If I had a bit of courage, I would try the trunk of clang/llvm, and then perhaps bisect to find where the problem came from.

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

More information about the cctbxbb mailing list