Boost logo

Boost :

Subject: Re: [boost] Clang Builds Boost
From: Mika Heiskanen (mika.heiskanen_at_[hidden])
Date: 2010-05-21 07:41:16


On 05/21/2010 01:52 PM, Stewart, Robert wrote:
> Doug Gregor wrote:
>>
>> Well, we didn't make it before the end of BoostCon, but now we have:
>> Clang successfully builds all of Boost's regression tests on the
>> release branch. More information available at
>> http://blog.llvm.org/2010/05/clang-builds-boost.html .
>
> This is amazing progress. Congratulations!
>
> Now I have no excuse but to build it and use it against our internal code base if for no other reason than to get Clang's amazing diagnostic support!

I just compiled clang for the same purpose, but unfortunately on Centos 5.5 I get
errors from system headers (#include <string>):

In file included from /usr/include/c++/4.1.2/string:45:
In file included from /usr/include/c++/4.1.2/bits/char_traits.h:45:
In file included from /usr/include/c++/4.1.2/bits/stl_algobase.h:69:
In file included from /usr/include/c++/4.1.2/iosfwd:45:
In file included from /usr/include/c++/4.1.2/i386-redhat-linux/bits/c++io.h:38:
In file included from /usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr.h:132:
/usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr-default.h:100:1: error: weakref declaration of
'__gthrw_pthread_once' must be static
__gthrw(pthread_once)
^
/usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr-default.h:81:23: note: instantiated from:
#define __gthrw(name) __gthrw2(__gthrw_ ## name,name,name)
                       ^
/usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr-default.h:72:46: note: instantiated from:
   extern __typeof(type) name __attribute__ ((__weakref__(#name2))); \

--> Mika Heiskanen


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk