Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make.conf: used wrong CHOST
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
whte_rbt
n00b
n00b


Joined: 23 Jul 2004
Posts: 4
Location: Germany, Stuttgart, Schwäbische Alb

PostPosted: Fri Jul 23, 2004 6:54 pm    Post subject: make.conf: used wrong CHOST Reply with quote

Hi,

I'm trying to get Gentoo running on a 150Mhz Pentium 1 machine.

Being already through the entire setup process, while emerging Gnome, I realized that I used CHOST="i386-pc-linux-gnu" instead of i586. In CFLAGS I used -march=pentium.

Could there occur any problems with that? Or does this reduce the performance of the system?

Thanks for any ideas what effects this could have.

whte_rbt
Back to top
View user's profile Send private message
widu
Guru
Guru


Joined: 05 Jun 2004
Posts: 333
Location: Freiburg

PostPosted: Fri Jul 23, 2004 9:31 pm    Post subject: Reply with quote

Hi du schwoob
did you make a stage1 install? if not the install manual says:
Quote:
Although it might be tempting for non-stage1 users, they should not change the CHOST setting in make.conf. Doing so might render their system unusable. Again: only change this variable if you use a stage1 installation.

wärmste grüße aus dem badischen
widu
Back to top
View user's profile Send private message
whte_rbt
n00b
n00b


Joined: 23 Jul 2004
Posts: 4
Location: Germany, Stuttgart, Schwäbische Alb

PostPosted: Sat Jul 24, 2004 11:29 am    Post subject: Reply with quote

Hi, (Gruß zurück nach Südbaden!)

its about a stage3 installation.

Ok, thats a hint, but what means to "change" in this case? To change from the default setting (i386), or to change to a different setting than the real processor would need?

On the next machine (300Mhz PII), also stage3, I used i686 -- was this a mistake then?

By now, everything runs fine, on both machines. The 150Mhz box compiles very slow (4 days for genkernel, xfree and gnome...), but I believe thats caused by its physical abilities.

I'll see, perhaps one of the two is unusable after all.

Thanks.

whte_rbt
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Sat Jul 24, 2004 8:45 pm    Post subject: Reply with quote

If you are using a stage 3 install and want to recompile the system to use the new chost setting just run:

Code:
emerge -e world


This will recompile EVERYTNING so don't plan on using your machine for about a day. -e means emptytree by the way. And you may want to take a look at your USE flags in /etc/make.conf as well. If you are going to recompile the system you may as well take advantage and set everything exactly the way you want.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
widu
Guru
Guru


Joined: 05 Jun 2004
Posts: 333
Location: Freiburg

PostPosted: Sun Jul 25, 2004 8:49 pm    Post subject: Reply with quote

Quote:
its about a stage3 installation.

Ok, thats a hint, but what means to "change" in this case? To change from the default setting (i386), or to change to a different setting than the real processor would need?

On the next machine (300Mhz PII), also stage3, I used i686 -- was this a mistake then?

The CHOST settings should depend imho of the stage tarball you did use. And as I understood the documentation, you shouldn't change the setting that came with your stage-3 tarball.
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Sun Jul 25, 2004 9:15 pm    Post subject: Reply with quote

widu wrote:
Quote:
its about a stage3 installation.

Ok, thats a hint, but what means to "change" in this case? To change from the default setting (i386), or to change to a different setting than the real processor would need?

On the next machine (300Mhz PII), also stage3, I used i686 -- was this a mistake then?

The CHOST settings should depend imho of the stage tarball you did use. And as I understood the documentation, you shouldn't change the setting that came with your stage-3 tarball.


Your correct widu. But if you are going to recompile the entire system using emerge -e world then changing the CHOST and USE flags is OK. After the recompile the system will be like a stage 1 install. If you are using GRP packages with the -k option then CHOST and USE in make.conf should never be touched.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
skatefriday
n00b
n00b


Joined: 25 Jul 2004
Posts: 41

PostPosted: Mon Jul 26, 2004 4:46 am    Post subject: Reply with quote

I think the real question is, if you don't just "know" which
flavor of Pentium maps to which x86 number it can be
difficult to find the documentation that states which is
which.

Perhaps the Installation Guide could be changed to reflect
this? i.e. This part

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=5#doc_chap5

I think anything after the Pentium Pro is an i686, but I'm
not exactly sure as I couldn't find any real documentation
on the subject.

BTW, the documentation is generally excellent.

Craig
Back to top
View user's profile Send private message
whte_rbt
n00b
n00b


Joined: 23 Jul 2004
Posts: 4
Location: Germany, Stuttgart, Schwäbische Alb

PostPosted: Mon Jul 26, 2004 9:15 am    Post subject: Reply with quote

skatefriday wrote:
I think the real question is, if you don't just "know" which
flavor of Pentium maps to which x86 number it can be
difficult to find the documentation that states which is
which.


You're right, that would be a nice addition to the guide. But I believe I know which is which, and thats the same what you are saying: i386=i386, i486=i486, PI,PP=i586, PII+=i686.

The matter was that I simply forgot to pay attention to CHOST.

Reading this thread I think I've done right with my first machine, but wrong with the second: I changed it on the PII to i686 and I didn't on the PI.

I used the "x86" stage3 package (There are also packages for i686,P3,P4,AthlonXP) in both cases. And this one comes with CHOST as i386. - So may I conclude, that i386 works for all Intel archs?

rbt.
Back to top
View user's profile Send private message
whte_rbt
n00b
n00b


Joined: 23 Jul 2004
Posts: 4
Location: Germany, Stuttgart, Schwäbische Alb

PostPosted: Mon Jul 26, 2004 9:24 am    Post subject: Reply with quote

curtis119 wrote:
This will recompile EVERYTNING so don't plan on using your machine for about a day.


Thank you for that hint, I believe it will be useful in my gentoo future. And perhaps I'll need it soon on my PII with CHOST i686 set.

But my PI is computing for over 72 hours to get a lonesome Gnome emerged. Don't talking about what it took to genkernel and emerge xfree... so recompiling everything shoud reasonably be estimated for a execution time of about a month...

:?

Considering this, I'm so thankful that these two machines are only fun boxes to try some software on performance: If it runs nice on them, it will run even nicer on my G4 PPCs... and thats what Gentoo is about to be tested in..

:twisted:

rbt.
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Wed Oct 20, 2004 6:50 pm    Post subject: Reply with quote

Click here for the ultimate truth.
Moved from Installing Gentoo to Duplicate threads.
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum