Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369451 - sys-fs/btrfs-progs fails because of underlinking
Summary: sys-fs/btrfs-progs fails because of underlinking
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joe Peterson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 10:08 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-06-05 16:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (btrfs-progs-0.19-r2:20110531-061853.log,13.89 KB, text/plain)
2011-05-31 10:08 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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