[Bug bootstrap/20380] New: bootstrap failure
Bootstrap of gcc-3.4.3 (and 3.4.2) fails with following messages while trying to create libstdc++.so.6. I applied the APAR's mentioned in the Platform notes (btw it is a aix51 ML 3) bos.adt.base.5.1.0.55.bff bos.rte.bind_cmds.5.1.0.55.bff .libs/codecvt.o(.tc+0x0):/soft/gcc/gcc-3.4.2/gcc-3.4.2/libstdc++-v3/src/codecvt.cc: undefined reference to `vtable for std::__codecvt_abstract_base' .libs/codecvt.o(.tc+0x0):/soft/gcc/gcc-3.4.2/gcc-3.4.2/libstdc++-v3/src/codecvt.cc: undefined reference to `vtable for std::__codecvt_abstract_base' .libs/codecvt.o(.rw+0x2c):/soft/gcc/gcc-3.4.2/gcc-3.4.2/libstdc++-v3/src/codecvt.cc: undefined reference to `vtable for __cxxabiv1::__si_class_type_info' .libs/codecvt.o(.rw+0x34):/soft/gcc/gcc-3.4.2/gcc-3.4.2/libstdc++-v3/src/codecvt.cc: undefined reference to `typeinfo fo r std::__codecvt_abstract_base' .libs/codecvt.o(.rw+0x64):/soft/gcc/gcc-3.4.2/gcc-3.4.2/libstdc++-v3/src/codecvt.cc: undefined reference to `vtable for tons of other undefined references omitted ... -- Summary: bootstrap failure Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: critical Priority: P2 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: o dot flebbe at science-computing dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-ibm-aix5.1.0.0 GCC host triplet: powerpc-ibm-aix5.1.0.0 GCC target triplet: powerpc-ibm-aix5.1.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20380
[Bug bootstrap/20380] bootstrap failure
--- Additional Comments From o dot flebbe at science-computing dot de 2005-03-08 10:27 --- Someone has placed the gnu ld into my PATH Arghhh. Closed, invalid. -- What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20380
[Bug libstdc++/42349] New: ifstream broken
Compile this trivial program - #include #include int main() { std::ifstream fin("t3.cpp"); } - with g++ -g -O2 -Wall -pthread t3.cpp Running this program dumps core. Leaving out the option -pthread it does not abort and works o.k. Root cause seems to be that the std::ifstream class has different size with and without -pthread (i.e. -DTHREAD_SAFE) since definition of ifstream member std::__c_lock == __gthread_mutex_t is different with and without -pthread. This is an AIX only symptom. __c_lock is an int without threads and posix_lock with threads. Since there is only one libstdc++ for both with and without threads weird things will happen. -- diagnosis program -- #include #include int main() { printf( "%ld\n",sizeof( std::ifstream)); printf(" %ld\n", sizeof( __gthread_mutex_t)); } Output with -pthread 296 52 --- without 248 4 I would propose to compile gcc code always with THREAD_SAFE alway on. -- Summary: ifstream broken Product: gcc Version: 4.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: o dot flebbe at science-computing dot de 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=42349
[Bug libstdc++/42349] ifstream vs -pthread on AIX
--- Comment #3 from o dot flebbe at science-computing dot de 2009-12-10 14:30 --- OH NO! You are right! Can't believe it ... Sorry for that. Putting it myself as INVALD Please close -- o dot flebbe at science-computing dot de changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42349