Description of problem: I'm building packages with COPR, targeting Fedora 29 but the build fails with the following linker error: compiling color.cpp [fluidcontrolsplugin] linking fluid-demo [fluid-demo] compiling moc_controlsutils.cpp [fluidcontrolsplugin] BUILDSTDERR: ERROR: /usr/bin/g++ -Wl,-m,elf_i386 -m32 -o /builddir/build/BUILD/fluid-8d3c34738e63a1bde8d9d95f4e1f93c8ad93ccb7/build/default/fluid-demo.621c3a4a/fluid-demo /builddir/build/BUILD/fluid-8d3c34738e63a1bde8d9d95f4e1f93c8ad93ccb7/build/default/fluid-demo.621c3a4a/3a52ce780950d4d9/iconcategorymodel.cpp.o /builddir/build/BUILD/fluid-8d3c34738e63a1bde8d9d95f4e1f93c8ad93ccb7/build/default/fluid-demo.621c3a4a/3a52ce780950d4d9/iconnamemodel.cpp.o /builddir/build/BUILD/fluid-8d3c34738e63a1bde8d9d95f4e1f93c8ad93ccb7/build/default/fluid-demo.621c3a4a/3a52ce780950d4d9/main.cpp.o /builddir/build/BUILD/fluid-8d3c34738e63a1bde8d9d95f4e1f93c8ad93ccb7/build/default/fluid-demo.621c3a4a/3a52ce780950d4d9/qrc_fluid-demo.cpp.o /builddir/build/BUILD/fluid-8d3c34738e63a1bde8d9d95f4e1f93c8ad93ccb7/build/default/fluid-demo.621c3a4a/73489b871e127538/moc_iconcategorymodel.cpp.o /builddir/build/BUILD/fluid-8d3c34738e63a1bde8d9d95f4e1f93c8ad93ccb7/build/default/fluid-demo.621c3a4a/73489b871e127538/moc_iconnamemodel.cpp.o /usr/lib/libQt5QuickControls2.so.5.11.1 /usr/lib/libQt5Quick.so.5.11.1 /usr/lib/libQt5Qml.so.5.11.1 /usr/lib/libQt5Network.so.5.11.1 /usr/lib/libQt5Gui.so.5.11.1 /usr/lib/libQt5Core.so.5.11.1 BUILDSTDERR: ERROR: /usr/bin/ld: //lib/libQt5QuickTemplates2.so.5:(*IND*+0x0): multiple definition of `_end' BUILDSTDERR: /usr/bin/ld: //lib/libQt5QuickTemplates2.so.5:(*IND*+0x0): multiple definition of `_edata' BUILDSTDERR: collect2: error: ld returned 1 exit status BUILDSTDERR: ERROR: Process failed with exit code 1. BUILDSTDERR: The following products could not be built for configuration default: BUILDSTDERR: fluid-demo, fluidcontrolsplugin, fluidcoreplugin This looks like this F28 issue: https://bugzilla.redhat.com/show_bug.cgi?id=1458003 I can reproduce the issue on both i386 and x86_64
Hi Pier, Are you using the gold linker ? If so, as a workaround, you could try using the bfd linker instead. In the meantime, are you able to put together a tarball of the object files and libraries, so that I can try linking them locally ? Cheers Nick
Nope I didn't use the gold linker, but it seems qt5-qtbase does: https://src.fedoraproject.org/rpms/qt5-qtbase/c/507fe0eddd60a68c2e1537113a761a2ed201fb3a?branch=master That's why I also CC'ed Rex. It will take a me some time before I can send you the object files and libraries, because I don't have F29 installed (the build is from COPR).
OK, perhaps it's time to switch Qt5 stack away from gold (again).
Now that you have disable gold on Rawhide my builds are green. Could you apply your patch to 29 too?
*** Bug 1640914 has been marked as a duplicate of this bug. ***
I was originally planning on bringing this fix along with the rest of qt 5.9.2 , but that will likely take longer. I'll go ahead and do it now.
qt5-qtbase-5.11.1-8.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-1fdfed503a
also just submitted buildroot override for qt5-qtbase-5.11.1-8.fc29 , to allow builds to use it for a week (expires Oct 31).
Made a F29 VM, updated qt5-qtbase from the new build: $ rpm -qa | grep qt5-qtbase qt5-qtbase-common-5.11.1-8.fc29.noarch qt5-qtbase-5.11.1-8.fc29.x86_64 qt5-qtbase-devel-5.11.1-8.fc29.x86_64 qt5-qtbase-gui-5.11.1-8.fc29.x86_64 but still the same linker issue. Perhaps qt5-qtquickcontrols2 needs to be rebuilt as well?
qt5-qtbase-5.11.1-8.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-1fdfed503a
qt5-qtbase-5.11.1-8.fc29 qt5-qtquickcontrols2-5.11.1-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-1fdfed503a
it works with qt5-qtquickcontrols2-5.11.1-3.fc29, thanks.
qt5-qtbase-5.11.1-9.fc29, qt5-qtquickcontrols2-5.11.1-3.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-1fdfed503a
qt5-qtbase-5.11.1-9.fc29, qt5-qtquickcontrols2-5.11.1-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.