________________________________________ From: Boost [boost-bounces@lists.boost.org] on behalf of John Maddock [boost.regex@virgin.net] Sent: 18 January 2015 12:01 To: boost@lists.boost.org Subject: Re: [boost] Clang 3.4 failing to compile boost 1.57 headers
I have done some quick tests on this with various versions of Clang on Ubunbtu 12.04
Clang 3,4, 3,5 3,6 (not yet released).
All work with C++03 , All fail with C++11 and the default libraries from gcc (4.6 on my system)
This sounds like it may be a config issue then - BOOST_NO_CXX11_ALLOCATOR should be set for GCC-4.6.x and earlier. However it's next to impossible to correctly identify the libstdc++ version when using clang (there's a long discussion about this here https://svn.boost.org/trac/boost/ticket/7473). So: 1) Is Boost.Config setting BOOST_NO_CXX11_ALLOCATOR for clang on top of gcc-4.6.x std lib? 2) If not, what value is {{{boost_predef_ex}}} set to? Thanks, John. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost I have done some more digging around. I have managed to find out how to make clang 3.5 link to different versions of gcc installed in /opt and look at the values of BOOST_LIBSTDCXX_VERSION Results are as follows for clang 3.5 gcc version gcc reports clang reports 4.6.3 40603 40700 4.8.2 40802 40800 4.9.0 40900 40900 4.9.2 40902 40900 5.0.0 50000 40700 I can see that there are some serious problems getting the correct identification with Clang. Best wishes John