1 |
>do -not- use -fomit-frame-pointer during bootstrap! (can anyone who |
2 |
>actually got this to -work- using omit-frame-pointer speak up??) |
3 |
> |
4 |
>This causes breakage in glibc. |
5 |
|
6 |
That's interesting. When I used default-1.0, I used all the flags which |
7 |
one particular FAQ on gentoo.org mentioned (-fforce-addr |
8 |
-fomit-frame-pointer -funroll-loops blah blah blah along with -march=i686 |
9 |
-O3 of course) and everything worked fine (atleast compiled fine though I |
10 |
was not truly happy with the performance (lots of memory leaks and |
11 |
subsequent crashes of kswapd primarily). So maybe this is an issue only |
12 |
with gcc-3.x and/or binutils-2.12.x. But I toned down the optimizations |
13 |
and the bootstrap worked fine. |
14 |
|
15 |
>this is due to a broken glibc (omit frame pointer and -O3. I think glibc |
16 |
>strips out -O3 but not the -f flags. ) |
17 |
|
18 |
gcc does this. glibc retains whatever you specify. Anyway, that's beside |
19 |
the point - only for the sake of information ;-). |
20 |
|
21 |
>> problem is that most binaries segfault soon after glibc is built. |
22 |
>Try again with -O2 -pipe and you will get a working system :) |
23 |
|
24 |
Infact, I finally used the default options for Athlon systems (-march=i686 |
25 |
-pipe -O3.... not -O2 but -O3) and glibc didn't break. As I said earlier, |
26 |
this is strange because all those crazy optimizations worked in the case |
27 |
of the default-1.0 profile. |
28 |
|
29 |
>emerge system |
30 |
>/(watch it break down and cry in xfree because you overoptimized) |
31 |
|
32 |
So you're saying that if I use -march=athlon-tbird -fomit-frame-pointer |
33 |
-O3 [-pipe] -mmmx -m3dnow (the latter only for the sake of multimedia apps |
34 |
like xmms, mplayer etc.) the xfree ebuild b0rks out? That's too bad, |
35 |
really. And the thing with xfree is that experimenting stops being an |
36 |
option if the very first emerge itself doesn't work :-(. Not all of us |
37 |
have all the time in the world... |
38 |
|
39 |
Regards, |
40 |
Prashanth Aditya Susarla |