http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50982
--- Comment #7 from David Edelsohn <dje at gcc dot gnu.org> 2011-11-03 19:28:16 UTC --- It's better. It now finds gthr-posix.h. But now it fails with a C++ failure: In file included from /farm/dje/src/src/libstdc++-v3/src/atomic.cc:28:0: /tmp/20111103/powerpc-ibm-aix5.3.0.0/pthread/libstdc++-v3/include/mutex: In cons tructor 'constexpr std::once_flag::once_flag()': /tmp/20111103/powerpc-ibm-aix5.3.0.0/pthread/libstdc++-v3/include/mutex:767:65: error: no matching function for call to 'pthread_once_t::pthread_once_t(<brace-e nclosed initializer list>)' /tmp/20111103/powerpc-ibm-aix5.3.0.0/pthread/libstdc++-v3/include/mutex:767:65: note: candidates are: In file included from /tmp/20111103/powerpc-ibm-aix5.3.0.0/pthread/libstdc++-v3/ include/gstdint.h:6:0, from /farm/dje/src/src/libstdc++-v3/src/atomic.cc:26: /tmp/20111103/./gcc/include-fixed/sys/types.h:451:1: note: pthread_once_t::pthre ad_once_t() /tmp/20111103/./gcc/include-fixed/sys/types.h:451:1: note: candidate expects 0 arguments, 1 provided /tmp/20111103/./gcc/include-fixed/sys/types.h:451:1: note: constexpr pthread_onc e_t::pthread_once_t(const pthread_once_t&) /tmp/20111103/./gcc/include-fixed/sys/types.h:451:1: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const pthread_once_ t&' /tmp/20111103/./gcc/include-fixed/sys/types.h:451:1: note: constexpr pthread_onc e_t::pthread_once_t(pthread_once_t&&) /tmp/20111103/./gcc/include-fixed/sys/types.h:451:1: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'pthread_once_t&&' In file included from /farm/dje/src/src/libstdc++-v3/src/atomic.cc:28:0: /tmp/20111103/powerpc-ibm-aix5.3.0.0/pthread/libstdc++-v3/include/mutex:767:69: error: uninitialized member 'std::once_flag::_M_once' in 'constexpr' constructor /tmp/20111103/powerpc-ibm-aix5.3.0.0/pthread/libstdc++-v3/include/mutex: In func tion 'void std::call_once(std::once_flag&, _Callable&&, _Args&& ...)': /tmp/20111103/powerpc-ibm-aix5.3.0.0/pthread/libstdc++-v3/include/mutex:818:64: error: invalid conversion from 'void (*)(...)' to 'void (*)()' [-fpermissive] make[9]: *** [atomic.lo] Error 1