View previous topic :: View next topic |
Author |
Message |
enderandrew l33t
Joined: 25 Oct 2005 Posts: 731
|
Posted: Mon Jul 03, 2006 11:49 pm Post subject: |
|
|
This is not a replacement in any way for -Bdirect. -Bdirect may resurface in a form that is compatible with these patches. The last email I got from Michael Meeks seemed to suggest that. These patches replace dynsort and hashvals. However, they break the current -Bdirect patches.
The binutils team seems against -Bdirect in any form, for fear it will break things. Yet, it has never broken anything for me, and if another unofficial patch for it does emerge, I'll use it in a heartbeat. I'm going to wait a little longer to see if Meeks does release a new Bdirect that works in conjunction with these new patches.
Edit: I also noticed that samba is not working with the new patches. I'm going to try to build the latest 3.0.23_rc3 and see if that fixes it (though I don't expect it will). I just manually downloaded the source into my distfiles directory, renamed the ebuild and moved it into my overlay folder. _________________ Nihilism makes me smile. |
|
Back to top |
|
|
vipernicus Veteran
Joined: 17 Jan 2005 Posts: 1462 Location: Your College IT Dept.
|
Posted: Tue Jul 04, 2006 1:07 am Post subject: |
|
|
enderandrew wrote: | This is not a replacement in any way for -Bdirect. -Bdirect may resurface in a form that is compatible with these patches. The last email I got from Michael Meeks seemed to suggest that. These patches replace dynsort and hashvals. However, they break the current -Bdirect patches.
The binutils team seems against -Bdirect in any form, for fear it will break things. Yet, it has never broken anything for me, and if another unofficial patch for it does emerge, I'll use it in a heartbeat. I'm going to wait a little longer to see if Meeks does release a new Bdirect that works in conjunction with these new patches.
Edit: I also noticed that samba is not working with the new patches. I'm going to try to build the latest 3.0.23_rc3 and see if that fixes it (though I don't expect it will). I just manually downloaded the source into my distfiles directory, renamed the ebuild and moved it into my overlay folder. |
This is an interesting read on prelink and -Bdirect. http://www.kdedevelopers.org/node/1650#comment-4090
According to these guys, -Bdirect is not as clean of a hack as prelink, and cannot acheive the same results than can be acheived with a hacked prelink. Also, the binutils team is against -Bdirect in any form, because it presently breaks ELF standards. Preferrably, I would rather see a hacked prelink than the -Bdirect patches spawn soon. _________________ Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog |
|
Back to top |
|
|
enderandrew l33t
Joined: 25 Oct 2005 Posts: 731
|
Posted: Tue Jul 04, 2006 1:45 am Post subject: |
|
|
Color me confused, but doesn't prelink already work with these patches? _________________ Nihilism makes me smile. |
|
Back to top |
|
|
vipernicus Veteran
Joined: 17 Jan 2005 Posts: 1462 Location: Your College IT Dept.
|
Posted: Tue Jul 04, 2006 2:14 am Post subject: |
|
|
enderandrew wrote: | Color me confused, but doesn't prelink already work with these patches? |
Oh yeah, they work with these patches, what I meant, is prelink doesn't prelink dlopen. -Bdirect does. prelink can prelink dlopen, and according to some, if and when it does, it will out perform -Bdirect. _________________ Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog |
|
Back to top |
|
|
enderandrew l33t
Joined: 25 Oct 2005 Posts: 731
|
Posted: Tue Jul 04, 2006 2:26 am Post subject: |
|
|
Very interesting. Are there unofficial patches floating around perhaps that I might try? _________________ Nihilism makes me smile. |
|
Back to top |
|
|
freigeist Guru
Joined: 26 Jan 2004 Posts: 338 Location: Cologne, Germany
|
Posted: Tue Jul 04, 2006 11:00 am Post subject: Re: Ffmpeg |
|
|
Non_E wrote: | freigeist wrote: | Finished rebuilding on my desktop...OOOOOOOOOOOOOOOOOOUUUUUUUUUUUUUUUHHHHHHHHHHHHH...., never seen my apps starting that fast...all packages compiles without an error! It seems to be a lot faster than Bdirect... |
Do not forget to run prelink (Like I did.)
What version of ffmpeg do you use? Any special cflags/ldflags/cxxflags? Ffmpeg is the pkg I really need Thanks |
Code: |
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=k8"
CFLAGS="${CFLAGS} -O2"
CFLAGS="${CFLAGS} -fomit-frame-pointer"
CFLAGS="${CFLAGS} -pipe"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=both"
|
Code: |
* media-video/ffmpeg
Latest version available: 0.4.9_p20060302
Latest version installed: 0.4.9_p20060302
Size of files: 2,244 kB
Homepage: http://ffmpeg.sourceforge.net/
Description: Complete solution to record, convert and stream audio and video. Includes libavcodec.
License: GPL-2
|
_________________ Elfenbeinturm.cc
a metaphysical space of solitude and sanctity: http://www.elfenbeinturm.cc |
|
Back to top |
|
|
Non_E Apprentice
Joined: 17 Jan 2006 Posts: 160 Location: Czech Republic
|
Posted: Tue Jul 04, 2006 1:07 pm Post subject: Re: Ffmpeg |
|
|
freigeist wrote: | Code: |
* media-video/ffmpeg
Latest version available: 0.4.9_p20060302
Latest version installed: 0.4.9_p20060302
Size of files: 2,244 kB
Homepage: http://ffmpeg.sourceforge.net/
Description: Complete solution to record, convert and stream audio and video. Includes libavcodec.
License: GPL-2
|
|
Thanks. Althought I use different march, I will give it a try.
Edit:That was the kick I needed. I finally I found out it was not about optimisations and/or flags. At first it seemed that inline-asm (what is that? ) bug in gcc is the problem together with --as-needed ldflag. At last I came across the real problem - the latest x264 svn revision. I wonder why did this not show up anytime before. Thank you freigeist. |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
|
Back to top |
|
|
cruzki Tux's lil' helper
Joined: 13 Dec 2005 Posts: 137
|
Posted: Wed Jul 05, 2006 1:13 am Post subject: |
|
|
so i need to delete --hash-style=both from LDFLAGS? or the USE flag is only for compile the glibc and binutils with the support of hash-style? |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Wed Jul 05, 2006 1:14 am Post subject: |
|
|
You still need the LDFLAG, but the USE flag sets the patches to be used. I did it so I don't have to maintain two overlays for binutils, and two for glibc. |
|
Back to top |
|
|
cruzki Tux's lil' helper
Joined: 13 Dec 2005 Posts: 137
|
Posted: Wed Jul 05, 2006 2:03 am Post subject: |
|
|
ok, thaks for the quick response
and another two thing, how i will sure that this pacht is worlking? will the overlay be included in layman? |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Wed Jul 05, 2006 2:13 am Post subject: |
|
|
I don't control any of the layman stuff, nor do I know who to contact regarding that. As far as knowing it works, if after emerging glibc and binutils (without --hash-style in LDFLAGS) and then adding it and you don't get a c cannot compile... error, it's working. |
|
Back to top |
|
|
enderandrew l33t
Joined: 25 Oct 2005 Posts: 731
|
Posted: Wed Jul 05, 2006 2:18 am Post subject: |
|
|
The new binutils patch is posted. Do we need updated patches for prelink and glibc or will the old ones work? _________________ Nihilism makes me smile. |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Wed Jul 05, 2006 2:20 am Post subject: |
|
|
If you read carefully in the link I posted, it seems Ulrich has them.. I just don't see where they are posted. |
|
Back to top |
|
|
cruzki Tux's lil' helper
Joined: 13 Dec 2005 Posts: 137
|
Posted: Wed Jul 05, 2006 2:37 am Post subject: |
|
|
another thing i want to coment is in my laptop yesterday after follow the guide i run prelink with this comand (i did not do the emerge -e world )
and i broke my system whith a lot of unresolved symbols and stuff like that. When i undo the prelink avery thing goes correctly.
my question is if this step is needed or just whith the emerge -e world is enough?
EDIT:
nesl247 wrote: | I don't control any of the layman stuff, nor do I know who to contact regarding that. |
I sent and e-mail to overlays@gentoo.org asking for to add the overlay to layman, I hope that you are ok with that :s nesl247 |
|
Back to top |
|
|
Gergan Penkov Veteran
Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Wed Jul 05, 2006 9:00 am Post subject: |
|
|
You should not run prelink before you have world emerged, the patched prelink will try to use the new-style hashes and if you don't have them - you say it will break
I have updated the first page with the new links to the nesl247 overlays. _________________ "I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack |
|
Back to top |
|
|
Non_E Apprentice
Joined: 17 Jan 2006 Posts: 160 Location: Czech Republic
|
Posted: Wed Jul 05, 2006 9:30 am Post subject: |
|
|
cruzki wrote: | nesl247 wrote: | I don't control any of the layman stuff, nor do I know who to contact regarding that. |
I sent and e-mail to overlays@gentoo.org asking for to add the overlay to layman, I hope that you are ok with that :s nesl247 |
I used to express my remarks concerning layman to Gunnar Wrobel <wrobel@gentoo.org>. |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
Posted: Wed Jul 05, 2006 1:55 pm Post subject: |
|
|
so the latest nesl247's overlay contains the latest patches now? Been considering to give this a try for a while , do prelink need any updated patches or do the "old" prelink hashstyle patches still work with the new patches for binutils+glibc? |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Wed Jul 05, 2006 2:01 pm Post subject: |
|
|
neuron wrote: | so the latest nesl247's overlay contains the latest patches now? Been considering to give this a try for a while , do prelink need any updated patches or do the "old" prelink hashstyle patches still work with the new patches for binutils+glibc? |
No they don't contain the latest. They contain the first --hash-style patches. The reason they aren't updated is according to that post Ulrich still has the glibc patches. Now if I misunderstood and glibc/prelink stay the same, I will update immediately. I just need confirmation.
If my overlay goes into layman, please tell me. I don't check it all the time so thanks. |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Wed Jul 05, 2006 5:19 pm Post subject: |
|
|
Can anyone with a bit more understanding tell me if we need to remove --hash-style=both, emerge -1 binutils glibc with new patch, ad --hash-style-both, emerge -1 binutils glibc, emerge -e world? Or is it just update emerge -1 binutils glibc; emerge -e world.
I take it from previous responses that it's the longer method..
P.S. for all those who downloaded my new glibc, please redownload it. For some reason I forgot to add the hashstyle USE flag to the glibc-2.4-r4 and 2.4.90 ebuilds. The url HASN'T changed. |
|
Back to top |
|
|
enderandrew l33t
Joined: 25 Oct 2005 Posts: 731
|
Posted: Wed Jul 05, 2006 5:36 pm Post subject: |
|
|
Since they still haven't been posted on any of the binutils or glibc mailing lists as far as I can see, I emailed Ulrich and request the corresponding glibc patches to be posted. _________________ Nihilism makes me smile. |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Wed Jul 05, 2006 5:37 pm Post subject: |
|
|
Thanks enderandrew.. As soon as you find them, can you post them here.. I'll have the overlays updated immediately then. |
|
Back to top |
|
|
cruzki Tux's lil' helper
Joined: 13 Dec 2005 Posts: 137
|
Posted: Wed Jul 05, 2006 5:40 pm Post subject: |
|
|
i only know that with glibc-2.4.90-pre20060701, binutils-2.17 with the overlay of yesterday I can't compile anything
I will redownload and recompile glibc and binutils now whith the second one options :S |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Wed Jul 05, 2006 5:41 pm Post subject: |
|
|
cruzki wrote: | i only know that with glibc-2.4.90-pre20060701, binutils-2.17 with the overlay of yesterday I can't compile anything
I will redownload and recompile glibc and binutils now whith the second one options :S |
When you get the updated glibc, you need to:
make sure --hash-style is NOT in your LDFLAGS
USE="hashstyle" emerge binutils glibc
add -Wl,--hash-style=both to your LDFLAGS
emerge binutils glibc
emerge -e world |
|
Back to top |
|
|
cruzki Tux's lil' helper
Joined: 13 Dec 2005 Posts: 137
|
Posted: Wed Jul 05, 2006 5:53 pm Post subject: |
|
|
I'm now trying this one on a p4 and an athlon-xp
thanks for the quick response |
|
Back to top |
|
|
|