Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LDFLAG --as-needed / Speeding up of GNOME or KDE
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5 ... 9, 10, 11  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
gkmac
Guru
Guru


Joined: 19 Jan 2003
Posts: 333
Location: West Sussex, UK

PostPosted: Sun May 22, 2005 5:39 pm    Post subject: Reply with quote

You can add "cinelerra-cvs" to the apps that do NOT work with --as-needed. It compiles, but fails to start.

EDIT: Oops, I meant to say "media-video/cinelerra-cvs"
Back to top
View user's profile Send private message
luisfeser
Guru
Guru


Joined: 22 May 2004
Posts: 543
Location: /España/Toledo

PostPosted: Tue May 24, 2005 4:55 pm    Post subject: Reply with quote

beep-media-player compile and works with:
Code:
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -momit-leaf-frame-pointer -fno-ident -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s -Wl,--as-needed"


I'm compiling now system, i hope it works :)
_________________
AMD Athlon XP-M 2500+ @2200MhHz|1GB DDR @400MHz Dual-Chanel|NVIDIA GeForce4 MX 420|SB Live 5.1|ADSL 512/128 Arsys
gentoo ~x86
Back to top
View user's profile Send private message
virtual
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2004
Posts: 132
Location: Bergen

PostPosted: Thu May 26, 2005 11:11 pm    Post subject: Reply with quote

Hi,

Here is a list of KDE 3.4.0 apps. I can confirm work, and the speedup is significant, the binarys (on hd) are also smaller.

kde-base/kcminit-3.4.0 *
kde-base/kwalletmanager-3.4.0 *
kde-base/kdebase-pam-4 *
kde-base/kicker-3.4.0 *
kde-base/kompare-3.4.0 *
kde-base/kmenuedit-3.4.0 *
kde-base/kate-3.4.0 *
kde-base/kopete-3.4.0-r2 *
kde-base/kdeprint-3.4.0 *
kde-base/ksplashml-3.4.0 *
kde-base/kdm-3.4.0 *
kde-base/umbrello-3.4.0 *
kde-base/kpdf-3.4.0 *
kde-base/kpersonalizer-3.4.0 *
kde-base/ksirc-3.4.0 *
kde-base/kwin-3.4.0 *
kde-base/arts-3.4.0 *
kde-base/libkonq-3.4.0 *
kde-base/kdebase-data-3.4.0 *
kde-base/kreadconfig-3.4.0 *
kde-base/kdesu-3.4.0 *
kde-base/khelpcenter-3.4.0 *
kde-base/cervisia-3.4.0 *
kde-base/kdebase-startkde-3.4.0-r1 *
kde-base/kdelibs-3.4.0-r2 *
kde-base/kde-env-3-r3 *
kde-base/ksmserver-3.4.0 *
kde-base/kcheckpass-3.4.0 *
kde-base/kdialog-3.4.0 *
kde-base/konsole-3.4.0 *
kde-base/kcontrol-3.4.0 *
kde-base/kdesktop-3.4.0 *
kde-base/kdebase-kioslaves-3.4.0 *
kde-base/konqueror-3.4.0 *

My emerge info

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-ck8-r1 i686)
=================================================================
System uname: 2.6.11-ck8-r1 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 5 2005, 16:10:44)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python: 2.3.5
sys-apps/sandbox: [Not Present]
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils: 2.15.92.0.2-r7
sys-devel/libtool: 1.5.16
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://Antares/portage"
USE="x86 X alsa apm arts berkdb bitmap-fonts cdr crypt cups dvd emboss encode fam foomaticdb gdbm gif gtk2 imlib java jpeg junit kde kdeenablefinal libg++ libwww mad mikmod mmx mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl pic png postgres ppds python qt quicktime readline sdl spell sse sse2 ssl svga tcpd tiff truetype truetype-fonts type1-fonts vorbis xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
_________________
The roots of education are bitter but it's fruit is sweet.
Back to top
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Thu Jun 02, 2005 9:22 am    Post subject: Reply with quote

Just a few more packages that compile but don't work properly with --as-needed:

