Boost logo

Boost :

Subject: Re: [boost] [EXTERNAL] Re: ... broken with clang
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-12-21 03:13:33


On 12/20/2011 10:22 PM, Belcourt, Kenneth wrote:

> Will do. Just tried to fire up a run and found this error using trunk clang on Boost trunk with the nightly testing process on Redhat Linux (gcc-4.1.2).
>
> -- Noel
>
> compile.c++.without-pth /scratch/boost/results/boost/bin.v2/libs/uuid/test/compile_random_generator.test/clang-linux-trunk/debug/compile_random_generator.o
>
> "/home/kbelco/llvm/build/Debug+Asserts/bin/clang" -c -x c++ -O0 -g -fno-inline -Wall -g -fPIC -DBOOST_ALL_NO_LIB=1 -I".." -o "/scratch/boost/results/boost/bin.v2/libs/uuid/test/compile_random_generator.test/clang-linux-trunk/debug/compile_random_generator.o" "../libs/uuid/test/compile_random_generator.cpp"
>
> In file included from ../libs/uuid/test/compile_random_generator.cpp:13:
> In file included from ../boost/uuid/random_generator.hpp:11:
> In file included from ../boost/uuid/uuid.hpp:38:
> In file included from /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/algorithm:64:
> In file included from /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:69:
> In file included from /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iosfwd:45:
> In file included from /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/x86_64-redhat-linux/bits/c++io.h:38:
> In file included from /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/x86_64-redhat-linux/bits/gthr.h:132:
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/x86_64-redhat-linux/bits/gthr-default.h:100:1: error: weakref declaration must have internal linkage
> __gthrw(pthread_once)
> ^
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/x86_64-redhat-linux/bits/gthr-default.h:81:23: note: expanded from macro '__gthrw'
> #define __gthrw(name) __gthrw2(__gthrw_ ## name,name,name)
> ^
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/x86_64-redhat-linux/bits/gthr-default.h:72:46: note: expanded from macro '__gthrw2'
> extern __typeof(type) name __attribute__ ((__weakref__(#name2))); \

That's clearly not a Boost problem, it's clang being incompatible with
those GCC files.


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