1 |
On 07/21/2010 03:22 AM, Dale wrote: |
2 |
> Alan McKinnon wrote: |
3 |
>> On Wednesday 21 July 2010 10:53:19 fajfusio@××.pl wrote: |
4 |
>> |
5 |
>>> Hi |
6 |
>>> |
7 |
>>> I've just switched to gcc 4.3.4 from 4.1.2 using gcc-config tool. I |
8 |
>>> don't |
9 |
>>> want to rebuild any package now. As time goes on my packages will be |
10 |
>>> compiled with new version. I hope that after a few month there will be |
11 |
>>> only a number of packages not compiled with a new gcc. Then I want to |
12 |
>>> recompile them on demand including libtool if necessary. |
13 |
>>> |
14 |
>>> Do you think my plan have a chance to succeed. |
15 |
>>> |
16 |
>> Yes. |
17 |
>> |
18 |
>> Why do you think you would even need to get into a long compile? Have |
19 |
>> you been |
20 |
>> reading that GCC Upgrade Guide at gentoo.org? You know, the one that |
21 |
>> is so |
22 |
>> flat out wrong on so many levels? |
23 |
>> |
24 |
>> |
25 |
> |
26 |
> I recently upgraded my gcc and I must confess, I did do a emerge -e |
27 |
> system. Is it needed, nope. |
28 |
> |
29 |
> OP, Alan is correct on this. You don't really need to re-emerge |
30 |
> everything. If, like me, you want to be on the safe side, just do a |
31 |
> emerge -e system and let the rest recompile as you update. |
32 |
> |
33 |
> Another good thing about this way, if this version of gcc causes you |
34 |
> trouble, you can downgrade and only have to re-emerge system. ;-) I |
35 |
> did upgrade gcc once and had serious issues with it. Wouldn't compile a |
36 |
> kernel, programs crashing and other weird things. After a downgrade, |
37 |
> all went back to normal. The only thing worse than a emerge -e world is |
38 |
> having to do it twice. LOL |
39 |
|
40 |
And to play devil's advocate, I'll chime in with my experience. The 4.4 |
41 |
GCC, at least on AMD CPUs, creates noticeably faster code. I recompiled |
42 |
all my packages after I upgraded to 4.4 and it was a *noticeable* |
43 |
difference. |
44 |
|
45 |
But, to make perfectly clear what Alan and Dale have stated previously, |
46 |
it is not a requirement to recompile anything. The binaries that are |
47 |
created still call the same system calls as they did before. The kernel |
48 |
still publishes them in the same locations. And to prove to yourself |
49 |
this is true, grab a statically linked binary, compiled for a stock |
50 |
standard i686, and run it on your machine. |