Bug 1645828 - binutils: brp-static (from rpm) prints a lot of DUP FUNXC messages
Summary: binutils: brp-static (from rpm) prints a lot of DUP FUNXC messages
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: 29
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-04 04:36 UTC by Luya Tshimbalanga
Modified: 2018-12-02 05:04 UTC (History)
13 users (show)

Fixed In Version: binutils-2.31.1-14.fc29
Clone Of:
Environment:
Last Closed: 2018-12-02 05:04:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
luxcorerender.spec used to trigger the bug (14.20 KB, text/plain)
2018-11-04 04:36 UTC, Luya Tshimbalanga
no flags Details

Description Luya Tshimbalanga 2018-11-04 04:36:14 UTC
Created attachment 1501206 [details]
luxcorerender.spec used to trigger the bug

Description of problem:
An endless DUP FUNXC occurred while building a spec file i.e luxcorerender in this case. No idea how it is triggered but the possible trigger happened on 

+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
DUP FUNXC

Version-Release number of selected component (if applicable):
4.14.2.1-1

How reproducible:
Always

Steps to Reproduce:
1. Attempt to build a spec file
2.
3.

Actual results:
Endless DUP FUNXC message

Expected results:
Build goes normal

Additional info:
See https://koji.fedoraproject.org/koji/taskinfo?taskID=30651816

Comment 1 Florian Weimer 2018-11-04 10:22:36 UTC
This is actually a left-over debugging message in objcopy (in binutils).

Comment 2 Mark Wielaard 2018-11-04 11:32:52 UTC
This happens because this script is using binutils strip (not elfutils eu-strip). binutils strip apparently has code to merge NT_GNU_BUILD_ATTRIBUTE ELF Notes.

objcopy.c (merge_gnu_build_notes):
The error message happens when triggering "Rule 2 - preserve function notes." and there is an identical previous function note.

I have no idea why binutils strip would try to do NT_GNU_BUILD_ATTRIBUTE ELF Notes merging.

Comment 3 Nick Clifton 2018-11-15 13:20:05 UTC
Doh - my bad.  Fixing now.

Comment 4 Nick Clifton 2018-11-15 14:36:59 UTC
Fixed in:  binutils-2.31.1-14.fc29 and  binutils-2.31.1-16.fc30

Comment 5 Luya Tshimbalanga 2018-12-02 05:04:58 UTC
I confirm the fix removed the left-over debugging message. Closing this report. 
Thanks Nick!


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