sys-libs/db-4.2.52_p2 (sportage didn't compile until i re-emerged db without --as-needed)

x11-misc/xvidcap-1.1.3-r1 (fails to start)
Back to top
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Thu Jun 02, 2005 9:34 am    Post subject: Reply with quote

virtual wrote:
Hi,

Here is a list of KDE 3.4.0 apps. I can confirm work, and the speedup is significant, the binarys (on hd) are also smaller.

You're funny. KDE 3.4.0+ uses --as-needed by default.
Back to top
View user's profile Send private message
virtual
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2004
Posts: 132
Location: Bergen

PostPosted: Fri Jun 03, 2005 11:47 pm    Post subject: Reply with quote

No KDE 3.4.0 does NOT use --as-needed by default.
if it did I would not notice any difference.

For example konsole links to 67 libs without as-needed (default) and 30 libs when supplied as described in this thread.
Just try it.
_________________
The roots of education are bitter but it's fruit is sweet.
Back to top
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Sat Jun 04, 2005 4:47 am    Post subject: Reply with quote

I saw a stream of --as-needed go by without me setting it when I just built it.

Forget it I shouldn't waste my time arguing over something like this.

ldd /usr/bin/konsole | wc -l
41

/me shrugs
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Sun Jun 05, 2005 11:59 pm    Post subject: Reply with quote

gtk-engines-2.6.3 can't be compiled with --as-needed since it prevents configure from detecting there's a version of GTK+ greater than 1.2.9 on the system.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
racoontje
Veteran
Veteran


Joined: 19 Jul 2004
Posts: 1290

PostPosted: Mon Jun 06, 2005 8:45 pm    Post subject: Reply with quote

LDFLAGS="-Wl,-O1 -Wl,--sort-common -s -Wl,--as-needed"

Would that work? Thats just my current LDFLAGS + " -Wl,--as-needed"
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Mon Jun 06, 2005 9:44 pm    Post subject: Reply with quote

racoontje wrote:
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s -Wl,--as-needed"

Would that work? Thats just my current LDFLAGS + " -Wl,--as-needed"

Yes that will work, it is almost the same as mine. 8)
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Tue Jun 07, 2005 3:13 am    Post subject: Reply with quote

add torsmo to the dies while linking list.

edit: and adesklets...
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
Dark_Cloud
n00b
n00b


Joined: 29 Jun 2003
Posts: 27

PostPosted: Wed Jun 08, 2005 6:04 am    Post subject: Gnome-light Reply with quote

Can i emerge the whole gnome-light with --as-needed enabled??

cheers =D
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Wed Jun 08, 2005 6:54 am    Post subject: Re: Gnome-light Reply with quote

Dark_Cloud wrote:
Can i emerge the whole gnome-light with --as-needed enabled??

cheers =D

emerge -pv will show all packages that will be built, if one is in the list that does not work.... :wink:
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Wed Jun 08, 2005 6:59 am    Post subject: Reply with quote

dirtyepic wrote:
add torsmo to the dies while linking list.

edit: and adesklets...
dirtyepic wrote:
gtk-engines-2.6.3 can't be compiled with --as-needed since it prevents configure from detecting there's a version of GTK+ greater than 1.2.9 on the system.
pussi wrote:
Just a few more packages that compile but don't work properly with --as-needed:

