Pierre Habraken <Pierre.Habraken@imag.fr> writes:
> cd gcc-3.1
> mkdir build
> cd build
You should have used
cd gcc-3.1
mkdir ../build-gcc-3.1
cd ../build-gcc-3.1
and so on. The build directory must not be located inside the source
directory tree. (This is mentioned earlier in the installation
document.)