https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109815
--- Comment #3 from C. Heide ---
I finally got access to an AIX 7.2 system and the problem does not occur there
with GCC 12.3, so it seems to be something specific to DWARF only being
partially supported in AIX 7.1.
The installation instruction
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109815
Bug ID: 109815
Summary: AIX: Combining -static-libstdc++ and -pthread causes a
TLS-related link error
Product: gcc
Version: 12.3.0
Status: UNCONFIRMED
Severity