Boostrapping GCC 4.0.0 using SCO OpenServer 5.0.5, GCC 3.3.3, GNU gas 2.14 and SCO ld fails in stage 3 while compiling eh_alloc.cc. Preprocessed eh_alloc.ii will be attached. This seems very similar to or the same problem as bootstrap/7979, which was filed against 3.2 but apparently still occurs with 3.4.3.
Failed command and diagnostics: /home/formtrap/objdir/gcc/xgcc -shared-libgcc -B/home/formtrap/objdir/gcc/ -nostdinc++ -L/home/formtrap/objdir/i686-pc-sco3.2v5.0.5/libstdc++-v3/src -L/home/formtrap/objdir/i686-pc-sco3.2v5.0.5/libstdc++-v3/src/.libs -B/usr/local/gcc-4.0.0/i686-pc-sco3.2v5.0.5/bin/ -B/usr/local/gcc-4.0.0/i686-pc-sco3.2v5.0.5/lib/ -isystem /usr/local/gcc-4.0.0/i686-pc-sco3.2v5.0.5/include -isystem /usr/local/gcc-4.0.0/i686-pc-sco3.2v5.0.5/sys-include -I/home/formtrap/gcc-4.0.0/libstdc++-v3/../gcc -I/home/formtrap/objdir/i686-pc-sco3.2v5.0.5/libstdc++-v3/include/i686-pc-sco3.2v5.0.5 -I/home/formtrap/objdir/i686-pc-sco3.2v5.0.5/libstdc++-v3/include -I/home/formtrap/gcc-4.0.0/libstdc++-v3/libsupc++ -g -O2 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c /home/formtrap/gcc-4.0.0/libstdc++-v3/libsupc++/eh_alloc.cc -o eh_alloc.o /home/formtrap/objdir/i686-pc-sco3.2v5.0.5/libstdc++-v3/include/cstring: In function 'void* std::memchr(void*, int, size_t)': /home/formtrap/objdir/i686-pc-sco3.2v5.0.5/libstdc++-v3/include/cstring:100: error: 'void* std::memchr(void*, int, size_t)' conflicts with previous using declaration 'void* memchr(void*, int, size_t)' Configure line to gcc 4.0.0 was: /home/formtrap/gcc-4.0.0/configure --prefix=/usr/local/gcc-4.0.0 --disable-nls --enable-languages=c,c++ --disable-libada --enable-shared --with-gnu-as --with-as=/usr/gnu/bin/gas --without-gnu-ld" Bootstrap compiler is: Configured with: ../srcdir/configure --enable-shared --disable-nls --enable-languages=c,c++ --enable-debug --with-gnu-as --with-as=/usr/gnu/bin/gas --without-gnu-ld Thread model: single gcc version 3.3.3 Output from uname -a: SCO_SV sco 3.2 5.0.5 i386 unknown -- Summary: SCO OpenServer stage 3 failing in eh_alloc.cc Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: matthew at formtrap dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-sco3.2v5.0.5 GCC host triplet: i686-pc-sco3.2v5.0.5 GCC target triplet: i686-pc-sco3.2v5.0.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21776