While trying to build the libstdc++ library with --disable-hosted-libstdcxx specified in the configure step, eh_alloc.cc fals to compile with an error that the line:
extern "C" int memset (void *, int, std::size_t); declares memset different than it has already been declared. Changing the line to extern "C" void *memset (void *, int, std::size_t); resolves the problem. -- Summary: --disable-hosted-libstdcxx causes build break Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pedz at easesoftware dot net GCC build triplet: powerpc-ibm-aix5.3.0.0 GCC host triplet: powerpc-ibm-aix5.3.0.0 GCC target triplet: powerpc-ibm-aix5.3.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25823