As described in PATCH: Use __gthread_mutex_t in profile/impl/profiler_trace.h http://gcc.gnu.org/ml/gcc-patches/2010-02/msg00996.html
there's one remaining libstdc++ testsuite failure on Solaris 11/x86: FAIL: ext/profile/all.cc (test for excess errors) The error is: Excess errors: In file included from /vol/gcc/obj/gcc-4.5.0-20100208/11-gcc/i386-pc-solaris2.11/libstdc++-v3/include/profile/impl/profiler_hash_func.h:51:0, from /vol/gcc/obj/gcc-4.5.0-20100208/11-gcc/i386-pc-solaris2.11/libstdc++-v3/include/profile/impl/profiler.h:400, from /vol/gcc/obj/gcc-4.5.0-20100208/11-gcc/i386-pc-solaris2.11/libstdc++-v3/include/profile/base.h:44, from /vol/gcc/obj/gcc-4.5.0-20100208/11-gcc/i386-pc-solaris2.11/libstdc++-v3/include/profile/map.h:38, from /vol/gcc/obj/gcc-4.5.0-20100208/11-gcc/i386-pc-solaris2.11/libstdc++-v3/include/profile/map:38, from /vol/gcc/obj/gcc-4.5.0-20100208/11-gcc/i386-pc-solaris2.11/libstdc++-v3/include/map:69, from /vol/gcc/src/hg/trunk/solaris/libstdc++-v3/testsuite/ext/profile/all.cc:24: /vol/gcc/obj/gcc-4.5.0-20100208/11-gcc/i386-pc-solaris2.11/libstdc++-v3/include/profile/impl/profiler_trace.h:81:1: error: no matching function for call to '_pthread_mutex::_pthread_mutex(<brace-enclosed initializer list>)' /usr/include/sys/types.h:404:31: note: candidates are: _pthread_mutex::_pthread_mutex() /usr/include/sys/types.h:404:31: note: _pthread_mutex::_pthread_mutex(const _pthread_mutex&) and much more. The partial patch suggests to move libstdc++-v3/include/profile/impl/profiler_trace.h to use gthreads instead of manually trying to cope with different thread libs, but didn't work as is. It may serve as a basis for a proper fix, though. -- Summary: ext/profile/all.cc fails on Solaris 11/x86 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ro at gcc dot gnu dot org GCC build triplet: i386-pc-solaris2.11 GCC host triplet: i386-pc-solaris2.11 GCC target triplet: i386-pc-solaris2.11 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43259