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.
Note that LTO is related here. Disabling LTO makes linking succeed with binutils-2.38-6.fc37
Fortunately this bug has already been reported and fixed upstream (PR 28879), so I will backport the patch to rawhide.
Fixed in binutils-2.38-7.fc37.
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
binutils-2.38-7.fc37 is now in f37 buildroot.
Building: https://koji.fedoraproject.org/koji/taskinfo?taskID=85060277