Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
prelink unmasked
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Sat Dec 28, 2002 1:37 pm    Post subject: prelink unmasked Reply with quote

Would this then mean that someone thinks the portage implementation of prelinking is safe... damn that was fast...

Ladies and gentlemen, go ahead and break it. :)
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sat Dec 28, 2002 6:06 pm    Post subject: Re: prelink unmasked Reply with quote

I hope it is not just an error in the mask 8)

Lovechild wrote:
Would this then mean that someone thinks the portage implementation of prelinking is safe... damn that was fast...

Ladies and gentlemen, go ahead and break it. :)

_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sat Dec 28, 2002 6:09 pm    Post subject: Reply with quote

It doesn't like me 8)

Quote:

FAIL: reloc1.sh
PASS: reloc2.sh
FAIL: reloc3.sh
FAIL: reloc6.sh
FAIL: reloc7.sh
PASS: reloc8.sh
PASS: reloc9.sh
FAIL: shuffle1.sh
FAIL: shuffle2.sh
FAIL: shuffle3.sh
FAIL: shuffle4.sh
FAIL: shuffle5.sh

PASS: layout1.sh
PASS: layout2.sh
====================
9 of 14 tests failed
====================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/var/tmp/portage/prelink-20021002-r1/work/prelink/testsuite'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/prelink-20021002-r1/work/prelink/testsuite'
make: *** [check-recursive] Error 1

_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
BigRedDot
n00b
n00b


Joined: 29 Oct 2002
Posts: 67
Location: Austin

PostPosted: Sat Dec 28, 2002 6:18 pm    Post subject: Reply with quote

Well all the tests passed when I installed, so I took the plunge and issued "prelink -a" (I even added /opt/kde/3.1/bin and lib to prelink.conf). So far so good.

It did complain that several things could not be linked against non-PIC libraries. In particular libz.so.1.1.4 showed up the most by far. Is there any reason zlib would not be built with -fPIC?
_________________
Even if you are one-in-a-million, there are still 6000 people just like you.
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Sat Dec 28, 2002 7:17 pm    Post subject: Reply with quote

check with www.gentoo.org/~cretin/prelink.html for more info on errors..

I'm having a strange bug that makes prelink abort do to an assertion bug ??? but it's not listed so I'm trying to recompile the program.
Back to top
View user's profile Send private message
dioxmat
Bodhisattva
Bodhisattva


Joined: 04 May 2002
Posts: 709
Location: /home/mat

PostPosted: Sat Jan 04, 2003 10:47 pm    Post subject: Reply with quote

I have the same problems than Bloody Bastard has.
I have the latest portage, bintutils, gcc, glibc, and even tried without any CFLAGS...
Back to top
View user's profile Send private message
qnx
l33t
l33t


Joined: 25 Jun 2002
Posts: 638
Location: Göteborg, Sweden

PostPosted: Sun Jan 05, 2003 5:01 pm    Post subject: Reply with quote

I must be blind but...How did you guyss configure poratage to use prelink?? USE="prelink" ?? I read http://cvs.gentoo.org/~cretin/prelink.html , but all he says is that newer portage versions supports prelink. But how can I put this option (I guess it's an option) on?
Cheers!
_________________
Registred Linux user #191143!
Abit NF7-S rev. 2.00 (BIOS v. 2.7)
AMD AthlonXP 2500+ (Barton)
PATA Seagate ST3120022A
SATA Seagate ST3200822AS & Silicon Image 3112 chipset
Gentoo Linux :)
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sun Jan 05, 2003 5:18 pm    Post subject: Reply with quote

emerge prelink

qnx wrote:
I must be blind but...How did you guyss configure poratage to use prelink?? USE="prelink" ?? I read http://cvs.gentoo.org/~cretin/prelink.html , but all he says is that newer portage versions supports prelink. But how can I put this option (I guess it's an option) on?
Cheers!

_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
qnx
l33t
l33t


Joined: 25 Jun 2002
Posts: 638
Location: Göteborg, Sweden

PostPosted: Sun Jan 05, 2003 6:48 pm    Post subject: Reply with quote

You maybe misunderstood my question. Or perhaps I misunderstand the answer :P ..... Will portage really prelink all programs I emerge after emerging prelink??
Cheers!
_________________
Registred Linux user #191143!
Abit NF7-S rev. 2.00 (BIOS v. 2.7)
AMD AthlonXP 2500+ (Barton)
PATA Seagate ST3120022A
SATA Seagate ST3200822AS & Silicon Image 3112 chipset
Gentoo Linux :)
Back to top
View user's profile Send private message
katossi
n00b
n00b


