Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67786 - trunk/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2011-01-08 10:35:08


Author: viboes
Date: 2011-01-08 10:35:07 EST (Sat, 08 Jan 2011)
New Revision: 67786
URL: http://svn.boost.org/trac/boost/changeset/67786

Log:
Boost.Chrono: thread clocks are not available on POSIX systems don't supporting threads as PGI

 Test output:
Rev 67766 / Sat, 8 Jan 2011 07:38:17 +0000
Report Time: Sat, 8 Jan 2011 12:49:04 +0000

Compile [2011-01-08 10:21:34 UTC]: fail

    "/sierra/Sntools/extras/compilers/pgi/linux86-64/10.1/bin/pgCC" -INLINE:none -Wc,-a --brief_diagnostics --error_limit1 --compress_names --diag_suppress450 --no_using_std --zc_eh -Kieee -fpic -gopt -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_USE_WINDOWS_H -D__need_IOV_MAX -I".." -c -o "/scratch/boost/results/boost/bin.v2/libs/chrono/build/pgi-10.1/debug/threading-multi/thread_clock.o" "../libs/chrono/src/thread_clock.cpp"

"../boost/chrono/detail/inlined/posix/thread_clock.hpp", line 25 (col. 23): error: identifier "pthread_self" is undefined
Error limit reached.
1 error detected in the compilation of "../libs/chrono/src/thread_clock.cpp".
Compilation terminated.

TinyUrl
Text files modified:
   trunk/boost/chrono/config.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/chrono/config.hpp
==============================================================================
--- trunk/boost/chrono/config.hpp (original)
+++ trunk/boost/chrono/config.hpp 2011-01-08 10:35:07 EST (Sat, 08 Jan 2011)
@@ -54,7 +54,7 @@
 # else
 # error <time.h> does not supply CLOCK_REALTIME
 # endif
-# if defined(_POSIX_THREAD_CPUTIME)
+# if defined(_POSIX_THREAD_CPUTIME) && !defined(BOOST_DISABLE_THREADS)
 # define BOOST_CHRONO_HAS_THREAD_CLOCK
 # define BOOST_CHRONO_THREAD_CLOCK_IS_STEADY true
 # endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk