View previous topic :: View next topic |
Author |
Message |
placeholder Advocate
Joined: 07 Feb 2004 Posts: 2500
|
Posted: Thu Sep 23, 2004 8:27 pm Post subject: |
|
|
Jefklak: You should have tested each more than once and then take an average. It may have been around the same value. |
|
Back to top |
|
|
Ateo Advocate
Joined: 02 Jun 2003 Posts: 2021 Location: Republic of California
|
Posted: Thu Sep 23, 2004 9:45 pm Post subject: |
|
|
so far, so good. Everything has compiled fine, no change in memory usage, programs have compiled within same time frame as without LDFLAGS, programs launch noticably faster.
We'll see how it handles firefox. |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Thu Sep 23, 2004 10:06 pm Post subject: |
|
|
/me starts emerge -e world on laptop and fileserver
bring it on!
[edit]:
tachyon simon # emerge -e world
Calculating world dependencies ...done!
>>> emerge (1 of 439) sys-devel/patch-2.5.9 to /
oh dear... _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Thu Sep 23, 2004 11:04 pm Post subject: |
|
|
You really shouldn't tinker with LDFLAGS unless you know what you're doing... Great way to introduce all sorts of breakages and fun local root holes if you screw up... You have been warned |
|
Back to top |
|
|
ender11782 n00b
Joined: 10 Aug 2004 Posts: 31
|
Posted: Fri Sep 24, 2004 1:21 am Post subject: |
|
|
Ok, adding LDFLAGS="-W1, -O1" produced the following error:
Code: | checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
!!! ERROR: app-office/openoffice-1.1.2 failed.
!!! Function src_compile, Line 317, Exitcode 77
!!! (no error message) |
also applies to something-lib as well (don't remember what it was I was emerging earlier...) Commenting out LDFLAGS makes the error go away.
Any idea why this would happen? |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Fri Sep 24, 2004 1:53 am Post subject: |
|
|
Well, first off it's "-Wl,-O1" (an L, and no space).
I assume that error occured during the configuration phase? I really don't have the time or the space to compile OpenOffice from start to finish, but I did test the ./configure part of the build:
Code: | checking for gawk... gawk
checking for gawk... /bin/gawk
checking for sed... /bin/sed
checking the operating system... checked (Linux)
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for gcc... /usr/bin/gcc
checking the GNU gcc compiler version... checked (gcc 3.3.4)
....... |
Works fine here. Again, make sure you're using the correct LDFLAGS. If that doesn't work, check your /var/tmp/portage/openoffice-1.1.2/work/oo_1.1.2_src/config_office/config.log file. |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Fri Sep 24, 2004 8:18 am Post subject: |
|
|
ciaranm wrote: | You really shouldn't tinker with LDFLAGS unless you know what you're doing... Great way to introduce all sorts of breakages and fun local root holes if you screw up... You have been warned |
It wouldnt be gentoo if you didnt break something _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
stahlsau Guru
Joined: 09 Jan 2004 Posts: 584 Location: WildWestwoods
|
Posted: Fri Sep 24, 2004 8:40 am Post subject: |
|
|
ok, I´m ready with "emerge -e world". No problems so far, but i´ve noticed some programs are starting faster. Nice!
System:
Linux eisenschwein 2.6.9-rc2 #1 Wed Sep 22 19:58:55 UTC 2004 i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux
Portage 2.0.51_rc1 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.9-rc2 i686)
ACCEPT_KEYWORDS="x86 ~x86"
CFLAGS="-march=athlon-xp -Os -pipe -mfpmath=sse -fomit-frame-pointer -funroll-loops -m3dnow -mmmx -msse -ftracer -fweb"
CHOST="i686-pc-linux-gnu"
COMPILER=""
FEATURES="autoaddcvs ccache sandbox"
MAKEOPTS="-j2"
USE="3dfx 3dnow X alsa apm avi berkdb bitmap-fonts cdr crypt cups divx4linux encode foomaticdb gdbm gif gimpprint gpm gtk gtk2 icq imlib java jpeg libg++ libwww mmx motif mozilla moznocompose moznoirc moznomail moznoxft mpeg ncurses nls nptl offensive opengl pam pdflib perl pic png ppds python qt quicktime readline samba sdl slang ssl svga tcpd tetex truetype x86 xml2 xmms xprint xv zlib linguas_de"
LDFLAGS="-Wl,-O1" |
|
Back to top |
|
|
Jefklak l33t
Joined: 26 Oct 2003 Posts: 818 Location: Belgium
|
Posted: Fri Sep 24, 2004 10:58 am Post subject: |
|
|
Pwnz3r wrote: | Jefklak: You should have tested each more than once and then take an average. It may have been around the same value. |
I did that. _________________ {Linux User #333296}
Kernel 2.6.9-nitro4! << hurrah |
|
Back to top |
|
|
Ruzbeh Apprentice
Joined: 23 Jun 2004 Posts: 223
|
Posted: Fri Sep 24, 2004 4:06 pm Post subject: |
|
|
Ok, so if I use this, I could break a program compiled with LDFLAGS? Or if I use LDFLAGS with a program, I could break the entire system?
Well I'm going to compile Firefox with these LDFLAGS, let's hope it works out. |
|
Back to top |
|
|
Muso Veteran
Joined: 22 Oct 2002 Posts: 1052 Location: The Holy city of Honolulu
|
Posted: Fri Sep 24, 2004 6:05 pm Post subject: |
|
|
Entire world was rebuilt with it..... no problems at all.
So ... it's safe enough imo _________________ "You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop! |
|
Back to top |
|
|
dangle n00b
Joined: 15 May 2004 Posts: 22 Location: Adelaide, AU
|
Posted: Sat Sep 25, 2004 1:49 am Post subject: |
|
|
aethyr wrote: |
More results from gftp. Startup time went from around 0.65s to just under 0.6s, a savings of 0.5s!
|
err... savings of .05 seconds mebbe? |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Sat Sep 25, 2004 6:55 am Post subject: |
|
|
dangle wrote: | aethyr wrote: |
More results from gftp. Startup time went from around 0.65s to just under 0.6s, a savings of 0.5s! ;)
|
err... savings of .05 seconds mebbe? ;) |
Obviously :) |
|
Back to top |
|
|
ender11782 n00b
Joined: 10 Aug 2004 Posts: 31
|
Posted: Sat Sep 25, 2004 7:31 am Post subject: |
|
|
aethyr wrote: | Well, first off it's "-Wl,-O1" (an L, and no space). |
Color me pwned.
Compiling is still broken though (when using intended LDFLAGS). This time it was while emerging "sudo". I checked the config.log, but it was all gobbledy-gook to me; anything in particular I should be looking for? |
|
Back to top |
|
|
Skraut Tux's lil' helper
Joined: 23 Feb 2003 Posts: 142 Location: Norwalk, OH, USA, Earth, Solar System, Milky Way, Virgo Supercluster, Known Universe
|
Posted: Mon Sep 27, 2004 3:05 pm Post subject: |
|
|
Just logged into Gnome on my new system that went from bootstrap to desktop with these LFLAGS set.
The system was really ailing so everything is a lot faster, though I don't know how much of that speed is just from the old system being so messed up.
Just wanted people to know they were safe... _________________ __
If you play a Windows CD backwards you can hear demonic voices... Played forward it does something even more terrifying... It installs Windows. |
|
Back to top |
|
|
sindre Guru
Joined: 01 Nov 2002 Posts: 315 Location: Norway
|
Posted: Mon Sep 27, 2004 4:20 pm Post subject: |
|
|
emerged -e world with
Code: | LDFLAGS="-Wl,-O1 -Wl,--relax -Wl,--enable-new-dtags -Wl,--sort-common" | No problems seen yet. System seems faster, but it's really hard to tell whether I'm imagining it or not. |
|
Back to top |
|
|
yoosty69 n00b
Joined: 03 Jan 2004 Posts: 35
|
Posted: Tue Sep 28, 2004 3:59 am Post subject: |
|
|
Holy crap!
Eterm is so much better now!
*PHEW!*
I was just wondering how I was going to switch to Aterm, but forget that!
LDFLAGS="-Wl,-O1 -Wl,-z,lazy -Wl,-z,combreloc -Wl,--enable-new-dtags"
ok ok, so it's not 1000x faster or anything, but opening a bunch of these things one one desktop used to B a strain, now not so much! SHWEEET! _________________ -> p00t <- |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Tue Sep 28, 2004 5:24 am Post subject: |
|
|
Careful with the flags guys, I hope this doesn't turn into another CFLAGS debacle...
Anyways, "-z combreloc" and "-z lazy" are unneeded, since I believe they are set by default, and "--relax" isn't supported on x86 (as far as I can tell). The only flag out of the ones you have used that would actually do anything, "--enable-new-dtags", is unproven in regards to distro-wide testing like "-O1" has received with Ubuntu, so just be cautious. |
|
Back to top |
|
|
gabe-kai n00b
Joined: 03 Sep 2003 Posts: 63 Location: Michigan, USA
|
Posted: Wed Sep 29, 2004 5:20 am Post subject: |
|
|
Attempting a Stage 1 install now... I'll let you know how it goes. This system is going to run ultra-light. Xorg, Fvwm, OOo, Firefox, Rox, and GNU Chess. Here is my make.conf
Code: | CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
FEATURES="userpriv usersandbox distcc"
USE="-* 3dnow alsa apic cdr cups fbcon graphviz javascript lcms mmx nptl \
pic sse stroke tcltk tiff threads truetype wmf" |
_________________ "People demand freedom of speech to make up for the freedom of thought which they avoid."
- Soren Aabye Kierkegaard |
|
Back to top |
|
|
Muso Veteran
Joined: 22 Oct 2002 Posts: 1052 Location: The Holy city of Honolulu
|
Posted: Wed Sep 29, 2004 6:32 am Post subject: |
|
|
Code: | CFLAGS="-O2 -march=athlon-xp -pipe -funroll-loops -fomit-frame-pointer"
LDFLAGS="-Wl,-O1"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="~x86"
PORTDIR_OVERLAY=/usr/local/portage
FEATURES="ccache"
CCACHE_SIZE="2G"
USE="nptl xprint gtk gtk2 X xv opengl openal firebird imlib alsa -qt -gnome -kde -arts png flash java ruby perl offensive gif jpeg xmms avi canna cdr cups curl curlwrappers dbase directfb fam ftp joystick mpeg ncurses quicktime ssl usb videos tiff" |
_________________ "You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop! |
|
Back to top |
|
|
tspse n00b
Joined: 22 Aug 2003 Posts: 34 Location: Stockholm, Sweden
|
Posted: Wed Sep 29, 2004 1:14 pm Post subject: |
|
|
i did and install with this, (stage 1)
Quote: | CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
USE="crypt curl curlwrappers -gtk -gtk2 -gnome -kde jpeg -mozilla mysql php png sasl openssl apache2 -apache -arts -alsa -X -qt -cups perl -mpeg -spell java"
LDFLAGS="-Wl,-O1"
|
Went smoothly, and i can say, my server runs really great _________________ "The glue that holds all relationships together -- including the relationship between the leader and the led is trust, and trust is based on integrity." |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Fri Oct 01, 2004 7:34 pm Post subject: |
|
|
Out of curiosity, has anyone built KDE with these flags? I only know examples of people using it to rebuild GNOME.
Solar expressed in the bug report that Quote: | "last [he] knew KDE/QT had some problems respecting any LDFLAGS. (mixed results)". |
I'm curious what people's experiences have been.
Thanks. |
|
Back to top |
|
|
sindre Guru
Joined: 01 Nov 2002 Posts: 315 Location: Norway
|
Posted: Fri Oct 01, 2004 9:06 pm Post subject: |
|
|
aethyr wrote: | Out of curiosity, has anyone built KDE with these flags? I only know examples of people using it to rebuild GNOME.
Solar expressed in the bug report that Quote: | "last [he] knew KDE/QT had some problems respecting any LDFLAGS. (mixed results)". |
I'm curious what people's experiences have been.
Thanks. | I even edited the qt ebuild to make it use my CXXFLAGS and LDFLAGS, kde used them automatically. No problems yet. |
|
Back to top |
|
|
Ateo Advocate
Joined: 02 Jun 2003 Posts: 2021 Location: Republic of California
|
Posted: Fri Oct 01, 2004 11:34 pm Post subject: |
|
|
aethyr wrote: | Out of curiosity, has anyone built KDE with these flags? I only know examples of people using it to rebuild GNOME.
Solar expressed in the bug report that Quote: | "last [he] knew KDE/QT had some problems respecting any LDFLAGS. (mixed results)". |
I'm curious what people's experiences have been.
Thanks. |
no problems here. running kde3.3.0.
sindre wrote: | I even edited the qt ebuild to make it use my CXXFLAGS and LDFLAGS, kde used them automatically. No problems yet. |
What did you add/edit in the qt ebuild? |
|
Back to top |
|
|
sindre Guru
Joined: 01 Nov 2002 Posts: 315 Location: Norway
|
Posted: Fri Oct 01, 2004 11:53 pm Post subject: |
|
|
Ateo wrote: | What did you add/edit in the qt ebuild? |
I added Code: | sed -i "s:= -O2:= ${CXXFLAGS}:g" ${S}/mkspecs/linux-g++/qmake.conf | under src_unpack() for the CXXFLAGS.
For the LDFLAGS I actually paused (ctrl-z) the emerge-process after it finished unpacking, and edited /var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/mkspecs/linux-g++/qmake.conf manually. I think I added my LDFLAGS to LFLAGS_RELEASE or something like that. |
|
Back to top |
|
|
|