1 |
Hemmann, Volker Armin wrote: |
2 |
> On Wednesday 27 September 2006 07:50, Daniel Iliev wrote: |
3 |
> |
4 |
> |
5 |
>> 1) I use CFLAGS="-march=athlon64 -mfpmath=sse -msse -msse2 -msse3 |
6 |
>> -m3dnow -mmmx -O3 -fomit-frame-pointer -pipe -fpic". P |
7 |
>> |
8 |
> |
9 |
> -mfpmath=sse not needed. amd64 uses sse for math by default. remove that flag |
10 |
> -msse not needed, see above |
11 |
> -msse2 not needed, see above |
12 |
> -msse3 can be set, but only if your CPU supports it. Not all CPUs do. |
13 |
> Check /proc/cpuinfo for 'pni' |
14 |
> -m3dnow just no. sse supersedes it. Also it is a '32bit flag' |
15 |
> -mmmx see above |
16 |
> -O3 don't do it. O2 is much, much safer and not really slower. It will prevent |
17 |
> a lot of breakage. |
18 |
> -fomit-frame-pointer not needed |
19 |
> -pipe a good flag |
20 |
> -fpic NO! Really, really really no! Don't do it! It is just wrong. Stop it |
21 |
> now! This flag is not needed! Even for prelink on 32bit it was never needed |
22 |
> (because everything that could compiled with that flag set it anyway). |
23 |
> Please, read the documentation and remove that flag ASAP. |
24 |
> |
25 |
> so, march=k8 -O2 -pipe |
26 |
> would be the result, if you remove all superflous and dangerous flags. |
27 |
> |
28 |
> |
29 |
> |
30 |
>> 2) I see too many flags that are disabled by the profile - the kind with |
31 |
>> the parenthesis around them, like "(-3dnow)". Why? As I mentioned above |
32 |
>> I enable some of these through my CFLAGS - e.g. (-mmx), (-mmxext), |
33 |
>> (-sse) and (-sse2) and everything works perfect. |
34 |
>> |
35 |
> |
36 |
> because 3dnow, mmx&co are useflags for 32bit code that was optimized for that |
37 |
> extensions. If you use that code in 64bit apps, certain breakage is the |
38 |
> result. And if something does not break, it will be A LOT slower. |
39 |
> |
40 |
> Don't use that flags. They are bad for amd64. Trust the devs, they know better |
41 |
> than you or me. |
42 |
> |
43 |
Thank you very much for this reply. I'll follow your advise and remove |
44 |
the redundant flags. |
45 |
About trusting the devs - well, it depends. I trust them 100% if I need |
46 |
a rock stable system. In that case I would not dare to divert from any |
47 |
of the official instructions. |
48 |
BUT. Devs always tent to advertise the safest ways - this brings users |
49 |
no/less headaches and therefore less bug-reports ;-) |
50 |
My case however is slightly different - I'm talking about my home |
51 |
desktop which is dedicated for experiments and fun. So I'm not afraid to |
52 |
break the system here and rebuild it again. In this particular moment my |
53 |
purpose is to get the most out of the hardware no matter the stability. |
54 |
So I'll leave -O3 ;-) |
55 |
|
56 |
BTW, Everyone, |
57 |
I'm observing something very interesting: |
58 |
I was told not to go gentoo-amd64 for it was not stable. I was told not |
59 |
to migrate because there were still many important programs pending to |
60 |
be ported. I read almost everywhere about headaches and breakages. |
61 |
Reading your replies in this thread also suggests strictly following the |
62 |
official way otherwise - problems. |
63 |
It is very strange - I was ready to meet tons of major problems but I |
64 |
haven't met a single one yet. It is my opinion that the possibility of |
65 |
problems on gentoo-amd64 is highly overrated. I installed it with no |
66 |
problems, I obviously have tweaked it a lot beyond normal and what I see |
67 |
is a perfectly working system. It appears that gentoo-amd64 team along |
68 |
with the GNU, linux-kernel and all other nice guys who provide free/open |
69 |
source software have done a great work and we owe them BIG THANKS. I |
70 |
just wonder how come that so many people talk about some non-existing |
71 |
problems. |
72 |
How come that still in my first try I have bootstrapped from stage3, |
73 |
made "emerge -e system", installed xfce4, gnome, firefox, thunderbird, |
74 |
and a bunch of other packages along with all their dependencies, then |
75 |
made "emerge -e world" and after all this compiling I had to do "emerge |
76 |
--resume" only once when some package wanted mysql build with -fpic |
77 |
flag. I'm I lucky or what? ;-) |
78 |
|
79 |
|
80 |
-- |
81 |
Best regards, |
82 |
Daniel |
83 |
|
84 |
|
85 |
-- |
86 |
gentoo-amd64@g.o mailing list |