Boost logo

Boost-Build :

Subject: [Boost-build] compilation problems with thread/chrono & boost 1.51 & HPUX
From: Avi Bahra (avibahra_at_[hidden])
Date: 2012-09-03 04:26:19

I am transitioning from boost 1.47 to boost 1.51.

Using compiler : aCC: HP C/aC++ B3910B A.06.20 [May 13 2008]
Using: ./bjam --build-dir=./tmpBuildDir toolset=acc stage
             link=static --layout=tagged --with-thread variant=debug

It appears that building thread requires chrono, which now fails
to compile.


"./boost/ratio/detail/overflow_helpers.hpp", line 164: error #2063:
shift count is too large
 (BOOST_RATIO_INTMAX_C(1) << (sizeof(boost::intmax_t) * CHAR_BIT - 1));

"./boost/chrono/system_clocks.hpp", line 71: error #2035: #error
directive: <time.h> does not supply CLOCK_REALTIME
  # error <time.h> does not supply CLOCK_REALTIME

"./boost/thread/v2/thread.hpp", line 45: error #2135: namespace
"boost::chrono" has no member "steady_clock"
      void sleep_until(const chrono::time_point<chrono::steady_clock,
Duration>& t)

"./boost/thread/future.hpp", line 608: error #2330-D:
&boost::unique_lock<Mutex>::operator=(boost::unique_lock<Mutex> &)
[with Mutex=boost::mutex]" (declared at line 287 of
"./boost/thread/locks.hpp") is inaccessible


Can any one suggest *any* hacks/workarounds that gets me pass these errors.
Is it possible to use gcc on HPUX with boost 1.51 ?

Best regards,

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at