View previous topic :: View next topic |
Author |
Message |
Lovechild Advocate
Joined: 17 May 2002 Posts: 2858 Location: Århus, Denmark
|
Posted: Sat Dec 28, 2002 1:37 pm Post subject: prelink unmasked |
|
|
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 |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Sat Dec 28, 2002 6:06 pm Post subject: Re: prelink unmasked |
|
|
I hope it is not just an error in the mask
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 |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Sat Dec 28, 2002 6:09 pm Post subject: |
|
|
It doesn't like me
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 |
|
|
BigRedDot n00b
Joined: 29 Oct 2002 Posts: 67 Location: Austin
|
Posted: Sat Dec 28, 2002 6:18 pm Post subject: |
|
|
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 |
|
|
Lovechild Advocate
Joined: 17 May 2002 Posts: 2858 Location: Århus, Denmark
|
Posted: Sat Dec 28, 2002 7:17 pm Post subject: |
|
|
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 |
|
|
dioxmat Bodhisattva
Joined: 04 May 2002 Posts: 709 Location: /home/mat
|
Posted: Sat Jan 04, 2003 10:47 pm Post subject: |
|
|
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 |
|
|
qnx l33t
Joined: 25 Jun 2002 Posts: 638 Location: Göteborg, Sweden
|
Posted: Sun Jan 05, 2003 5:01 pm Post subject: |
|
|
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 |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Sun Jan 05, 2003 5:18 pm Post subject: |
|
|
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 |
|
|
qnx l33t
Joined: 25 Jun 2002 Posts: 638 Location: Göteborg, Sweden
|
Posted: Sun Jan 05, 2003 6:48 pm Post subject: |
|
|
You maybe misunderstood my question. Or perhaps I misunderstand the answer ..... 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 |
|
|
katossi n00b
Joined: 26 Aug 2002 Posts: 25
|
Posted: Tue Jan 07, 2003 10:53 pm Post subject: Problem emerging prelink |
|
|
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 |
|
|
itsr0y Tux's lil' helper
Joined: 22 Dec 2002 Posts: 81
|
Posted: Wed Jan 08, 2003 2:25 am Post subject: |
|
|
qnx wrote: | You maybe misunderstood my question. Or perhaps I misunderstand the answer ..... 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 |
|
|
smarm n00b
Joined: 10 Jan 2003 Posts: 36
|
Posted: Sat Jan 11, 2003 2:30 am Post subject: Bump... |
|
|
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 |
|
|
invaderzim Tux's lil' helper
Joined: 16 Aug 2002 Posts: 93 Location: Louisville, KY
|
Posted: Sat Jan 11, 2003 3:28 pm Post subject: bigger binaries? |
|
|
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 |
|
|
charlyw n00b
Joined: 13 Jan 2003 Posts: 3
|
Posted: Mon Jan 13, 2003 12:16 pm Post subject: Re: bigger binaries? |
|
|
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 |
|
|
jstuart n00b
Joined: 03 Dec 2002 Posts: 57
|
Posted: Mon Jan 13, 2003 7:02 pm Post subject: |
|
|
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 |
|
|
seriousmoose n00b
Joined: 07 Nov 2002 Posts: 39
|
Posted: Thu Jan 16, 2003 12:59 am Post subject: |
|
|
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 |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Thu Jan 16, 2003 1:28 am Post subject: |
|
|
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 |
|
|
seriousmoose n00b
Joined: 07 Nov 2002 Posts: 39
|
Posted: Thu Jan 16, 2003 6:59 am Post subject: |
|
|
All I know, is when I changed from gentoo-sources to development-sources, prelink worked. |
|
Back to top |
|
|
elwolfie n00b
Joined: 09 Jan 2003 Posts: 7
|
Posted: Thu Jan 16, 2003 1:29 pm Post subject: Problems emerging prelink |
|
|
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 |
|
|
elwolfie n00b
Joined: 09 Jan 2003 Posts: 7
|
|
Back to top |
|
|
dob Apprentice
Joined: 04 Oct 2002 Posts: 199 Location: S.L.P.
|
Posted: Thu Jan 16, 2003 2:28 pm Post subject: |
|
|
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 |
|
|
seriousmoose n00b
Joined: 07 Nov 2002 Posts: 39
|
Posted: Thu Jan 16, 2003 7:46 pm Post subject: |
|
|
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 |
|
|
Delphiki Guru
Joined: 04 Oct 2002 Posts: 337 Location: A2
|
Posted: Sat Jan 18, 2003 10:46 pm Post subject: |
|
|
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 |
|
|
col l33t
Joined: 08 May 2002 Posts: 820 Location: Melbourne - Australia
|
Posted: Sat Jan 18, 2003 11:52 pm Post subject: |
|
|
When I try to prelink I get :
prelink -afmR
prelink: dso.c:306: fdopen_dso: Assertion `j == k' failed.
Aborted |
|
Back to top |
|
|
ska-rockt n00b
Joined: 28 Dec 2002 Posts: 3
|
Posted: Mon Jan 20, 2003 9:40 am Post subject: non-gentoo kernel helped ! |
|
|
Hello everybody,
prelink gave me the same "9 fails of 14" Bloody Bastard and some others mentioned.
A 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
I was nearly desperate and hope another kernel can help you too !
mEssi |
|
Back to top |
|
|
|