+++ This bug was initially created as a clone of Bug #14435 +++ I built "gcc version 4.4.0 20090111 [trunk revision 143259]" and when I run "make -i check" it sets 'GCC_EXEC_PREFIX="/usr/local/lib/gcc/"'.
It seems gcc may look for this directory: # ls -lrtA /usr/local/lib/gcc/i386-pc-solaris2.11/4.4.0/ total 1327 drwxr-xr-x 13 root root 21 Jan 10 22:26 include-fixed drwxr-xr-x 3 root root 7 Jan 11 17:57 install-tools -rw-r--r-- 1 root root 137434 Jan 11 17:58 libgcc_eh.a -rw-r--r-- 1 root root 236788 Jan 11 17:58 libgcc.a -rw-r--r-- 1 root root 95148 Jan 11 17:58 libgcov.a -rw-r--r-- 1 root root 3888 Jan 11 17:58 gmon.o -rw-r--r-- 1 root root 2032 Jan 11 17:58 crtbegin.o -rw-r--r-- 1 root root 1300 Jan 11 17:58 crtend.o -rwxr-xr-x 1 root root 924 Jan 11 17:59 libgfortranbegin.la -rw-r--r-- 1 root root 4462 Jan 11 17:59 libgfortranbegin.a drwxr-xr-x 2 root root 604 Jan 11 18:06 adalib drwxr-xr-x 2 root root 1087 Jan 11 18:06 adainclude drwxr-xr-x 4 root root 12 Jan 11 18:06 amd64 drwxr-xr-x 2 root root 6 Jan 11 18:07 finclude drwxr-xr-x 5 root root 41 Jan 11 18:07 include # gmake -i check ... gmake[2]: Entering directory `/usr/share/src/gcc_build/gcc' test -d testsuite || mkdir testsuite test -d testsuite/gcc || mkdir testsuite/gcc (rootme=`${PWDCMD-pwd}`; export rootme; \ srcdir=`cd ../../gcc_trunk/gcc; ${PWDCMD-pwd}` ; export srcdir ; \ cd testsuite/gcc; \ rm -f tmp-site.exp; \ sed '/set tmpdir/ s|testsuite|testsuite/gcc|' \ < ../../site.exp > tmp-site.exp; \ /bin/sh ${srcdir}/../move-if-change tmp-site.exp site.exp; \ EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo ${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ; \ if [ -f ${rootme}/../expect/expect ] ; then \ TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \ export TCL_LIBRARY ; fi ; \ GCC_EXEC_PREFIX="/usr/local/lib/gcc/" ; export GCC_EXEC_PREFIX ; \ ... If you do NOT run "make install" _PRIOR_ to running "make -i check" then how can we be thinking that "/usr/local/lib/gcc/" contains the _correct_ code to be used for the Testsuite ? We should either require installation prior to checking (which is not good but I do it to ensure I don't get hit) _or_ have "make -i check" do a _partial_ installation to a temp directory and set the "GCC_EXEC_PREFIX" environment variable to the temporary directory instead (preferred). We need "GCC_EXEC_PREFIX" set to the code that was just compiled and not to code that might have been installed weeks / months previously (or not installed at all). Rob -- Summary: [4.2/4.3/4.4 Regression] During "make -i check" we set GCC_EXEC_PREFIX="/usr/local/lib/gcc/" Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: testsuite AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rob1weld at aol dot com GCC build triplet: *-*-* GCC host triplet: *-*-* GCC target triplet: *-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38820