Re: [gentoo-amd64] First Impressions

2006-09-28 Thread Dice R. Random
On 9/27/06, Daniel Iliev [EMAIL PROTECTED] wrote: I don't think someone would really file a bug report for this It's true that my OCD about optimizing becomes painful when I see my flags overruled but I (still) can control myself ;-) Your cflags really aren't going to change much. It's better

Re: [gentoo-amd64] First Impressions

2006-09-28 Thread Hemmann, Volker Armin
On Thursday 28 September 2006 02:26, Boyd Stephen Smith Jr. wrote: On Wednesday 27 September 2006 17:40, Hemmann, Volker Armin [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': On Thursday 28 September 2006 00:03, Boyd Stephen Smith Jr. wrote: I also like: funit

Re: [gentoo-amd64] First Impressions

2006-09-28 Thread Boyd Stephen Smith Jr.
On Wednesday 27 September 2006 22:59, Daniel Iliev [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': Dan Pasanen wrote: Ok, im not too sure about this, but i was wondering, i have dual core turion64's should that affect if im running -O2 or -O3? currently im running -O2

Re: [gentoo-amd64] First Impressions

2006-09-28 Thread Paul de Vrieze
Boyd Stephen Smith Jr. wrote: On Wednesday 27 September 2006 11:11, Hemmann, Volker Armin [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': -O3 don't do it. O2 is much, much safer and not really slower. It will prevent a lot of breakage. Bah! -O3 breaking just doesn't

Re: [gentoo-amd64] First Impressions

2006-09-28 Thread Boyd Stephen Smith Jr.
On Thursday 28 September 2006 03:35, Paul de Vrieze [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': Boyd Stephen Smith Jr. wrote: On Wednesday 27 September 2006 11:11, Hemmann, Volker Armin [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': -O3

Re: [gentoo-amd64] First Impressions

2006-09-28 Thread Barry . SCHWARTZ
Boyd Stephen Smith Jr. [EMAIL PROTECTED] skribis: It's wrong-headed to deride or discourage users for using the features of their compiler when those functions are not erroneous. Instead, you should be leaning on the developers to fix the erroneous code. This looks like a false dichotomy to

Re: [gentoo-amd64] First Impressions

2006-09-28 Thread Boyd Stephen Smith Jr.
On Thursday 28 September 2006 14:16, [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': Boyd Stephen Smith Jr. [EMAIL PROTECTED] skribis: It's wrong-headed to deride or discourage users for using the features of their compiler when those functions are not erroneous

Re: [gentoo-amd64] First Impressions

2006-09-28 Thread Barry . SCHWARTZ
Boyd Stephen Smith Jr. [EMAIL PROTECTED] skribis: On Thursday 28 September 2006 14:16, [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': Boyd Stephen Smith Jr. [EMAIL PROTECTED] skribis: It's wrong-headed to deride or discourage users for using the features

Re: [gentoo-amd64] First Impressions

2006-09-28 Thread Boyd Stephen Smith Jr.
On Thursday 28 September 2006 15:17, [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': Boyd Stephen Smith Jr. [EMAIL PROTECTED] skribis: On Thursday 28 September 2006 14:16, [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': Boyd Stephen Smith Jr

Optimizations (was Re: [gentoo-amd64] First Impressions)

2006-09-28 Thread Barry . SCHWARTZ
Boyd Stephen Smith Jr. [EMAIL PROTECTED] skribis: Now, I have to problem with developers closing some bug opened by a ricer out there that's added -ffast-math to their CFLAGS as WONTFIX/INVALID since it's not really a problem. All the parts provided by Gentoo (ebuild, source, compiler,

Re: Optimizations (was Re: [gentoo-amd64] First Impressions)

2006-09-28 Thread Boyd Stephen Smith Jr.
On Thursday 28 September 2006 16:17, [EMAIL PROTECTED] wrote about 'Optimizations (was Re: [gentoo-amd64] First Impressions)': Boyd Stephen Smith Jr. [EMAIL PROTECTED] skribis: Now, I have to problem with developers closing some bug opened by a ricer out there that's added -ffast-math

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Barry . SCHWARTZ
Daniel Iliev [EMAIL PROTECTED] skribis: 1) I use CFLAGS=-march=athlon64 -mfpmath=sse -msse -msse2 -msse3 -m3dnow -mmmx -O3 -fomit-frame-pointer -pipe -fpic. Portage complains with *red letters* about the fpic flag. Every time I emerge something it says that fpic breaks things, but I haven't

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Dice R. Random
On 9/26/06, Daniel Iliev [EMAIL PROTECTED] wrote: Hello, everyone! Hi :) 1) I use CFLAGS=-march=athlon64 -mfpmath=sse -msse -msse2 -msse3 -m3dnow -mmmx -O3 -fomit-frame-pointer -pipe -fpic. Portage complains with *red letters* about the fpic flag. Every time I emerge something it says that

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Daniel Iliev
[EMAIL PROTECTED] wrote: I guess the best question might be ‘Why do you want -fpic?’ I use prelink [1] which requires PIC in order to work. At least that is true for X86. That is the only reason - I suppose if it works on x86_64 it would have the same requirements. [1]

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Daniel Iliev
Dice R. Random wrote: It is not necessary to tell gcc to use special instruction sets for your processor. When you specify -march gcc automatically knows exactly what instructions your processor is capable of utilizing most effectively. I'm not sure about this. Tonight I'll make a test: I'll

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Barry . SCHWARTZ
Daniel Iliev [EMAIL PROTECTED] skribis: [EMAIL PROTECTED] wrote: I guess the best question might be ‘Why do you want -fpic?’ I use prelink [1] which requires PIC in order to work. At least that is true for X86. That is the only reason - I suppose if it works on x86_64 it would

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Christoph Mende
One thing that I think wasn't mentioned yet, while -fPIC is needed for libraries, it must be disabled for binaries (don't know if that's true for prelink), as portage says, it might break things and your binaries are most likely becoming slower when you compile them with -fPIC. 2006/9/27, Daniel

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Daniel Iliev
Christoph Mende wrote: One thing that I think wasn't mentioned yet, while -fPIC is needed for libraries, it must be disabled for binaries (don't know if that's true for prelink), as portage says, it might break things and your binaries are most likely becoming slower when you compile them with

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Pawel Kraszewski
Dnia środa, 27 września 2006 07:50, Daniel Iliev napisał: 1) I use CFLAGS=-march=athlon64 -mfpmath=sse -msse -msse2 -msse3 -m3dnow -mmmx -O3 -fomit-frame-pointer -pipe -fpic. Portage complains with *red letters* about the fpic flag. Every time I emerge something it says that fpic breaks

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Simon Stelling
Daniel Iliev wrote: So, both flags let gcc produce PIC for libs and programs and none of them lets gcc produce PIC for libs only? The next flag described in the man page is -fpie, which makes PIC for programs only. Something is wrong and don't know how to find the right explanation. The

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Hemmann, Volker Armin
On Wednesday 27 September 2006 07:50, Daniel Iliev wrote: 1) I use CFLAGS=-march=athlon64 -mfpmath=sse -msse -msse2 -msse3 -m3dnow -mmmx -O3 -fomit-frame-pointer -pipe -fpic. P -mfpmath=sse not needed. amd64 uses sse for math by default. remove that flag -msse not needed, see above -msse2 not

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Barry . SCHWARTZ
Daniel Iliev [EMAIL PROTECTED] skribis: Unfortunately I am not a C programmer and I can't be sure about how exactly PIC and prelink work. As far as I understood the mechanism (please, correct me if I'm wrong) prelink scans the executables to find which libs they load. Then it makes cache and

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Daniel Iliev
[EMAIL PROTECTED] wrote: Daniel Iliev [EMAIL PROTECTED] skribis: Unfortunately I am not a C programmer and I can't be sure about how exactly PIC and prelink work. As far as I understood the mechanism (please, correct me if I'm wrong) prelink scans the executables to find which libs they

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Daniel Iliev
Simon Stelling wrote: Daniel Iliev wrote: So, both flags let gcc produce PIC for libs and programs and none of them lets gcc produce PIC for libs only? The next flag described in the man page is -fpie, which makes PIC for programs only. Something is wrong and don't know how to find the right

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Daniel Iliev
Pawel Kraszewski wrote: That's what 'pic' USE flag is for... $ euse -i pic global use flags (searching: pic) [+ C ] pic - Build Position Independent Code. Do not utilize this flag unless you know what you're doing. fpic

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Simon Stelling
Daniel Iliev wrote: Well, then I have to simplify more (because of my lack of knowledge) and ask what are the pros and cons to use PIC when building a program and a share library? Pro is your able to run it on an amd64. Con is it can drastically slow down code (sometimes), and just plain

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Simon Stelling
Daniel Iliev wrote: Are you proposing me to put -fpie in the CFLAGS? Dear God, no! It's automatically appended where needed (read: hardened). -- Kind Regards, Simon Stelling Gentoo/AMD64 developer -- gentoo-amd64@gentoo.org mailing list

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Simon Stelling
Simon Stelling wrote: Pro is your able to run it on an amd64. Con is it can drastically slow down code (sometimes), and just plain doesn't make sense. Err, this is missing a bit: Pro of applying it to objects used in shared libs: You can run it. Con of applying it to objects used in

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Barry . SCHWARTZ
Hemmann, Volker Armin [EMAIL PROTECTED] skribis: so, march=k8 -O2 -pipe would be the result, if you remove all superflous and dangerous flags. I endorse this setting. IMO as a programmer, other flags are for programmers. :) -- Barry.SCHWARTZ at chemoelectric.org http://chemoelectric.org

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Daniel Iliev
Hemmann, Volker Armin wrote: On Wednesday 27 September 2006 07:50, Daniel Iliev wrote: 1) I use CFLAGS=-march=athlon64 -mfpmath=sse -msse -msse2 -msse3 -m3dnow -mmmx -O3 -fomit-frame-pointer -pipe -fpic. P -mfpmath=sse not needed. amd64 uses sse for math by default. remove that

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Daniel Iliev
Simon Stelling wrote: Daniel Iliev wrote: Are you proposing me to put -fpie in the CFLAGS? Dear God, no! It's automatically appended where needed (read: hardened). After a definitive answer like this (especially when it comes from @gentoo.org) there's nothing left for me but to erase the word

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Barry . SCHWARTZ
Daniel Iliev [EMAIL PROTECTED] skribis: Well, then I have to simplify more (because of my lack of knowledge) and ask what are the pros and cons to use PIC when building a program and a share library? When a program runs it needs to know the addresses of variables, subroutines, etc. A shared

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Barry . SCHWARTZ
Daniel Iliev [EMAIL PROTECTED] skribis: How come that still in my first try I have bootstrapped from stage3, made emerge -e system, installed xfce4, gnome, firefox, thunderbird, and a bunch of other packages along with all their dependencies, then made emerge -e world and after all this

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Daniel Iliev
Boyd Stephen Smith Jr. wrote: On Wednesday 27 September 2006 11:11, Hemmann, Volker Armin [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': -O3 don't do it. O2 is much, much safer and not really slower. It will prevent a lot of breakage. Bah! -O3 breaking

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Barry . SCHWARTZ
Boyd Stephen Smith Jr. [EMAIL PROTECTED] skribis: Well, I actually include them for when my -O3 is changed (by the ebuild) to -O2 or lower. :) That works for me. I personally don’t worry much about optimizations unless I am working on something that’s essentially assembly code, where I need

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Boyd Stephen Smith Jr.
On Wednesday 27 September 2006 19:56, Daniel Iliev [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': Boyd Stephen Smith Jr. wrote: On Wednesday 27 September 2006 11:11, Hemmann, Volker Armin [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': -O3

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Dan Pasanen
September 2006 19:56, Daniel Iliev [EMAIL PROTECTED]wrote about 'Re: [gentoo-amd64] First Impressions': Boyd Stephen Smith Jr. wrote: On Wednesday 27 September 2006 11:11, Hemmann, Volker Armin [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': -O3 don't do it. O2 is much

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Daniel Iliev
Dan Pasanen wrote: Ok, im not too sure about this, but i was wondering, i have dual core turion64's should that affect if im running -O2 or -O3? currently im running -O2. and if i did change it to -O3, what, if anything should i recompile? From gcc man page: -O3 Optimize yet more. -O3

Re: [gentoo-amd64] First Impressions

2006-09-27 Thread Daniel Iliev
Boyd Stephen Smith Jr. wrote: On Wednesday 27 September 2006 19:56, Daniel Iliev [EMAIL PROTECTED] wrote about 'Re: [gentoo-amd64] First Impressions': Boyd Stephen Smith Jr. wrote: On Wednesday 27 September 2006 11:11, Hemmann, Volker Armin [EMAIL PROTECTED] wrote about 'Re

[gentoo-amd64] First Impressions

2006-09-26 Thread Daniel Iliev
Hello, everyone! It's my first mail to this list. I hope the community here is as friendly as the one at the general gentoo-user list ;-) Please, forgive me if open some threads about already discussed issues until I catch up with rhythm of the list. So let me start a with 2 newbie questions