Opened 13 years ago
Closed 5 years ago
#3283 closed Bugs (invalid)
boost::thread/boost::date_time not compiling with sunstudio 11
| Reported by: | Owned by: | az_sw_dude | |
|---|---|---|---|
| Milestone: | Boost 1.40.0 | Component: | date_time |
| Version: | Boost Release Branch | Severity: | Problem |
| Keywords: | date_time thread | Cc: |
Description
I try to compile boost::thread (1.39/svn-trunk/svn-release it doesnt matter) with sunstudio11 on open solaris. The compile fails because of problems with date_time.
common.mkdir bin.v2/libs/thread
common.mkdir bin.v2/libs/thread/build
common.mkdir bin.v2/libs/thread/build/sun
common.mkdir bin.v2/libs/thread/build/sun/release
common.mkdir bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport
common.mkdir bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi
common.mkdir bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread
sun.compile.c++ bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread/thread.o
"./boost/date_time/time_duration.hpp", line 264: Error: int64_t is not a member of boost.
"./boost/date_time/time_resolution_traits.hpp", line 48: Error: int64_t is not a member of boost.
"./boost/date_time/time_resolution_traits.hpp", line 49: Error: int64_t is not a member of boost.
"./boost/date_time/time_resolution_traits.hpp", line 56: Error: int64_t is not a member of boost.
"./boost/date_time/time_resolution_traits.hpp", line 57: Error: int64_t is not a member of boost.
"./boost/date_time/time_resolution_traits.hpp", line 58: Error: Variable i is not a structure.
"./boost/date_time/posix_time/posix_time_config.hpp", line 157: Error: int64_t is not a member of boost.
"./boost/date_time/posix_time/posix_time_config.hpp", line 167: Error: int64_t is not a member of boost.
"./boost/date_time/time_system_counted.hpp", line 48: Error: Multiple declaration for boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config>::counted_time_rep(int).
"./boost/date_time/time_system_counted.hpp", line 124: Where: While specializing "boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config>".
"./boost/date_time/time_system_counted.hpp", line 124: Where: Specialized in boost::date_time::counted_time_system<boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config>>.
"./boost/date_time/time.hpp", line 53: Where: Specialized in boost::date_time::base_time<boost::posix_time::ptime, boost::date_time::counted_time_system<boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config>>>.
"./boost/date_time/posix_time/ptime.hpp", line 32: Where: Specialized in non-template code.
"./boost/date_time/time_duration.hpp", line 269: Error: No direct declarator preceding "(".
"./boost/thread/xtime.hpp", line 53: Where: While specializing "boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000000>".
"./boost/thread/xtime.hpp", line 53: Where: Specialized in non-template code.
"./boost/thread/detail/thread.hpp", line 344: Error: boost::thread::thread(boost::thread&) is not accessible from boost::move(boost::detail::thread_move_t<boost::thread>).
11 Error(s) detected.
"CC" -library=stlport4 -xO4 -mt -erroff=%none -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread/thread.o" "libs/thread/src/pthread/thread.cpp"
...failed sun.compile.c++ bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread/thread.o...
sun.compile.c++ bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread/exceptions.o
sun.compile.c++ bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread/once.o
...skipped <pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi>libboost_thread.so.1.40.0 for lack of <pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi>pthread/thread.o...
...skipped <pstage/lib>libboost_thread.so.1.40.0 for lack of <pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi>libboost_thread.so.1.40.0...
...skipped <pstage/lib>libboost_thread.so for lack of <pstage/lib>libboost_thread.so.1.40.0...
Change History (3)
comment:1 by , 13 years ago
| Component: | thread → date_time |
|---|---|
| Owner: | changed from to |
comment:3 by , 5 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Given the age of this issue, I am resolving as invalid.
Note:
See TracTickets
for help on using tickets.

AFAIK, Boost.DateTime does not work without int64_t support. Whether the support is actually available in Sun Studio is yet to be discovered, as I remember some time ago the support was enabled for this compiler.