Opened 13 years ago

Closed 12 years ago

#3231 closed Bugs (fixed)

boost::thread fails to compile with the sun CC compiler

Reported by: Frank Meerkötter <frank@…> Owned by: Anthony Williams
Milestone: Boost 1.44.0 Component: thread
Version: Boost Development Trunk Severity: Problem
Keywords: thread sun Cc:

Description

I can't compile the thread library on solaris using the sun compiler.

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 "libs/thread/src/pthread/thread.cpp", line 77: Error: The operation "boost::shared_ptr<boost::detail::tss_cleanup_function> && void*" is illegal.

"libs/thread/src/pthread/thread.cpp", line 588: Error: The operation "boost::shared_ptr<boost::detail::tss_cleanup_function>
void*" is illegal.

2 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-sw-mt-1_40.so.1.40.0 for lack of <pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi>pthread/thread.o... ...skipped <p/home/meerkoef/boost/sun5/lib>libboost_thread-sw-mt-1_40.so.1.40.0 for lack of <pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi>libboost_thread-sw-mt-1_40.so.1.40.0... ...skipped <p/home/meerkoef/boost/sun5/lib>libboost_thread-sw-mt.so for lack of <p/home/meerkoef/boost/sun5/lib>libboost_thread-sw-mt-1_40.so.1.40.0... common.mkdir bin.v2/libs/date_time/build/sun/release/link-static ...on 7500th target...

The compiler version used is: CC -V CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25

The boost version used is the boost-trunk of today svn info Path: . URL: http://svn.boost.org/svn/boost/trunk Repository Root: http://svn.boost.org/svn/boost Repository UUID: b8fc166d-592f-0410-95f2-cb63ce0dd405 Revision: 54497 Node Kind: directory Schedule: normal Last Changed Author: rogeeff Last Changed Rev: 54495 Last Changed Date: 2009-06-29 05:44:38 +0200 (Mon, 29 Jun 2009)

Change History (5)

comment:1 by Steven Watanabe, 13 years ago

Component: Nonethread
Owner: set to Anthony Williams

comment:2 by nstewart@…, 12 years ago

Frank,

Is this still an issue in boost 1.42.0? I seem to able to compile boost::thread with SunStudio 12.

  • Nigel

comment:3 by frank@…, 12 years ago

It was fixed in the current trunk a few weeks ago. As far as i know the fix is not contained in the recent 1.43 release.

  • Frank

comment:4 by nigels@…, 12 years ago

Milestone: Boost 1.40.0Boost 1.44.0

comment:5 by Anthony Williams, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.