Bug 1645828

Summary: binutils: brp-static (from rpm) prints a lot of DUP FUNXC messages
Product: [Fedora] Fedora Reporter: Luya Tshimbalanga <luya>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 29CC: aoliva, dvlasenk, fweimer, igor.raits, jakub, mjw, nickc, packaging-team-maint, pmatilai, pmoravco, rjones, samuel-rhbugs, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: binutils-2.31.1-14.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-02 05:04:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
luxcorerender.spec used to trigger the bug none

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!