AIX libstdc++ breakage after libgcc changes

David Edelsohn dje.gcc@gmail.com
Sat Nov 5 03:54:00 GMT 2011


On Fri, Nov 4, 2011 at 7:49 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:

> Is that an emutls platform?
>
> Are the failures related to PR 50598?

AIX does use emutls, but I don't think the failure is related to PR 50598.

Before Rainer's changes, libstdc++ pthread multilib config.h did not
define _GLIBCXX_HAS_GTHREADS .  After the libgcc change, it is defined
for pthread multilib.

Apparently AIX only worked by accident before:

configure:19870: checking for gthreads library
configure:19888: /tmp/good/./gcc/xgcc -shared-libgcc -B/tmp/good/./gcc
-nostdinc++ -L/tmp/good/powerpc-ibm-aix5.3.0.0/pthread/libstdc++-v3/src
-L/tmp/good/powerpc-ibm-aix5.3.0.0/pthread/libstdc++-v3/src/.libs
-B/usr/local/powerpc-ibm-aix5.3.0.0/bin/
-B/usr/local/powerpc-ibm-aix5.3.0.0/lib/ -isystem
/usr/local/powerpc-ibm-aix5.3.0.0/include -isystem
/usr/local/powerpc-ibm-aix5.3.0.0/sys-include  -pthread -c -g -O2
-fno-exceptions -I/farm/dje/src/src/libstdc++-v3/../gcc  conftest.cpp
>&5
In file included from
conftest.cpp:84:0:/farm/dje/src/src/libstdc++-v3/../gcc/gthr.h:157:26:
fatal error: gthr-default.h: No such file or directory
compilation terminated.
| #include "gthr.h"
| int
| main ()
| {
|
|       #ifndef __GTHREADS_CXX0X
|       #error
|       #endif
|
|   ;
|   return 0;
| }
configure:19895: result: no

There is something wrong with the interaction between AIX pthread.h
and libstdc++ mutex.

- David



More information about the Libstdc++ mailing list