sys-libs/db-4.2.52_p2 (sportage didn't compile until i re-emerged db without --as-needed)

x11-misc/xvidcap-1.1.3-r1 (fails to start)

Added to the list of not working apps. Thanks :D
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
mbello
n00b
n00b


Joined: 08 Jun 2004
Posts: 15
Location: Sao Paulo, Brazil

PostPosted: Wed Jun 08, 2005 12:59 pm    Post subject: Reply with quote

--as-needed smells like trouble to me.

It should be supported with USE flags, so at least we could have an easy way to document/remember which packages were built with --as-needed.
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Wed Jun 08, 2005 1:27 pm    Post subject: Reply with quote

mbello wrote:
--as-needed smells like trouble to me.

It should be supported with USE flags, so at least we could have an easy way to document/remember which packages were built with --as-needed.

The list in this thread is as official is it will get. Gentoo will not support --as-needed or filtering by useflag and/or in the ebuild. This is a real community "hope my gentoo doesn't blow up" thing :lol:
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Tue Jun 14, 2005 3:02 am    Post subject: Reply with quote

bollucks wrote:
virtual wrote:
Hi,

Here is a list of KDE 3.4.0 apps. I can confirm work, and the speedup is significant, the binarys (on hd) are also smaller.

You're funny. KDE 3.4.0+ uses --as-needed by default.
where is this 'KDE uses --as-needed by default' coming from. I have seen it few times here, but I don't see it in my logs. Do you mean KDE devs have carefully chosen the link lines and done some other voodoo to avoid this issue altogether?
Back to top
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Tue Jun 14, 2005 6:16 am    Post subject: Reply with quote

devsk wrote:
bollucks wrote:
virtual wrote:
Hi,

Here is a list of KDE 3.4.0 apps. I can confirm work, and the speedup is significant, the binarys (on hd) are also smaller.

You're funny. KDE 3.4.0+ uses --as-needed by default.
where is this 'KDE uses --as-needed by default' coming from. I have seen it few times here, but I don't see it in my logs. Do you mean KDE devs have carefully chosen the link lines and done some other voodoo to avoid this issue altogether?

Read about it from the kde developers and I saw it scroll by while building it manually.

Check this out from my unmodified kde source:
[kde-3.4.1]$ grep -R "as-needed" * | wc -l
4970

eg looking in my arts source first few hits come up:
arts-1.4.1/admin/acinclude.m4.in:dnl Check if the linker supports --enable-new-dtags and --as-needed
arts-1.4.1/admin/acinclude.m4.in: KDE_CHECK_COMPILER_FLAG([Wl,--as-needed],
arts-1.4.1/admin/acinclude.m4.in: [LDFLAGS_AS_NEEDED="-Wl,--as-needed"],)
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Tue Jun 14, 2005 6:38 am    Post subject: Reply with quote

that's bizzare. I don't see that in my logs at all. Are using some modified abuilds? I just compiled kdelibs/kdebase with that flag and immd. noticed what speed I have been missing.
Back to top
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Tue Jun 14, 2005 6:48 am    Post subject: Reply with quote

devsk wrote:
that's bizzare. I don't see that in my logs at all. Are using some modified abuilds? I just compiled kdelibs/kdebase with that flag and immd. noticed what speed I have been missing.

As my post said - unmodified kde 3.4.1 source.
Back to top
View user's profile Send private message
GaMMa
l33t
l33t


Joined: 23 Aug 2002
Posts: 684
Location: USA

PostPosted: Tue Jun 14, 2005 2:44 pm    Post subject: Reply with quote

mbello wrote:
--as-needed smells like trouble to me.

It should be supported with USE flags, so at least we could have an easy way to document/remember which packages were built with --as-needed.

Totally agree with you. I'm only emerging a handful of packages with this flag, and changing my LDFLAGS back to the original. LDFLAGS are a good way to break the system, so be careful people. A useflag would be great, but I don't Gentoo devs would support it anytime soon.
_________________
Ubuntu Linux Dapper Drake running Gnome-2.14.1
[Website | Screenshot | Portage Guide]
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Tue Jun 14, 2005 9:22 pm    Post subject: Reply with quote

bollucks wrote:
devsk wrote:
that's bizzare. I don't see that in my logs at all. Are using some modified abuilds? I just compiled kdelibs/kdebase with that flag and immd. noticed what speed I have been missing.

As my post said - unmodified kde 3.4.1 source.
with --enable-new_ldflags passed to configure which portage doesn't. it isn't default. dude?
Back to top
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Tue Jun 14, 2005 9:40 pm    Post subject: Reply with quote

devsk wrote:
bollucks wrote:
devsk wrote:
that's bizzare. I don't see that in my logs at all. Are using some modified abuilds? I just compiled kdelibs/kdebase with that flag and immd. noticed what speed I have been missing.

As my post said - unmodified kde 3.4.1 source.
with --enable-new_ldflags passed to configure which portage doesn't. dude?

Enable new ldflags lets it selectively choose when to add --as-needed which is safer than passing it yourself.
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Wed Jun 15, 2005 8:25 am    Post subject: Reply with quote

bollucks wrote:
devsk wrote:
bollucks wrote:
devsk wrote:
that's bizzare. I don't see that in my logs at all. Are using some modified abuilds? I just compiled kdelibs/kdebase with that flag and immd. noticed what speed I have been missing.

As my post said - unmodified kde 3.4.1 source.
with --enable-new_ldflags passed to configure which portage doesn't. dude?

Enable new ldflags lets it selectively choose when to add --as-needed which is safer than passing it yourself.

Do you know the logic behind --enable-new_ldflags? How does it know when to apply --as-needed for example? THanks.
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Wed Jun 15, 2005 3:53 pm    Post subject: Reply with quote

when passed enable-new_ldflags, configure just checks if --as-needed works and if it does then it just assigns the variable LDFLAGS_AS_NEEDED="-Wl,--as-needed", which Makefiles have the liberty of using. Currently most kde Makefile's do. If a component finds that it doesn't work for them, they don't put it on the specific link line. Its manual in that sense.

one more thing is configure arg is --enable-new_ldflags and NOT --enable-new-ldflags as mentioned by the ./configure --help. bollucks knew about it but never shared it...that's a shame.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5 ... 9, 10, 11  Next
Page 4 of 11

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum