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

Bug 367859

Summary: media-sound/quark fails because of underlinking
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: normal CC: kensington, slawomir.nizio
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 372079    
Attachments: Build log
quark-3.21-build.patch
quark-3.21.ebuild.patch
build log 2

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2011-05-18 01:16:13 UTC
Created attachment 273761 [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 Michael Palimaka (kensington) gentoo-dev 2012-01-18 15:36:31 UTC
Created attachment 299241 [details, diff]
quark-3.21-build.patch

Patch to fix underlinking, make debug behave better, and integrate sed from ebuild.
Comment 2 Michael Palimaka (kensington) gentoo-dev 2012-01-18 15:48:01 UTC
Created attachment 299247 [details, diff]
quark-3.21.ebuild.patch

- Correct ordering of variables
- Add missing deps
- Refix bug #226777 which got lost in the last commit
Comment 3 Sławomir Nizio 2012-05-28 17:09:16 UTC
Created attachment 313399 [details]
build log 2

This is probably going to hit more users because AFAIK GCC (4.6.2 or so) doesn't allow indirect linking now. Attaching another build log which probably shows the issue in a more clear way as a form of "me too."
Comment 4 Julian Ospald 2012-05-31 13:20:53 UTC
there is a version bump available, homepage is wrong too

I'll take care of that.
Comment 5 Julian Ospald 2012-05-31 16:11:01 UTC
*quark-3.24 (31 May 2012)

  31 May 2012; Julian Ospald <hasufell@gentoo.org> +quark-3.24.ebuild,
  +files/quark-3.24-build.patch, metadata.xml:
  version bump

  31 May 2012; Julian Ospald <hasufell@gentoo.org> quark-3.21.ebuild:
  fix underlinking wrt #367859, fix homepage