I have gcc-4.6.1 installed in my Ubuntu 11.10 system. For compiling some other software I require gcc-4.0. I download the gcc-4.0.0 tar file and extracted it. I created a new folder and ran the configure file (without any options) from the gcc-4.0.0 directory. Everything worked fine till here.
But when I try to make, I get the following error:
Configuring in fastjar configure: creating cache ./config.cache checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes configure: error: source directory already configured; run "make distclean" there first make: *** [configure-fastjar] Error 1
I tried running make distclean in gcc-4.0.0 but again I get the following error:
make: *** No rule to make target `distclean'. Stop.