$ ../gcc-4.1.0/configure --prefix=$HOME/opt/gcc-4.1.0.tmp --enable-languages=ada,c,c++ --with-as=$HOME/opt/binutils-2.16.1/bin/as --with-gnu-as --with-ld=$HOME/opt/binutils-2.16.1/bin/ld --with-gnu-ld --enable-bootstrap=no
... $ make ... /export/home/lbre/src/gcc-4.1.0.o/./gcc/xgcc -shared-libgcc -B/export/home/lbre/src/gcc-4.1.0.o/./gcc -nostdinc++ -L/export/home/lbre/src/gcc-4.1.0.o/sparc-sun-solaris2.8/libstdc++-v3/src -L/export/home/lbre/src/gcc-4.1.0.o/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -B/export/home/lbre/opt/gcc-4.1.0.tmp/sparc-sun-solaris2.8/bin/ -B/export/home/lbre/opt/gcc-4.1.0.tmp/sparc-sun-solaris2.8/lib/ -isystem /export/home/lbre/opt/gcc-4.1.0.tmp/sparc-sun-solaris2.8/include -isystem /export/home/lbre/opt/gcc-4.1.0.tmp/sparc-sun-solaris2.8/sys-include -I/export/home/lbre/src/gcc-4.1.0.o/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8 -I/export/home/lbre/src/gcc-4.1.0.o/sparc-sun-solaris2.8/libstdc++-v3/include -I/export/home/lbre/src/gcc-4.1.0/libstdc++-v3/libsupc++ -g -O2 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -I/export/home/lbre/src/gcc-4.1.0.o/sparc-sun-solaris2.8/libstdc++-v3/include/backward -Wno-deprecated -c ../../../../gcc-4.1.0/libstdc++-v3/src/strstream.cc -fPIC -DPIC -o .libs/strstream.o /var/tmp//cc4Gnxrh.s: Assembler messages: /var/tmp//cc4Gnxrh.s:3520: Error: symbol `_ZT' is already defined /var/tmp//cc4Gnxrh.s:5411: Error: symbol `_ZT' is already defined /var/tmp//cc4Gnxrh.s:5675: Error: symbol `_ZT' is already defined /var/tmp//cc4Gnxrh.s:7026: Error: symbol `_ZT' is already defined /var/tmp//cc4Gnxrh.s:7042: Error: symbol `_ZT' is already defined /var/tmp//cc4Gnxrh.s:7284: Error: symbol `_ZT' is already defined /var/tmp//cc4Gnxrh.s:7300: Error: symbol `_ZT' is already defined make[4]: *** [strstream.lo] Error 1 make[4]: Leaving directory `/export/home/lbre/src/gcc-4.1.0.o/sparc-sun-solaris2.8/libstdc++-v3/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/export/home/lbre/src/gcc-4.1.0.o/sparc-sun-solaris2.8/libstdc++-v3' make[2]: *** [all] Error 2 make[2]: Leaving directory `/export/home/lbre/src/gcc-4.1.0.o/sparc-sun-solaris2.8/libstdc++-v3' make[1]: *** [all-target-libstdc++-v3] Error 2 make[1]: Leaving directory `/export/home/lbre/src/gcc-4.1.0.o' make: *** [all] Error 2 As can be seen from the configure options, this is with GNU binutils 2.16.1. I also tried the Sun assembler and linker, and get similar errors but thousands of times instead of just 7. Complete logs available on request (1.2 Mb for GNU as/ld, 91 Mb for Sun as/ld; respectively 54k and 2553k compressed with bzip2). Am I doing something wrong? (--enable-bootstrap=yes gives the same errors). Incidentally, the options mention /export/home/lbre/opt/gcc-4.1.0.tmp/sparc-sun-solaris2.8/ in four places (-B and -isystem options) but this is incorrect because that directory does not exist yet. I don't think the bootstrap procedure should ever refer to the install directory, except when installing. Is this worth another PR? -- Ludovic Brenta. -- Summary: Assembler Error: symbol `_ZT' is already defined Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ludovic at ludovic-brenta dot org GCC build triplet: sparc-sun-solaris2.8 GCC host triplet: sparc-sun-solaris2.8 GCC target triplet: sparc-sun-solaris2.8 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27042