View previous topic :: View next topic |
Author |
Message |
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Jan 19, 2005 6:26 am Post subject: |
|
|
dirtyepic wrote: | taskara wrote: | has anyone tried with
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
as per LDFLAGS Central? |
--enable-new-dtags is default for recent binutils. i played with --sort-common, but not long enough to make a judgement. |
oh yeah that's right.. thanks _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
WladyX Guru
Joined: 25 Nov 2004 Posts: 503 Location: Romania
|
Posted: Tue Mar 01, 2005 10:08 pm Post subject: |
|
|
I admit i haven't read the whole thread, but i have a quick question, if i use LDFLAGS="-Wl,-O1", can i use prelink, or it isn't recomanded, also if prelink is discouraged do i have to recompile everything with -pic? Thanks. _________________ We are not alone. |
|
Back to top |
|
|
radfoj Guru
Joined: 31 Dec 2004 Posts: 490 Location: Tísek, Czech Republic
|
Posted: Tue Mar 01, 2005 10:45 pm Post subject: |
|
|
WladyX wrote: | I admit i haven't read the whole thread, but i have a quick question, if i use LDFLAGS="-Wl,-O1", can i use prelink, or it isn't recomanded, also if prelink is discouraged do i have to recompile everything with -pic? Thanks. |
From my experience:
I added this flag maybe month ago, and reemerged only "system", not all "world". Then some other packages.
I am especially KDE/QT user and have still USE-flag pic in my make.conf and I am still prelinking. Without any problems yet. But without any speedup feelings from LDFLAGS="-Wl,-O1"
Still prelinking for me rulez. Maybe I missed something. |
|
Back to top |
|
|
WladyX Guru
Joined: 25 Nov 2004 Posts: 503 Location: Romania
|
Posted: Tue Mar 01, 2005 10:53 pm Post subject: |
|
|
Thanks for the answer _________________ We are not alone. |
|
Back to top |
|
|
virtual Tux's lil' helper
Joined: 12 Aug 2004 Posts: 132 Location: Bergen
|
Posted: Fri Mar 04, 2005 5:18 pm Post subject: |
|
|
Hi,
I little warning about LDFLAGS an compiler ver. and apps.
I have noticed that with kdelibs and gcc 3.3.5-r1 and LDFLAGS I have had compilation problems when doing emerge -u and kdelibs was one of the packages it needed to update, also when doing a new install on another pc I had to comment out my LDFLAGS. LDFLAGS seem dangerous because my system has been running perfectly for several months and now they suddenly cause problems.
P.S. I didn't notice any difference anyway, I always prelink with or without LDFLAGS _________________ The roots of education are bitter but it's fruit is sweet. |
|
Back to top |
|
|
lefou Apprentice
Joined: 18 Feb 2004 Posts: 199 Location: Germany, Lusatia
|
Posted: Fri Mar 04, 2005 7:13 pm Post subject: |
|
|
I never got any problems, except with emerging emacs. emacs compiled well, but at the end of the build-run I got error messages about LDFLAGS, so I emerge emacs without LDFLAGS. |
|
Back to top |
|
|
arnvidr l33t
Joined: 19 Aug 2004 Posts: 629 Location: Oslo, Norway
|
Posted: Wed Mar 09, 2005 5:16 pm Post subject: |
|
|
Try this out? Don't mind if I do... |
|
Back to top |
|
|
lefou Apprentice
Joined: 18 Feb 2004 Posts: 199 Location: Germany, Lusatia
|
Posted: Wed Mar 09, 2005 5:19 pm Post subject: |
|
|
No risk, no fun |
|
Back to top |
|
|
arnvidr l33t
Joined: 19 Aug 2004 Posts: 629 Location: Oslo, Norway
|
Posted: Thu Mar 10, 2005 9:17 am Post subject: |
|
|
But so exciting
Didn't you feel the rush of adrenaline as you changed a variable in make.conf? |
|
Back to top |
|
|
lefou Apprentice
Joined: 18 Feb 2004 Posts: 199 Location: Germany, Lusatia
|
Posted: Thu Mar 10, 2005 11:31 am Post subject: |
|
|
Inurement: I try to change one setting a week in make.conf. |
|
Back to top |
|
|
Sheepdogj15 Guru
Joined: 07 Jan 2005 Posts: 430 Location: Backyard
|
Posted: Sat Mar 12, 2005 6:32 am Post subject: |
|
|
ARGH i put LDFLAGS="-Wl,-01" in my make.conf and after emerging, it totally moobarred my system!
i'm seriously reinstalling Gentoo as we speak.
i think it's unstable on AMD64. |
|
Back to top |
|
|
blueSceaDa Tux's lil' helper
Joined: 05 Jan 2005 Posts: 90
|
Posted: Sat Mar 12, 2005 10:27 am Post subject: |
|
|
yeah you put LDFLAGS="-Wl,-01" which is wrong, it's the letter O and not a zero before the 1
so correctly it is LDFLAGS="-Wl,-O1" _________________ Athlon XP 2500+ @ ~2100MHz; GeForce FX 5600 256MB; 3x256MB RAM; ASUS A7N8X-X
echo 'LDFLAGS="-Wl,-O1"' >> /etc/make.conf - no problems here |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Sat Mar 12, 2005 10:40 am Post subject: |
|
|
Sheepdogj15 wrote: | i think it's unstable on AMD64. |
It's been working fine on my amd64 for months... _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
Sheepdogj15 Guru
Joined: 07 Jan 2005 Posts: 430 Location: Backyard
|
Posted: Sat Mar 12, 2005 7:56 pm Post subject: |
|
|
blueSceaDa wrote: | yeah you put LDFLAGS="-Wl,-01" which is wrong, it's the letter O and not a zero before the 1
so correctly it is LDFLAGS="-Wl,-O1" |
actually though, i was just transcribing it as i am on my Windows box now. what actually was in my make.conf i copied and pasted from an earlier example, so it should have been exactly as you guys have been typing it (in fact, it was the OP for this very thread IIRC).
Maedhros wrote: | It's been working fine on my amd64 for months... |
hmmm...
interestingly i was still having problems as i was trying to install, until i commented out the LDFLAGS line.
i wonder how on configurations might be differing. have you noticed any packages that were sporadically failing to compile? |
|
Back to top |
|
|
Birtz Apprentice
Joined: 09 Feb 2005 Posts: 272 Location: Osijek / Croatia
|
Posted: Mon Mar 14, 2005 12:05 am Post subject: |
|
|
Maedhros wrote: | Sheepdogj15 wrote: | i think it's unstable on AMD64. |
It's been working fine on my amd64 for months... |
Ditto
@Sheepdogj15:
I seriously doubt that your problems are LDFLAGS related. Maybe a conglomerate with your CFLAGS, who knows? BTW. what were you CFLAGS when you borked the system? _________________ It is not enough to have a good mind. The main thing is to use it well.
-- Rene Descartes
Don't have a childhood hero? How about Rob Hubbard http://www.freenetpages.co.uk/hp/tcworh/profile.htm |
|
Back to top |
|
|
Sheepdogj15 Guru
Joined: 07 Jan 2005 Posts: 430 Location: Backyard
|
Posted: Mon Mar 14, 2005 9:08 pm Post subject: |
|
|
Birtz wrote: | Maybe a conglomerate with your CFLAGS, who knows? |
hmm. perhaps.
Quote: | BTW. what were you CFLAGS when you borked the system? |
once i get a chance to, i'll post them. But i remember they weren't too out there. -O2 -pipe and a couple of others. |
|
Back to top |
|
|
saturas Tux's lil' helper
Joined: 06 Dec 2004 Posts: 104 Location: romania
|
Posted: Thu May 05, 2005 3:00 pm Post subject: hi all |
|
|
i tryed the LDFLAGS trick and after emerge -e world, i got no improvements. i olso tried prelinking but no results there olso
i loged on the #gentoo irc channel and asked there if did someone got some speed after prelink or LDFLAGS. nobody seem to got some visible speed. so what are you talking about, people?
here is some information about my computer. i have a barton 2500+, 512MB, ASUS Nforce2, i use as wm gnome.
10x |
|
Back to top |
|
|
Russel-Athletic n00b
Joined: 07 Jan 2005 Posts: 47
|
Posted: Thu May 05, 2005 5:08 pm Post subject: |
|
|
I read in a bug report that the proper LDFlags are -O1 rather -Wl, -O1.
So which ist it?
And somebody Problems with -z now? |
|
Back to top |
|
|
saturas Tux's lil' helper
Joined: 06 Dec 2004 Posts: 104 Location: romania
|
Posted: Thu May 05, 2005 5:40 pm Post subject: |
|
|
i used LDFLAGS="-Wl,-O1" and i had no problems. my only problem is that i see no speed improvement. i tested ubuntu last week and it seems to be much faster then gentoo. (using gnome on both of them). this is getting frustrating. i wander what flags did they use to compile packages |
|
Back to top |
|
|
saturas Tux's lil' helper
Joined: 06 Dec 2004 Posts: 104 Location: romania
|
Posted: Thu May 05, 2005 7:26 pm Post subject: |
|
|
Russel-Athletic wrote: | I read in a bug report that the proper LDFlags are -O1 rather -Wl, -O1.
So which ist it?
And somebody Problems with -z now? |
-Wl forces the slowdown |
|
Back to top |
|
|
superstoned Guru
Joined: 17 Dec 2004 Posts: 432
|
Posted: Thu May 05, 2005 8:54 pm Post subject: Re: hi all |
|
|
saturas wrote: | i tryed the LDFLAGS trick and after emerge -e world, i got no improvements. i olso tried prelinking but no results there olso
i loged on the #gentoo irc channel and asked there if did someone got some speed after prelink or LDFLAGS. nobody seem to got some visible speed. so what are you talking about, people?
here is some information about my computer. i have a barton 2500+, 512MB, ASUS Nforce2, i use as wm gnome.
10x |
most of these improvements are very small. it needs several to really count... compare eg KDE 3.2 with gcc 3.1 to KDE 3.4 with gcc 3.4.x and prelink. you'll know what optimization means then
or compare suse 9.3 with a nicely configured gentoo - prelink/ldflags, gcc 3.4.1 etc |
|
Back to top |
|
|
Sheepdogj15 Guru
Joined: 07 Jan 2005 Posts: 430 Location: Backyard
|
Posted: Thu May 05, 2005 9:24 pm Post subject: |
|
|
Oh hey. I've since tried again (even using a little bit beefier LDFLAGS), and i have not ran into any problems. the only thing is that Firefox seems a bit buggy, but that could be from my CFLAGS too.
so, it had to have been something in my configuration that was messed up, last time. doesn't seem to be a problem now _________________ Sheepdog
Why Risk It? | Samba Howto |
|
Back to top |
|
|
Sir-Gentoo n00b
Joined: 06 May 2005 Posts: 14
|
Posted: Fri May 06, 2005 3:54 pm Post subject: |
|
|
hi, i didnt read the whole thread, but the first sites and the last ones, and i would like to know, if its all about adding this line to my make.conf:
LDFLAGS="-Wl,-O1"
or do i have to add some other things. or should there be more options in the ldflags thing? i mean somethin like this:
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
or is the first line ok, and should be used, or can i get the most,fastet, and coolest speed with another option?
thx |
|
Back to top |
|
|
saturas Tux's lil' helper
Joined: 06 Dec 2004 Posts: 104 Location: romania
|
Posted: Fri May 06, 2005 9:15 pm Post subject: |
|
|
after my experience, and the people to whom i've talked, it depends on your system. if you have a good procesor and enough memory, with prelink or LDFLAGS you will not see much speed than without them. you could give a try. it won't harm(i refer to prelink and LDFLAGS="-Wl,-O1 "). i sugest you to concentrate on compiler's options they are more eficient _________________ "I can't go on. I'll go on."
S.B |
|
Back to top |
|
|
Sir-Gentoo n00b
Joined: 06 May 2005 Posts: 14
|
Posted: Sat May 07, 2005 5:30 pm Post subject: |
|
|
so i put the LDFLAGS="-Wl,-O1" line into my make.conf and gonna recompile some things this night, ok, some much
is it really important to recompile glibc when i update my linux-headers, and would be gcc faster if i recompile it with the ldflags? would be cool |
|
Back to top |
|
|
|