View previous topic :: View next topic |
Author |
Message |
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Fri Oct 27, 2006 11:04 am Post subject: Switching march from Pentium2 to Pentium3 [Solved] |
|
|
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 |
|
|
massimo Veteran
Joined: 22 Jun 2003 Posts: 1226
|
Posted: Fri Oct 27, 2006 12:29 pm Post subject: |
|
|
I would suggest compiling the whole system with your new -march. _________________ Hello 911? How are you? |
|
Back to top |
|
|
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Sat Oct 28, 2006 5:18 pm Post subject: |
|
|
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)
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 |
|
|
Donman Tux's lil' helper
Joined: 05 Sep 2005 Posts: 117
|
Posted: Sun Oct 29, 2006 4:06 am Post subject: |
|
|
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. |
|
Back to top |
|
|
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Sun Oct 29, 2006 10:05 am Post subject: |
|
|
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...
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 |
|
|
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Sun Oct 29, 2006 6:51 pm Post subject: |
|
|
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 _________________ 1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread. |
|
Back to top |
|
|
massimo Veteran
Joined: 22 Jun 2003 Posts: 1226
|
Posted: Sun Oct 29, 2006 7:41 pm Post subject: |
|
|
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 |
|
|
psyqil Advocate
Joined: 26 May 2003 Posts: 2767
|
Posted: Sun Oct 29, 2006 8:06 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Sun Oct 29, 2006 10:00 pm Post subject: |
|
|
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
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)
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 |
|
|
psyqil Advocate
Joined: 26 May 2003 Posts: 2767
|
Posted: Sun Oct 29, 2006 10:44 pm Post subject: |
|
|
linuxtuxhellsinki wrote: | Then I just interrupted those 100 first packages and "--resume --skipfirst":ed 'em |
USE=sse is the one thing I can see might be worth adding to your flags... |
|
Back to top |
|
|
|