Bug 26311 - configure uses unprefixed readelf to check for buildids
Summary: configure uses unprefixed readelf to check for buildids
Status: RESOLVED FIXED
Alias: None
Product: elfutils
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-29 07:47 UTC by Rolf Eike Beer
Modified: 2020-07-29 10:20 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Eike Beer 2020-07-29 07:47:06 UTC
The configure check in 0.180 behind "checking whether the compiler generates build-ids" uses plain readelf, even after it checked for a proper cross-readelf before. It should use that one instead.
Comment 1 Mark Wielaard 2020-07-29 10:20:18 UTC
You are right. It has been fixed in git already:

commit 9698a399292fbc5e07eac17217af2de8bf5cb4b0
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date:   Sun Jun 14 20:28:07 2020 +0100

    elfutils/configure.ac: use $READELF, not readelf
    
    Allow user to specify own readelf. Use detected readelf,
    not 'readelf'.
    
    Noticed when was building elfutils on tuple-prefixed toolchain:
    
    ```
    checking whether the compiler generates build-ids...
      ./configure: line 5197: readelf: command not found
    no
    ```
    
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>