[poky] [PATCH 00/12] gcc dso linking change, and related fixes

Kamble, Nitin A nitin.a.kamble at intel.com
Fri Jan 21 08:39:30 PST 2011



> -----Original Message-----
> From: Richard Purdie [mailto:richard.purdie at linuxfoundation.org]
> Sent: Thursday, January 20, 2011 4:14 PM
> To: Kamble, Nitin A
> Cc: poky at yoctoproject.org
> Subject: Re: [poky] [PATCH 00/12] gcc dso linking change, and related
> fixes
> 
> Hi Nitin,
> 
> On Mon, 2011-01-17 at 14:45 -0800, Nitin A Kamble wrote:
> > This commit set, changes the dso linking to avoid automatic linking
> of
> > shared libraries. This caused, as expected, linking of few recipes to
> fail.
> > All these recipes are fixed by specifying the linked libraries
> explicitely.
> >
> > Pull URL: git://git.pokylinux.org/poky-contrib.git
> >   Branch: nitin/dso_linking_change
> >   Browse: http://git.pokylinux.org/cgit.cgi/poky-
> contrib/log/?h=nitin/dso_linking_change
> >
> > Thanks,
> >     Nitin A Kamble <nitin.a.kamble at intel.com>
> 
> We've taken these into master but I'm a bit worried and we have some
> breakage still. Specifically, systemtap failed with a pthread linkage
> failure.
> 
> I couldn't find systemtap using pthreads anywhere that would cause the
> error so I hit google. I found:
> 
> http://lists.fedoraproject.org/pipermail/devel/2010-January/129131.html
> http://lists.fedoraproject.org/pipermail/devel/2010-January/129134.html
> 
> So I'm wondering if we should disable the gcc patch until Fedora sort
> this out. Could you look into this and see if there are any patches
> fixing this properly out there yet?
> 
> It does clearly indicate that adding -lpthread to the makefile for
> systemtap would be wrong. I'm hoping that there weren't any other cases
> like this?
> 
> Cheers,
> 
> Richard
> 
> 
> 
Hi Richard,
 As per our discussions yesterday, I found out that the ld from newer binutils 2.21 recipe would solve these incorrect linking issues. Scott's newer binutils recipe is already in master now. So the issue for systemtap is taken care of. I am checking if the fixes for recipes related to the dso linking change becomes unnecessary with the new ld, and as needed send a pull request for it.

Thanks,
Nitin



More information about the poky mailing list