Macports Clang 3.9 compilation failures due to missing <atomic> include

Mojca Miklavec mojca at
Thu Sep 28 14:51:44 UTC 2017

Dear Chris,

On 28 September 2017 at 16:48, Chris Jones wrote:
> Hi All,
> I am investigating some build failures, with port that are being built with
> macports clang 3.9 What I am seeing is on some older systems, OSX10.(6,7,8)
> failures like
> fatal error: 'atomic' file not found
> #include <atomic>
> Is there any way around this?

You need to compile against libc++ (that is: with -stdlib=libc++).

Or with the "cxx11 1.1" trick.


More information about the macports-dev mailing list