After completing stage1 build, the xgcc binary is being used. Unfortunately, the -V option used in objdir/intl/configure breaks the build. Below is a relevant snippet from objdir/intl/config.log:
configure:1771: checking for armv5tejl-unknown-linux-gnu-gcc configure:1797: result: /scratch/gcc-4.2.2/objdir/./prev-gcc/xgcc -B/scratch/gcc-4.2.2/objdir/./prev-gcc/ -B/usr/local/armv5tejl-unknown-linux-gnu/bin/ configure:2079: checking for C compiler version configure:2082: /scratch/gcc-4.2.2/objdir/./prev-gcc/xgcc -B/scratch/gcc-4.2.2/objdir/./prev-gcc/ -B/usr/local/armv5tejl-unknown-linux-gnu/bin/ --version </dev/null >&5 xgcc (GCC) 4.2.2 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2085: $? = 0 configure:2087: /scratch/gcc-4.2.2/objdir/./prev-gcc/xgcc -B/scratch/gcc-4.2.2/objdir/./prev-gcc/ -B/usr/local/armv5tejl-unknown-linux-gnu/bin/ -v </dev/null >&5 Reading specs from /scratch/gcc-4.2.2/objdir/./prev-gcc/specs Target: armv5tejl-unknown-linux-gnu Configured with: ../configure --with-float=soft --enable-languages=c,c++,objc --disable-nls --with-newlib Thread model: posix gcc version 4.2.2 configure:2090: $? = 0 configure:2092: /scratch/gcc-4.2.2/objdir/./prev-gcc/xgcc -B/scratch/gcc-4.2.2/objdir/./prev-gcc/ -B/usr/local/armv5tejl-unknown-linux-gnu/bin/ -V </dev/null >&5 xgcc: '-V' must come at the start of the command line configure:2095: $? = 1 configure:2118: checking for C compiler default output file name configure:2121: /scratch/gcc-4.2.2/objdir/./prev-gcc/xgcc -B/scratch/gcc-4.2.2/objdir/./prev-gcc/ -B/usr/local/armv5tejl-unknown-linux-gnu/bin/ -g -O2 conftest.c >&5 configure:2124: $? = 0 configure:2170: result: a.out configure:2175: checking whether the C compiler works configure:2181: ./a.out /scratch/gcc-4.2.2/intl/configure: line 2182: ./a.out: No such file or directory configure:2184: $? = 127 configure:2193: error: cannot run C compiled programs. For completeness, I did: objdir$ rm -rf * objdir$ ../configure --with-float=soft --enable-languages=c,c++,objc \ --disable-nls --with-newlib objdir$ make bootstrap -- Summary: -V option should be compatible with -B at least, possible others as well Product: gcc Version: 4.2.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mmokrejs at ribosome dot natur dot cuni dot cz http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34494