Joined: 26 Aug 2002
Posts: 25

PostPosted: Tue Jan 07, 2003 10:53 pm    Post subject: Problem emerging prelink Reply with quote

Does anyone know why some of us could not even emerge prelink?


Please, if any of yoo can tell me why 9 of the 14 tests are failed in my system ( with new gcc, glibc, ...) , please please let me know.

Thanks in advance,

Guillermo
_________________
Para entender recursividad primero has de comprender recursividad.
Back to top
View user's profile Send private message
itsr0y
Tux's lil' helper
Tux's lil' helper


Joined: 22 Dec 2002
Posts: 81

PostPosted: Wed Jan 08, 2003 2:25 am    Post subject: Reply with quote

qnx wrote:
You maybe misunderstood my question. Or perhaps I misunderstand the answer :P ..... Will portage really prelink all programs I emerge after emerging prelink??


No, you have to type "prelink -avmR" or something. That command is probably wrong - i'm not at my gentoo box right now. Do a "man prelink" and if you look under examples, the first one goes through and pretty much prelinks everything, if I read it correctly. When I typed it it showed a bunch of stuff on my screen, so I assume it worked. I have no idea if anything is faster or not.

Also, you can undo the prelink process, so I assume it is pretty safe. That's what the man page says, at least.

I've been using it for a few days and haven't had any problems.
Back to top
View user's profile Send private message
smarm
n00b
n00b


Joined: 10 Jan 2003
Posts: 36

PostPosted: Sat Jan 11, 2003 2:30 am    Post subject: Bump... Reply with quote

I have the same problem that bloody bastard had, 9/14 tests fail, I have new emerges of binutils, gcc, and glibc, in that order just as guide specifies; But all the log files of the failed items have a similar error...

for reloc's it is:
c(number of the item, eg reloc6 is 'c6')
c#:could not find variable copy reloc is against

..whatever that means; And for the shuffle files...

fle(#, eg shuffle1 = fle1)
fle#:could not find variable copy reloc is against

So some variable expressed in the 'reloc' files that is incorrect? Tell me what you think.
Back to top
View user's profile Send private message
invaderzim
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2002
Posts: 93
Location: Louisville, KY

PostPosted: Sat Jan 11, 2003 3:28 pm    Post subject: bigger binaries? Reply with quote

no one has mentioned this yet, but arent the binaries much larger after prelinking? I thought it was basically the same as statically linking? anyway, assume a share library needed by [blah] is 1mb and [blah] is 1mb then wouldnt [blah] be 2mb after prelinking?

thanks
Back to top
View user's profile Send private message
charlyw
n00b
n00b


Joined: 13 Jan 2003
Posts: 3

PostPosted: Mon Jan 13, 2003 12:16 pm    Post subject: Re: bigger binaries? Reply with quote

invaderzim wrote:
no one has mentioned this yet, but arent the binaries much larger after prelinking? I thought it was basically the same as statically linking? anyway, assume a share library needed by [blah] is 1mb and [blah] is 1mb then wouldnt [blah] be 2mb after prelinking?

thanks

Hi,

sorry to be blunt but you got it wrong. Prelinking helps against having to relocate the shared libraries every time a program that uses them over and over again. This is achieved by calculating a preferred address for every library and storing this preferred address in both the binary of both the library and the application (IIRC). When the application is loaded into memory it now probably finds the shared libraries at those addresses. Only when this address space is occupied the library is relocated to a different address and thus is as slow to load as before prelinking... That's why you'd have to prelink again after emerging a library that's used in lot's of applications.

regards
Charlyw
Back to top
View user's profile Send private message
jstuart
n00b
n00b


Joined: 03 Dec 2002
Posts: 57

PostPosted: Mon Jan 13, 2003 7:02 pm    Post subject: Reply with quote

I tried to use prelink and it worked great UNTIL... :)

I have an GeForce2 card and of course have the nvidia drivers. Yes, I did do an opengl-update xfree before I ran prelink. I have ONE application that uses openGL that I like to run. SOO I tried to do an opengl-update nvidia. EVERY time when I did that and then tried to run ANY OpenGL program it would seg fault INCLUDING glxinfo! Once I ran prelink -u, everything worked fine.

