Summary: After building 4.2.2, `make install` failed due to unrecognized option `-Wno-overlength-strings`. Removing `-Wno-overlength-strings` everywhere from BUILDIR/gcc/Makefile fixed it.
These are the source packages used: gcc-core-4.2.2.tar.bz2 gcc-g++-4.2.2.tar.bz2 This is the exact command used to build: $ ../gcc-4.2.2/configure --disable-nls --prefix=/opt/gcc-4.2.2 $ make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean $ make install This is the system: $ uname -a Linux dev 2.6.8-3-386 #1 Wed Dec 6 00:38:53 UTC 2006 i686 GNU/Linux This is the compiler used to build: $ gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) The error occured on `make install`. (Sorry I don't have a copy of the error message). The error said (paraphrased) "unrecognized option -Wno-overlength-strings". To fix, I removed the text `-Wno-overlength-strings` from `./gcc/Makefile` wherever it appeared. Then `make install` went fine.