1 |
On Friday 12 May 2006 06:18, Jerry McBride <mcbrides9@×××××××.net> wrote |
2 |
about 'Re: [gentoo-user] After gcc-3.4.6-r1 & glibc-2.4-r2 emerge!': |
3 |
> On Thursday 11 May 2006 19:47, Richard Fish wrote: |
4 |
> > On 5/11/06, Jerry McBride <mcbrides9@×××××××.net> wrote: |
5 |
> > > I'm going one step further with gcc 4.1.0. After I emerged gcc and |
6 |
> > > glibc... I did an "emerge -e system" twice and am now following up |
7 |
> > > with two "emerge -e world" commands... |
8 |
> > |
9 |
> > Wow, you like to waste a lot of CPU cycles... |
10 |
> |
11 |
> Actually... nothing is wasted. |
12 |
|
13 |
Actually, that's quite a BIT of waste. There's about 30(?), maybe more |
14 |
packages in system, depending on your use flags. About 4-5 are your |
15 |
toolchain. So, there's 25+ compiles wasted per system pass. You *might* |
16 |
need to compile your toolchain twice, but the critical package, gcc, |
17 |
already compiles itself twice. It compiles a minimal gcc (C-only, just |
18 |
enough to compile full gcc, and very portable across toolchains) using the |
19 |
current toochain then compiles full gcc (all your use flags settings, and |
20 |
requires gnuC extensions) using that minimal gcc. (That's the normal gcc |
21 |
build, not Gentoo specific.) |
22 |
|
23 |
After that, you normally only need to compile your applications ONCE. |
24 |
Cyclic dependencies could require more than one compile for full effect, |
25 |
but those are bad for other reasons, and could make it to where you have |
26 |
to recompile MORE than TWICE, depending on their complexity. |
27 |
|
28 |
In ANY case, you don't HAVE to rebuild you applications right away, and it |
29 |
would save you a few CPU cycles to just use the new compiler new time the |
30 |
package is updated. If you are running ~ARCH that generally pretty |
31 |
often. :) |
32 |
|
33 |
-- |
34 |
"If there's one thing we've established over the years, |
35 |
it's that the vast majority of our users don't have the slightest |
36 |
clue what's best for them in terms of package stability." |
37 |
-- Gentoo Developer Ciaran McCreesh |