Now you'll need to build a GCC cross-compiler for MOSS. Unpack the GCC 2.7.2 distribution, apply the patch for it available on the MOSS FTP site, configure it for the target i386-moss, and build it.
The build will fail while trying to make libgcc. This is normal, and is because libgcc needs some of MOSS's header files which haven't been installed yet; and we can't install MOSS until we have a cross-GCC to compile it with! However, libgcc isn't needed to build MOSS itself, only to build programs that use MOSS. Therefore, at this point, just build and install the compiler and ignore the error produced when GCC tries to build libgcc.
When installing the new compiler, you will need to supply the option INSTALL_LIBGCC= on the make command line; otherwise GCC will try to install the nonexistent libgcc before installing the i386-moss-gcc driver program, and you will be left with an incomplete and nonfunctional compiler setup.
$ tar xvzf gcc-2.7.2.tar.gz $ cd gcc-2.7.2 $ patch -p1 <../gcc-2.7.2-pch $ ./configure --target=i386-moss $ make LANGUAGES=c $ make install LANGUAGES=c INSTALL_LIBGCC= $ cd ..