Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29830 - gcc 3.2.3 r1 fails to build from bootstrap
Summary: gcc 3.2.3 r1 fails to build from bootstrap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-28 12:11 UTC by Neil Blue
Modified: 2003-10-02 23:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Blue 2003-09-28 12:11:48 UTC
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"
Comment 1 Joshua Kinard gentoo-dev 2003-10-02 02:41:24 UTC
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
Comment 2 Neil Blue 2003-10-02 23:45:47 UTC
Sorry, that works now. The problem was user error. Now I can't get java to
compile....


Thanks
Neil
Comment 3 Neil Blue 2003-10-02 23:46:30 UTC
user error