Bug 1654153

Summary: regression: gold: discarding version information for __libc_stack_end
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: aoliva, dvlasenk, fweimer, jakub, jan.kratochvil, nickc
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://sourceware.org/bugzilla/show_bug.cgi?id=23455
Whiteboard:
Fixed In Version: binutils-2.31.1-15.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-01 20:41:15 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:

Description Jan Kratochvil 2018-11-28 07:03:33 UTC
Description of problem:
A build working on F-28 is failing on F-29.
I do not know if it is a gcc or gold bug.

Version-Release number of selected component (if applicable):
gcc-8.2.1-5.fc29.x86_64
binutils-2.31.1-13.fc29.x86_64

How reproducible:
Always.

Steps to Reproduce:
echo -e '#include <stdlib.h>\nint main(){malloc(1);}'|g++ -fkeep-inline-functions -fsanitize=undefined -Wl,--fatal-warnings -fuse-ld=gold -static-libubsan -x c++ -

Actual results:
/usr/bin/ld.gold: warning: discarding version information for __libc_stack_end.5, defined in unused shared library /lib64/ld-linux-x86-64.so.2 (linked with --as-needed)
/usr/bin/ld.gold: error: treating warnings as errors
collect2: error: ld returned 1 exit status

Expected results:
Built a.out.

Additional info:

Comment 1 Nick Clifton 2018-11-28 13:43:13 UTC
This is a manifestation of:

  https://sourceware.org/bugzilla/show_bug.cgi?id=23455

Comment 2 Nick Clifton 2018-11-28 15:44:13 UTC
    Fixed in:

       binutils-2.31.1-15.fc29
       binutils-2.31.1-17.fc30

Comment 3 Jan Kratochvil 2018-11-29 10:05:07 UTC
Confirming this build fixes it even in the real build, thanks.
Although why it does not have a Bodhi update?
  https://bodhi.fedoraproject.org/updates/?packages=binutils

Comment 4 Fedora Update System 2018-11-29 12:32:46 UTC
binutils-2.31.1-15.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-6e6f28f90e

Comment 5 Nick Clifton 2018-11-29 12:33:48 UTC
(In reply to Jan Kratochvil from comment #3)

> Although why it does not have a Bodhi update?

My bad - it slipped my mind.  I have now created the update request.

Comment 6 Fedora Update System 2018-11-30 15:12:10 UTC
binutils-2.31.1-15.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-6e6f28f90e

Comment 7 Fedora Update System 2018-12-01 20:41:15 UTC
binutils-2.31.1-15.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.