Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 369451

Summary: sys-fs/btrfs-progs fails because of underlinking
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Joe Peterson (RETIRED) <lavajoe>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2011-05-31 10:08:29 UTC
Created attachment 275289 [details]
Build log

Hello there!

You're getting this bug because the package in Summary failed to build in my tinderbox using the gold link editor from binutils. Before closing the bug as INVALID let me explain why this is still important!

The gold link editor does not support underlinking of shared objects, which is something I have described in my blog post:

http://blog.flameeyes.eu/2010/11/26/it-s-not-all-gold-that-shines-why-underlinking-is-a-bad-thing

Even the basic link editor (ld.bfd) has an option to support this but it is a heck to enable and get passed, so linking with gold is simply quicker.

Fixing underlinking provides optimized --as-needed builds (because the "softer" version no longer need to recover libraries that are underlinked), so it is a Good Thing To Do.

Thank you very much for the attention!
Comment 1 Joe Peterson (RETIRED) gentoo-dev 2011-05-31 14:25:38 UTC
Hey Diego, this underlinking issue is very interesting, and it appears that it could, indeed, cause badness.  Your blog post does not talk about ways to "fix" it.  Is there a way to do such without appealing to upstream (i.e. through a change in flags)?  If not, it may be difficult to convince all upstreams to change things to address this.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-05-31 14:34:00 UTC
The only solution is to link properly to the libraries used. In this case it should have -luuid -lcom_err, not just -luuid.
Comment 3 Joe Peterson (RETIRED) gentoo-dev 2011-05-31 14:47:14 UTC
OK, easy enough.  BTW, is it just the "convert" program that has this underlinked condition, or others, as well?  Currently, we only depend on e2fsprogs if the acl USE flag is set (which builds "convert"), but I'll move it outside the conditional if it affects others as well.
Comment 4 Joe Peterson (RETIRED) gentoo-dev 2011-05-31 14:54:00 UTC
Never mind - build log shows the problem for "convert"...  I'll add it there.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-05-31 14:56:10 UTC
I can't easily tell if there are more problems; but if the others built without e2fsprogs then it should work fine.
Comment 6 Joe Peterson (RETIRED) gentoo-dev 2011-06-05 16:43:17 UTC
Fixed and patch sent to upstream