Jason Merrill wrote:

fafa wrote:
I tried to build gcc from the latest snapshot (gcc-4.3-20071005),
but I undefined the symbol "__GTHREAD_HAS_COND"
which is desribed in libstdc++-v3\ChangeLog as follows:
  ...
  [!__GTHREAD_HAS_COND] Fall back to the old code, which deadlocks.
  ...
 But libstdc++-v3\libsupc++\guard.cc uses the class __guard from
libstdc++-v3\include\ext\concurrence.h which depends on the symbol
__GTHREAD_HAS_COND and is undefined now.

Hmm? __guard is a typedef in cxxabi-tweaks.h and doesn't depend on __GTHREAD_HAS_COND.

Jason


Sorry, my bad; i meant __cond instead of __guard !

  But libstdc++-v3\libsupc++\guard.cc uses the class __cond from
  libstdc++-v3\include\ext\concurrence.h which depends on the symbol
  __GTHREAD_HAS_COND and is undefined now.

in the static variable

  static __gnu_cxx::__cond* static_cond;

in line 68 of guard.cc.
So class __cond is unknown when I link with the above built version.

Maett

Reply via email to