I am trying to install Gentoo from the x86 1.4 basic iso. All defaults are used from following the install documentation, including all default make.conf settings. During the bootstrap process gcc fails to build with an error: make [2]: *** [regclass.o] Error 1 make [2]: Leaving directory `var/tmp/portage/gcc-3.2.3-r1/work/build/gcc' make [2]: *** [stage3_build] Error 2 make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.2.3-r1 failed. !!! Function src_compile, Line 371, Exitcode 2 !!! (no error message) make [2]: Leaving directory `var/tmp/portage/gcc-3.2.3-r1/work/build/gcc' Reproducible: Always Steps to Reproduce: 1. emerge sync 2. cd /usr/portage 3. scripts/bootstrap.sh Actual Results: ... make [2]: *** [regclass.o] Error 1 make [2]: Leaving directory `var/tmp/portage/gcc-3.2.3-r1/work/build/gcc' make [2]: *** [stage3_build] Error 2 make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.2.3-r1 failed. !!! Function src_compile, Line 371, Exitcode 2 !!! (no error message) make [2]: Leaving directory `var/tmp/portage/gcc-3.2.3-r1/work/build/gcc' Expected Results: bootstrap to complete make.conf CHOST="i486-pc-linux-gnu" CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
Looking at the values you have for CHOST and CFLAGS in /etc/make.conf, are you sure you set them correctly? Is this an i486 class machine you are using? If it is, then you have CHOST set properly, but need to change the -mcpu= parameter in your CFLAGS because building i686-class instructions for an i486-class processor will most asuredly confuse the poor thing. On the other hand, if you have an i686-class processor, then your CHOST is wrong, and gcc thinks it is trying to build for a non-pentium system, but your CFLAGS contradict by specifying i686-class instructions. For reference: i486 = non-pentium processors like SX, SX2, DX, DX2, DX4, etc.. i586 = Pentium 1 processors and Pentium overdrive processors; AMD K6-2 as well i686 = Pentium 2 and beyond; Also any modern AMD Processor
Sorry, that works now. The problem was user error. Now I can't get java to compile.... Thanks Neil
user error