I noticed that the libstdc++ testsuite fails to run on mips-sgi-irix6.5 and mips-sgi-irix5.3::
ERROR: tcl error sourcing /vol/gcc/src/gcc-dist/libstdc++-v3/testsuite/libstdc++-abi/abi.exp. ERROR: could not link libtestc++.a while executing "error "could not link libtestc++.a"" (procedure "v3-build_support" line 82) invoked from within "v3-build_support" (file "/vol/gcc/src/gcc-dist/libstdc++-v3/testsuite/libstdc++-abi/abi.exp" line 22) invoked from within "source /vol/gcc/src/gcc-dist/libstdc++-v3/testsuite/libstdc++-abi/abi.exp" ("uplevel" body line 1) invoked from within "uplevel #0 source /vol/gcc/src/gcc-dist/libstdc++-v3/testsuite/libstdc++-abi/abi.exp" invoked from within "catch "uplevel #0 source $test_file_name"" It turns out that this happens since the platform lacks ranlib, but testsuite/lib/libstdc++.exp (v3-build_support) uses either $RANLIB_FOR_TARGET or ranlib. Of course, trying to execute a non-existant command fails. The toplevel Makefile only passes in RANLIB=:, not RANLIB_FOR_TARGET. This was most likely introduced by this patch: 2007-03-15 Hans-Peter Nilsson <[EMAIL PROTECTED]> * testsuite/lib/libstdc++.exp (v3-build_support) <ar>: If it exists, use env(AR_FOR_TARGET). Log the command. <ranlib>: Similar. Environment: System: IRIX64 columba 6.5 07010238 IP27 host: mips-sgi-irix6.5 build: mips-sgi-irix6.5 target: mips-sgi-irix6.5 configured with: /vol/gcc/src/gcc-dist/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls --with-gnu-as --with-as=/vol/gcc/lib/gas-2.17 --enable-libgcj --with-gmp=/vol/gcc --with-mpfr=/vol/gcc --disable-libmudflap --enable-languages=c,ada,c++,fortran,objc --no-create --no-recursion How-To-Repeat: Bootstrap and test mainline or the 4.2 branch as above. ------- Comment #1 from ro at techfak dot uni-bielefeld dot de 2007-06-25 15:23 ------- Fix: This can be worked around by setting RANLIB_FOR_TARGET=: in the environment, but this shouldn't be necessary. -- Summary: libstdc++ testsuite fails on platforms without ranlib Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ro at techfak dot uni-bielefeld dot de GCC build triplet: mips-sgi-irix6.5 GCC host triplet: mips-sgi-irix6.5 GCC target triplet: mips-sgi-irix6.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32499