On 29 October 2011 16:51, Dimitrios Apostolou wrote: > Hello again, > > I tried disabling precompiled headers for libstdc++ (thanks apinski for > pointing this) and now the build fails while trying to build atomic.o. Any > ideas? Please take a look at the error message in the attached file. The > culprit seems to be the following: > > /usr/include/bits/pthreadtypes.h:34:8: error: no matching function for call > to '<anonymous struct>::._3(const volatile __atomic_lock_t&)' This looks as though it's a problem with how we used pthread_mutex_t, which I changed a few days ago and that might have fixed it. You could try making this change in libstdc++-v3/include/std/mutex (or wait for the next 4.7 snapshot) - __native_type _M_mutex = __GTHREAD_MUTEX_INIT; + __native_type _M_mutex; public: typedef __native_type* native_handle_type; #ifdef __GTHREAD_MUTEX_INIT - constexpr mutex() : _M_mutex(__GTHREAD_MUTEX_INIT) { } + constexpr mutex() = default; #else Please let me know if that helps.