Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 80843

Summary: Stage 2 CHOST contains i686 on P166 MMX
Product: [OLD] Docs-user Reporter: ClemensT <c.tolboom>
Component: Gentoo Linux x86 Installation GuideAssignee: Docs Team <docs-team>
Status: VERIFIED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description ClemensT 2005-02-05 03:50:49 UTC
When installing 2004.3 minimal CD I don't know what to do about the wrong CHOST value.

The Warning is OK: see bug: 24760

Doing a stage 2 on a P166 MMX is not a good idea but doing a 'distcc' is an option then.

Reproducible: Always
Steps to Reproduce:

Actual Results:  
Add more info around the CHOST paragraph. Maybe mention distcc for the die-hards ;-)
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-05 06:07:09 UTC
If you have a wrong CHOST setting you're probably using the wrong stage2 file.

For P166 MMX systems, you would probably want to use stage2-x86-2004.3.tar.bz2. I'm not certain, but I believe a P-166 w/MMX is still i586 as it isn't based on the Pentium Pro core (or above).
Comment 2 ClemensT 2005-02-05 06:59:26 UTC
I see my report is not that good formulated.

In 5a Configuring the Compile Options there's a warning about don't change the CHOST value which had the i686-pc-linux-gnu instead of the expected i586-pc-linux-gnu value.

I used the install-x86-minimal-2004.3-r1.iso how's that to stage2-x86-2004.3.tar.bz2?

So probably this should be a installation bug?
Comment 3 ClemensT 2005-02-05 06:59:39 UTC
I see my report is not that good formulated.

In 5a Configuring the Compile Options there's a warning about don't change the CHOST value which had the i686-pc-linux-gnu instead of the expected i586-pc-linux-gnu value.

I used the install-x86-minimal-2004.3-r1.iso how's that to stage2-x86-2004.3.tar.bz2?

So probably this should be a installation bug?
Comment 4 Xavier Neys (RETIRED) gentoo-dev 2005-02-05 08:22:39 UTC
stage{1,2,3}-x86* all contain the following make.conf

"""
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
"""

If you had i686, either you put it there or you used the wrong stage file.
Comment 5 ClemensT 2005-02-06 12:01:34 UTC
Looking back to the mirror site structure I see that the path is
- .../gentoo/releases/x86/2004.3/stages/x86/stage2-x86-2004.3.tar.bz2
or
- .../gentoo/releases/x86/2004.3/stages/i686/stage2-i686-2004.3.tar.bz2

So if Xavier Neys is right then I cannot install on a P586 aka P I MMX because he states that all x86 stage files contain 
- CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
so I'm in trouble.

According to the handbook I'm not allowed to change the CHOST setting.

Or do I need to change the make.conf because of the default i686 setting.

I'm pretty sure I used the file
- stage2-x86-2004.3.tar.bz2

If the above is true the Handbook needs a change like
- 'Pentium-I' users should change the make.conf to stepdown the CHOST variable.

(I started this installation because I liked the philosophy of gentoo and to get a lean and mean Pentium-I linux laptop.)
Comment 6 SpanKY gentoo-dev 2005-02-06 12:03:41 UTC
-mcpu=i686 on a i386 machine is OK
Comment 7 ClemensT 2005-02-06 12:11:25 UTC
A very short answer ;-)

P-I = i586
P-II = i686
Comment 8 Xavier Neys (RETIRED) gentoo-dev 2005-02-08 02:02:55 UTC
Nothing wrong in stage files. Default make.conf matches sub-arch.
Nothing wrong in handbook either.
Closing bug.