I'd LOVE to have prelink running again because I DID see a nice large speed difference. IE konqi startup time normal is .396 seconds. With prelink it was .013!!!!
_________________
Jeff Stuart
JAHGU (Just another happy Gentoo User)
Back to top
View user's profile Send private message
seriousmoose
n00b
n00b


Joined: 07 Nov 2002
Posts: 39

PostPosted: Thu Jan 16, 2003 12:59 am    Post subject: Reply with quote

I too had the same thign 9 of 14 tests failed... today, I got it working though when I switched over to the latest kernel (2.5.56) ... I dunno if that helps or not, but in installing the new kernel, I had to restart my system. I think it was the kernel that changed everything.

I bet, if you ask everyone with the 9 of 14 tests failed, they had the gentoo sources...
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Thu Jan 16, 2003 1:28 am    Post subject: Reply with quote

Uhm...I have gentoo-sources

seriousmoose wrote:
I too had the same thign 9 of 14 tests failed... today, I got it working though when I switched over to the latest kernel (2.5.56) ... I dunno if that helps or not, but in installing the new kernel, I had to restart my system. I think it was the kernel that changed everything.

I bet, if you ask everyone with the 9 of 14 tests failed, they had the gentoo sources...

_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
seriousmoose
n00b
n00b


Joined: 07 Nov 2002
Posts: 39

PostPosted: Thu Jan 16, 2003 6:59 am    Post subject: Reply with quote

All I know, is when I changed from gentoo-sources to development-sources, prelink worked.
Back to top
View user's profile Send private message
elwolfie
n00b
n00b


Joined: 09 Jan 2003
Posts: 7

PostPosted: Thu Jan 16, 2003 1:29 pm    Post subject: Problems emerging prelink Reply with quote

http://www.gentoo.org/doc/en/prelink-howto.xml

could someone help out? Manually doing ./configure
make make check in /var/tmp/.. did not result in anything
more either.

ElW[/b]
Back to top
View user's profile Send private message
elwolfie
n00b
n00b


Joined: 09 Jan 2003
Posts: 7

PostPosted: Thu Jan 16, 2003 1:30 pm    Post subject: Reply with quote

Urk .. I meant http://irc-hosting.net/gentoo for my debug..

-ElW-
Back to top
View user's profile Send private message
dob
Apprentice
Apprentice


Joined: 04 Oct 2002
Posts: 199
Location: S.L.P.

PostPosted: Thu Jan 16, 2003 2:28 pm    Post subject: Reply with quote

I have the same 9 tests out of 14 failed, and use gentoo sources too (2.4.19-r10)

However I don't feel like using 2.5 just yet. Does prelink work with a vanilla kernel? Or is it safe to switch to a 2.5 kernel, emerge prelink and prelink all the stuff, and reboot on the gentoo kernel?
Back to top
View user's profile Send private message
seriousmoose
n00b
n00b


Joined: 07 Nov 2002
Posts: 39

PostPosted: Thu Jan 16, 2003 7:46 pm    Post subject: Reply with quote

I suppose someone should submit this as a bugreport, because it seems consistent with what I said: prelink has problems on gentoo-sources
Back to top
View user's profile Send private message
Delphiki
Guru
Guru


Joined: 04 Oct 2002
Posts: 337
Location: A2

PostPosted: Sat Jan 18, 2003 10:46 pm    Post subject: Reply with quote

I just set up prelinking with no problems except some old non-PIC libraries which I fixed and I use gentoo sources, so the problem must be a little more complicated than that.
_________________
Excellent..
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Sat Jan 18, 2003 11:52 pm    Post subject: Reply with quote

When I try to prelink I get :

prelink -afmR
prelink: dso.c:306: fdopen_dso: Assertion `j == k' failed.
Aborted
Back to top
View user's profile Send private message
ska-rockt
n00b
n00b


Joined: 28 Dec 2002
Posts: 3

PostPosted: Mon Jan 20, 2003 9:40 am    Post subject: non-gentoo kernel helped ! Reply with quote

Hello everybody,

prelink gave me the same "9 fails of 14" Bloody Bastard and some others mentioned.
A
Code:
emerge prelink
after I installed kernel 2.4.20 by hand (patched with the ck patches) worked !
I dont know why and I dont know if I compiled binutils/gcc/glibc after this update......
BUT it seems to be important to link your non-gentoo surce tree to
Code:
/usr/src/linux

I was nearly desperate and hope another kernel can help you too !

mEssi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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