Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Switching march from Pentium2 to Pentium3 [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Fri Oct 27, 2006 11:04 am    Post subject: Switching march from Pentium2 to Pentium3 [Solved] Reply with quote

So I was moving my HD from my old ThinkPad PII 300Mhz to HP PIII 500Mhz and now I thought should I do emerge -e sytem && emerge -e world to take advance of my new cpu's features (march=pentium3, sse +?) :?:

Or should I just compile the affected packets ?
Code:
$ equery h sse
[ Searching for USE flag sse in all categories among: ]
 * installed packages
[I--] [  ] media-gfx/gimp-2.2.12 (2)
[I--] [  ] sci-libs/fftw-3.0.1-r2 (3.0)
[I--] [  ] media-sound/fluidsynth-1.0.7 (0)
[I--] [  ] media-sound/jack-audio-connection-kit-0.101.1-r1 (0)
[I--] [  ] dev-libs/DirectFB-0.9.25.1 (0)
[I--] [  ] media-libs/speex-1.1.7 (0)
[I--] [  ] media-libs/libfame-0.9.1-r1 (0)
[I--] [  ] media-libs/allegro-4.2.0-r1 (0)
[I--] [  ] media-video/mjpegtools-1.8.0-r1 (1)
[I--] [  ] media-video/mplayer-1.0_pre8 (0)
[I--] [  ] media-video/transcode-1.0.2-r2 (0)

_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.


Last edited by linuxtuxhellsinki on Sun Oct 29, 2006 10:02 pm; edited 2 times in total
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Fri Oct 27, 2006 12:29 pm    Post subject: Reply with quote

I would suggest compiling the whole system with your new -march.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Sat Oct 28, 2006 5:18 pm    Post subject: Reply with quote

Yeah I thought so too and was almost doing it, but then I was thinking that is it necessary and asking it from here is the best way to find out it (the best forums of the world) :P

So how should I do it in the correct way ? Should I first compile the toolchain (binutils, gcc, glibc and what else and in which order ?) and then system & world :?: And is there some other USE-flags or Cflags which I should add :?:
Code:
 CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe -msse -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS} -fvisibility=hidden -fvisibility-inlines-hidden"

This laptop is HP 4150B if someone has some experience with it.
_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
Donman
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2005
Posts: 117

PostPosted: Sun Oct 29, 2006 4:06 am    Post subject: Reply with quote

You should be prepared to encounter with -fvisibility-inlines-hidden. A few packages will bomb out while using it. Same with -fvisibility=hidden. All in all, its up to you. Other than that, you should not need to add any more *FLAGS. And if you are just getting the system optimized to your new processor, a simple emerge -e world should suffice. But IMHO, two emerge -e world's would be better. But maybe thats cause I'm just a crazy man that worries alot...

**Edit**: If you do experience breakage with -fvisibility*, then you can use this nifty bashrc. It'll let you set up per package CFLAGS and such. Use that instead of Bugzilla. :wink:
Back to top
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Sun Oct 29, 2006 10:05 am    Post subject: Reply with quote

Yes, I've realized that some packages are not building with -fvisibility=hidden and if that happens I've just commented that part away for a while CXXFLAGS="${CFLAGS}"# -fvisibility=hidden -fvisibility-inlines-hidden" ,but that portage-bashrc-ng seems like the right tool for these situations. Thanks :)

I started this 'upgrading' last night with compiling the toolchain and now I'm in middle of emerging the system. Let's see how long it's gonna take, but it feels like this is quite much faster than my old PII, which you can see from this... :P
Code:
utti@hellsinki ~ $ genlop -t glibc |tail -n6
     Tue Sep 19 19:29:32 2006 >>> sys-libs/glibc-2.4-r3
       merge time: 3 hours, 47 minutes and 27 seconds.

     Sun Oct 29 08:28:40 2006 >>> sys-libs/glibc-2.4-r3
       merge time: 2 hours, 10 minutes and 18 seconds.

utti@hellsinki ~ $ genlop -t gcc |tail -n6
     Thu Sep  7 12:18:14 2006 >>> sys-devel/gcc-4.1.1
       merge time: 6 hours, 9 minutes and 16 seconds.

     Sun Oct 29 06:18:22 2006 >>> sys-devel/gcc-4.1.1
       merge time: 3 hours, 25 minutes and 43 seconds.

_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Sun Oct 29, 2006 6:51 pm    Post subject: Reply with quote

Now I've a problem after the emerge -eav system , cause now when I'm going to update world in the same way, it wants to build all those system packages cause they also belong to world.

So how can I prevent it ? Is the only way to stop all the system packages and emerge --resume --skipfirst then :?:


Edit : And now I've just deleted all the distfiles, so it wants to dl 'em again :oops:
_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Sun Oct 29, 2006 7:41 pm    Post subject: Reply with quote

linuxtuxhellsinki wrote:
Now I've a problem after the emerge -eav system , cause now when I'm going to update world in the same way, it wants to build all those system packages cause they also belong to world.

So how can I prevent it ?

You should not prevent this. These packages should be built again.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Sun Oct 29, 2006 8:06 pm    Post subject: Reply with quote

massimo wrote:
not prevent this. These packages should be built again.
Why?

linuxtuxhellsinki: Use a script called emwrap.sh, it will allow you to only rebuild world packages: https://forums.gentoo.org/viewtopic-t-282474.html
Code:
emwrap.sh -w
Back to top
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Sun Oct 29, 2006 10:00 pm    Post subject: Reply with quote

Thanks for that info, but I already checked which were in the system (~100pkgs) from the list which I've copy/pasted to the file. Then I just interrupted those 100 first packages and "--resume --skipfirst":ed 'em and now it's compiling 4th of 689 packages of the world.


psyqil : I was trying to find that looong "An emerge wrapper for more correctly building the toolchain" thread with some 'toolchain' etc. searchwords (cause I couldn't remember the name of that thread) but with no sucess. Maybe I've time to read it this time to the end :wink:

I'll add [solved] to this thread, but if someone can give some other tips for this P2-P3 conversion that would be nice to hear, like are there some other use-flags, progs... which could be useful for performance wise (prelink ?).
Here's my cpuinfo, is this some kind of mobile-cpu which could scale frequencies (I readed that from somewhere) :roll:
Code:
$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 1
cpu MHz         : 498.047
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse up
bogomips        : 996.26

_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Sun Oct 29, 2006 10:44 pm    Post subject: Reply with quote

linuxtuxhellsinki wrote:
Then I just interrupted those 100 first packages and "--resume --skipfirst":ed 'em
:D

USE=sse is the one thing I can see might be worth adding to your flags...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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