Boost logo

Boost :

Subject: Re: [boost] [EXTERNAL] Re: ... broken with clang
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2011-12-20 16:22:00


On Dec 20, 2011, at 1:19 PM, Jürgen Hunold wrote:

> On Tuesday, 20. December 2011 20:32:38 Belcourt, Kenneth wrote:
>>> If someone is willing to run the Boost Tests using Clang on Windows
>>> (every day, and report the results), then that will go a long way to
>>> making it a supported configuration.
>> I could run a few Clang testers, Linux and Darwin for Boost if that would
>> help. I'm afraid I wouldn't have time to report bugs back to Clang but
>> perhaps someone else could help out with that.
>
> Well, that would be great. A working regression tester helps a lot.
>
> And as clang seems to become the only compiler in the Apple World,
> this would help getting Boost to newer OS X and iOS systems.
>
> Filing bug reports is a different matter. But it helps a lot if I can point to
> the regression results ;-) One step at a time.

Hi Jurgen,

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))); \


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