|
From: <sv...@va...> - 2013-10-04 21:13:22
|
Author: florian
Date: Fri Oct 4 21:13:16 2013
New Revision: 13620
Log:
Disable drd/tests/std_thread.cpp for clang.
clang 3.3 produces an error message for /usr/include/c++/4.6/chrono
which happens to get included somewhere inside <thread>.
This happens with C++ headers from:
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3.
Modified:
trunk/drd/tests/Makefile.am
Modified: trunk/drd/tests/Makefile.am
==============================================================================
--- trunk/drd/tests/Makefile.am (original)
+++ trunk/drd/tests/Makefile.am Fri Oct 4 21:13:16 2013
@@ -365,10 +365,14 @@
tsan_unittest
endif
+# clang 3.3 will generate errors about libstdc++ headers from
+# gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
+if ! COMPILER_IS_CLANG
if HAVE_SHARED_POINTER_ANNOTATION
check_PROGRAMS += \
std_thread
endif
+endif
if HAVE_OPENMP
check_PROGRAMS += omp_matinv omp_prime omp_printf
|
|
From: Bart V. A. <bva...@ac...> - 2013-10-05 10:31:30
|
On 10/04/13 23:13, sv...@va... wrote: > Author: florian > Date: Fri Oct 4 21:13:16 2013 > New Revision: 13620 > > Log: > Disable drd/tests/std_thread.cpp for clang. > clang 3.3 produces an error message for /usr/include/c++/4.6/chrono > which happens to get included somewhere inside <thread>. > This happens with C++ headers from: > gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3. > > Modified: > trunk/drd/tests/Makefile.am > > Modified: trunk/drd/tests/Makefile.am > ============================================================================== > --- trunk/drd/tests/Makefile.am (original) > +++ trunk/drd/tests/Makefile.am Fri Oct 4 21:13:16 2013 > @@ -365,10 +365,14 @@ > tsan_unittest > endif > > +# clang 3.3 will generate errors about libstdc++ headers from > +# gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 > +if ! COMPILER_IS_CLANG > if HAVE_SHARED_POINTER_ANNOTATION > check_PROGRAMS += \ > std_thread > endif > +endif > > if HAVE_OPENMP > check_PROGRAMS += omp_matinv omp_prime omp_printf Hello Florian, Have you considered to add a test in configure.ac instead that checks whether <thread> is usable ? That way the std_thread test will be compiled and run on Ubuntu as soon as clang does no longer fail on the libstdc++ <thread> header. Bart. |