Bug 340331 - ladspa build fails due to missing --build-id flag to ld
Summary: ladspa build fails due to missing --build-id flag to ld
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: ladspa
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Thomas Vander Stichele
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: fedora-ia64
TreeView+ depends on / blocked
 
Reported: 2007-10-19 19:11 UTC by Doug Chapman
Modified: 2008-02-22 05:36 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-02-22 05:36:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch to add --build-id flag (520 bytes, patch)
2007-10-19 19:11 UTC, Doug Chapman
no flags Details | Diff

Description Doug Chapman 2007-10-19 19:11:35 UTC
Description of problem:
In Fedora 8 all binaries are required to have the build id info.  Gcc will
automatically pass the --build-id flag to ld however packages that call ld
directly need to specifically add the --build-id flag.  Without this rpmbuild
fails on the find-debuginfo.

It fails with:
*** ERROR: No build ID note found in
/var/tmp/ladspa-1.12-8.fc8-root-root/usr/lib64/ladspa/amp.so


Version-Release number of selected component (if applicable):
ladspa-1.12-8

How reproducible:
100%

Steps to Reproduce:
On a build system with Fedora 8 T3 or later
1. build the ladspa rpm using rpmbuild
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Doug Chapman 2007-10-19 19:11:35 UTC
Created attachment 232961 [details]
patch to add --build-id flag

Comment 2 Roland McGrath 2007-10-19 20:18:59 UTC
Wrong fix.  Don't use ld directly at all.  There are other problems with this,
and missing --build-id is just the new one that makes us the notice the package
behaving badly.  This common case was mentioned when I posted to
fedora-devel-list about the whole subject.  Use $(CC) -shared instead of $(LD)
-shared, send that change upstream.

Comment 3 Doug Chapman 2008-02-22 05:36:13 UTC
now building in rawhide, closing.



Note You need to log in before you can comment on or make changes to this bug.