Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Necessary to reinstall Gentoo after -march change?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Mon Jun 14, 2004 11:10 am    Post subject: [SOLVED] Necessary to reinstall Gentoo after -march change? Reply with quote

Hi

I just upgraded my pc at work from a Pentium 2 (400mhz) to a Pentium 3 (800mhz) (not that special, I know, but it's still a huge difference).

Before, on the P2, I was using these flags:
Code:
CFLAGS="-march=pentium2 -O3 -pipe -funroll-loops -fomit-frame-pointer"

Now I was wondering whether it would be wise to change the CPU flag to pentium3, and then continue with installing updates from portage. This method would eventually cause my system to have some packages built for P2 (those that aren't updated yet), and some built for P3 (those that were updated).
If there are no issues (other than not optimally compiled), I'd rather keep it like this, because doing a Gentoo install from scratch would take a LOOONG time.

Any suggestions/comments would be appreciated.
_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/


Last edited by lunarg on Mon Jun 14, 2004 5:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hayl
Guru
Guru


Joined: 28 Jan 2003
Posts: 442
Location: Calgary, Alberta, Canada

PostPosted: Mon Jun 14, 2004 1:21 pm    Post subject: Reply with quote

change your flags to whatever you want and then do "emerge -e world". that command will rebuild every package so it all will all have the new flags. or, just let them slowly change the way you said.
_________________
"I do not fear computers. I fear lack of them." - Isaac Asimov
Back to top
View user's profile Send private message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Mon Jun 14, 2004 3:58 pm    Post subject: Reply with quote

If I do want to change it "slowly" (so with updating), would this cause inconsistencies or instabilities? (...since there are then packages built for different architectures)
_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/
Back to top
View user's profile Send private message
jbc28
Apprentice
Apprentice


Joined: 07 Jan 2003
Posts: 205
Location: Edinburgh

PostPosted: Mon Jun 14, 2004 4:28 pm    Post subject: Reply with quote

In the case of a processor upgrade I can't see it causing any problems (a P4 should support all the P2 options). A downgrade will undoubtedly lead to instabilities.
I'd upgrade packages slowly as you suggest, unless your pc has lots of time on its hands.
J
Back to top
View user's profile Send private message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Mon Jun 14, 2004 5:49 pm    Post subject: Reply with quote

Then I'll go with the "slow" update method, although I'm going to recompile things like the kernel, gcc, and some libs (glibc, glib, ...), since I've noticed inconsistencies on a testing server when trying to insmod drivers compiled for P2 on a kernel compiled for 386.
In fact, think I'm going to make a "stage4" backup before I start.

Thank you all for the help.
_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/
Back to top
View user's profile Send private message
jbc28
Apprentice
Apprentice


Joined: 07 Jan 2003
Posts: 205
Location: Edinburgh

PostPosted: Mon Jun 14, 2004 5:59 pm    Post subject: Reply with quote

I think the kernel compilation optimizations are much more aggressive than setting march so I think you should be OK. That said, better backed up than not!
J
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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