Bug 2068343 - linking against libQt5WebEngineCore.so.5.15.8 causes undefined reference
Summary: linking against libQt5WebEngineCore.so.5.15.8 causes undefined reference
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2063091 2065758
TreeView+ depends on / blocked
 
Reported: 2022-03-25 02:14 UTC by Mamoru TASAKA
Modified: 2022-04-02 14:49 UTC (History)
9 users (show)

Fixed In Version: binutils-2.38-7.fc37
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-02 14:12:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 28879 0 P2 RESOLVED [2.38 Regression] ld.bfd: possibly incorrect "undefined reference" errors 2022-03-30 11:27:48 UTC

Description Mamoru TASAKA 2022-03-25 02:14:25 UTC
Description of problem:
With binutils-2.38-6.fc37, trying to link against /usr/lib64/libQt5WebEngineCore.so.5.15.8 (from qt5-qtwebengine-5.15.8-5.fc37.x86_64) causes linkage error like:

/usr/bin/ld: /usr/lib64/libQt5WebEngineCore.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'

or so.

Tried with
tellico-3.4.4-2.fc37 https://koji.fedoraproject.org/koji/taskinfo?taskID=84590679
ghostwriter-2.1.2-1.fc37 https://koji.fedoraproject.org/koji/taskinfo?taskID=84622587 

Version-Release number of selected component (if applicable):
binutils-2.38-6.fc37
qt5-qtwebengine-5.15.8-5.fc37.x86_64
tellico-3.4.4-2.fc37
ghostwriter-2.1.2-1.fc37

How reproducible:
100%

Steps to Reproduce:
1. mockbuild rawhide tellico or ghostwriter
2.
3.

Actual results:
Observer linkage error

Expected results:
linkage succeeds

Additional info:
For both cases just downloading binutils, binutils-gold to 2.37-24.fc36.x86_64 makes linkage succeed, so I suspect this is due to binutils change.

Comment 1 Mamoru TASAKA 2022-03-25 02:47:41 UTC
Note that LTO is related here. Disabling LTO makes linking succeed with binutils-2.38-6.fc37

Comment 2 Nick Clifton 2022-03-30 11:27:49 UTC
Fortunately this bug has already been reported and fixed upstream (PR 28879), so I will backport the patch to rawhide.

Comment 3 Nick Clifton 2022-03-30 12:30:26 UTC
Fixed in binutils-2.38-7.fc37.

Comment 4 Ben Beasley 2022-03-30 13:56:23 UTC
I did a scratch build using your side tag and confirmed luminance-hdr builds with LTO enabled again: https://koji.fedoraproject.org/koji/taskinfo?taskID=84938083

Comment 5 Mamoru TASAKA 2022-04-02 14:12:05 UTC
binutils-2.38-7.fc37 is now in f37 buildroot.

Comment 6 Ben Beasley 2022-04-02 14:49:08 UTC
Building: https://koji.fedoraproject.org/koji/taskinfo?taskID=85060277


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