This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
AIX bootstrap failure (C++ PATCH: New parser)
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 28 Dec 2002 18:27:18 -0500
- Subject: AIX bootstrap failure (C++ PATCH: New parser)
Linking libstdc++-3/abi_check fails due to missing symbols which
appear to be due to the new parser ignoring NO_IMPLICIT_EXTERN_C
ld: 0711-317 ERROR: Undefined symbol: .fetch_and_add(int*, int)
ld: 0711-317 ERROR: Undefined symbol: .__assert(char const*, char const*, int)
Prior to the parser merge, these are imported into libstdc++.a from AIX
libc as fetch_and_add. After the parser merge, these appear in
libstdc++.a as _Z13fetch_and_addPii and _Z8__assertPKcS0_i .
AIX /usr/include/sys/atomic_op.h is not protected by extern "C" as it
should. I can fix this in libstdc++-v3/config/os/aix/atomicity.h.
While I can work around this, this points out that
NO_IMPLICIT_EXTERN_C is not working correctly in the new parser.
David