Priority: P2: Important
Affects Version/s: 5.10.0
Fix Version/s: 5.13.0 Alpha 1
Component/s: Build System
Environment:g++ (SUSE Linux) 7.2.1 20171005 [gcc-7-branch revision 253439]
GNU gold (GNU Binutils; openSUSE Leap 42.3 2.29.1) 1.14
Compiling the wearable example is an easy way to reproduce triggering the following:
though we also run into the same issue with our own projects (where Qt v5.9.3 is working fine)
see also closed ---
--- ("This is most likely caused by use of gold linker with qt5 libs") QTBUG-63083
it looks like not only QtQuickTemplate has this issue, I see the same in Core, DesignerComponents, EglFsKmsSupport, MultimediaGstTools, MultimediaQuick, QuickParticles, QuickTemplates2, XcbQpa)
though it seems to be known issue with the gold linker (see also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852035), I can't help wondering why the qt v5.9.3 I rebuild as recent as two weeks ago (so 'most likely' using the same environment) shows these symbols as "NOTYPE GLOBAL DEFAULT ABS", so not relocatable, which is probably why the regular linker had no issues with that
Compiling v5.10.0 with the option '-no-use-gold-linker' results in
The mentioned earlier qtbug focuses on yocto,
We verified that for Qt libs built using the gold linker, both our own projects as well as the wearable example link fine when enforcing use of the gold linker by adding "QMAKE_LFLAGS += -fuse-ld=gold" to the project.
I'm unsure whether the above is Qt's problem at all, though.