Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
-hashvals && -zdynsort alternative (-Wl,--hash-style=?)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 18, 19, 20  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Mon Jul 03, 2006 11:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
vipernicus
Veteran
Veteran


Joined: 17 Jan 2005
Posts: 1462
Location: Your College IT Dept.

PostPosted: Tue Jul 04, 2006 1:07 am    Post subject: Reply with quote

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
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Tue Jul 04, 2006 1:45 am    Post subject: Reply with quote

Color me confused, but doesn't prelink already work with these patches?
_________________
Nihilism makes me smile.
Back to top
View user's profile Send private message
vipernicus
Veteran
Veteran


Joined: 17 Jan 2005
Posts: 1462
Location: Your College IT Dept.

PostPosted: Tue Jul 04, 2006 2:14 am    Post subject: Reply with quote

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
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Tue Jul 04, 2006 2:26 am    Post subject: Reply with quote

Very interesting. Are there unofficial patches floating around perhaps that I might try?
_________________
Nihilism makes me smile.
Back to top
View user's profile Send private message
freigeist
Guru
Guru


Joined: 26 Jan 2004
Posts: 338
Location: Cologne, Germany

PostPosted: Tue Jul 04, 2006 11:00 am    Post subject: Re: Ffmpeg Reply with quote

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
View user's profile Send private message
Non_E
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 160
Location: Czech Republic

PostPosted: Tue Jul 04, 2006 1:07 pm    Post subject: Re: Ffmpeg Reply with quote

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
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Jul 05, 2006 12:36 am    Post subject: Reply with quote

Ok the overlays have changed.

http://distfiles.evolution-mission.org/portage/binutils-overlay.tar.bz2
http://distfiles.evolution-mission.org/portage/glibc-overlay.tar.bz2
Prelink - No changes

Now to use --hash-style, you must USE="hashstyle".

It looks like the new patch is done: http://sourceware.org/ml/binutils/2006-07/msg00023.html
Back to top
View user's profile Send private message
cruzki
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2005
Posts: 137

PostPosted: Wed Jul 05, 2006 1:13 am    Post subject: Reply with quote

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
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Jul 05, 2006 1:14 am    Post subject: Reply with quote

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
View user's profile Send private message
cruzki
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2005
Posts: 137

PostPosted: Wed Jul 05, 2006 2:03 am    Post subject: Reply with quote

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
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Jul 05, 2006 2:13 am    Post subject: Reply with quote

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
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Wed Jul 05, 2006 2:18 am    Post subject: Reply with quote

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
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Jul 05, 2006 2:20 am    Post subject: Reply with quote

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
View user's profile Send private message
cruzki
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2005
Posts: 137

PostPosted: Wed Jul 05, 2006 2:37 am    Post subject: Reply with quote

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 :P )

Code:

prelink -avmfR


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
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Wed Jul 05, 2006 9:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Non_E
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 160
Location: Czech Republic

PostPosted: Wed Jul 05, 2006 9:30 am    Post subject: Reply with quote

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
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Wed Jul 05, 2006 1:55 pm    Post subject: Reply with quote

so the latest nesl247's overlay contains the latest patches now? Been considering to give this a try for a while :P, 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
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Jul 05, 2006 2:01 pm    Post subject: Reply with quote

neuron wrote:
so the latest nesl247's overlay contains the latest patches now? Been considering to give this a try for a while :P, 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
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Jul 05, 2006 5:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Wed Jul 05, 2006 5:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Jul 05, 2006 5:37 pm    Post subject: Reply with quote

Thanks enderandrew.. As soon as you find them, can you post them here.. I'll have the overlays updated immediately then.
Back to top
View user's profile Send private message
cruzki
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2005
Posts: 137

PostPosted: Wed Jul 05, 2006 5:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Jul 05, 2006 5:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
cruzki
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2005
Posts: 137

PostPosted: Wed Jul 05, 2006 5:53 pm    Post subject: Reply with quote

I'm now trying this one ;) on a p4 and an athlon-xp

thanks for the quick response
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 ... 5, 6, 7 ... 18, 19, 20  Next
Page 6 of 20

 
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