I was attempting to follow the instructions in the "Gcc 3.0.4 installed system" post to gentoo-dev and ran into a problem. These are the steps I followed: Normal stage1 install, followed by emerge rsync. rm /etc/make.profile & ln -s /usr/portage/profiles/default-1.0-gcc3 /etc/make.profile edit make.conf scripts/bootstrap.sh It starts building binutils, etc. then fails during the GCC 3 compile with the following errors: Bootstrapping the compiler make [1]: Entering directory '/var/tmp/portage/gcc3.0.4-r3/work/build/gcc' (cd /var/tmp/portage/gcc3.0.4-r3/work/gcc-3.0.4 /gcc && autoconf) /bin/sh: autoconf : command not found make [1] *** [/var/tmp/portage/gcc3.0.4-r3/work/build/gcc/configure] Error 127 make [1] : Leaving directory /var/tmp/portage/gcc3.0.4-r3/work/build/gcc make: *** [bootstrap-lean] Error 2 !!! Error: The ebuild did not complete successfully !!! Function src_compile, Line 79, Exitcode 2 !!! (no error message) !!! emerge aborting on /usr/portage/sys-devel/gcc/gcc-3.0.4-r3.ebuild
gcc3 needs autoconf in the stage1 image.
It seems this is caused by the name transformation patch copied from Mandrake. This causes the build process to try to rebuild the makefiles because Makefile.in has been changed, thus needing autoconf. As far as I know the Mandrake patch only takes effect when building a cross compiler, or a compiler with special binary names (e.g. gcc-3.0). In the bootstrap process this seems to me to be a non-issue. One solution might therefor be (to add autoconf as a dependancy and include the Mandrake patch) only if the 'build' use var is not set. Best regards Martin Blix Grydeland
Ok, try -r4 in a while.
the mandrake patch is also buggy, if in developer mode "noclean" is on you can end up with double mangled names which is really funky.
gcc-3.0.4-r4 works! I've successfully installed a gcc 3 bootstrapped system. Not sure if this was the "right" way to do it, but I bootstrapped twice. 1st time through the gcc from the boot image doesn't accept the -march athlon flag (so i bootstrapped with the -i686 flag in make.conf). After the 1st bootstrap, I edited make.conf, changing the -march i686 flag to athlon and ran the bootstrap script again.