compilation problems with thread/chrono & boost 1.51 & HPUX
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.
==========================
acc.compile.c++
tmpBuildDir/boost/bin.v2/libs/chrono/build/acc/debug/link-static/threading-multi/chrono.o
"./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:
On 3.9.2012. 10:26, Avi Bahra wrote:
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 ?
The docs for boost thread 1.51 say this: Boost.Thread uses by default Boost.Chrono for the time related functions. For backward compatibility and also for compilers that don't work well with Boost.Chrono the user can define BOOST_THREAD_DONT_USE_CHRONO. If BOOST_THREAD_DONT_USE_SYSTEM is defined then BOOST_THREAD_DONT_USE_CHRONO is defined implicitly. BOOST_THREAD_USES_CHRONO is defined when Boost.Thread uses Boost.Chrono.
participants (2)
-
Avi Bahra
-
Juraj Ivančić