Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72929

linking libQt5QuickTest.so fails when using gold linker

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12.0, 5.12.1
    • Build System
    • None
    • linux
    • Linux/X11

    Description

      I build and install qt5 in /opt/qt5
      This works when using the ld linker but not when qtbase is built with gold support.
      qtdeclarative tries to link ibQt5QuickTest.so to libraries (Qt5Qml,Qt5Quick) which have not yet been installed

      the following snippet shows the problem
      a full compile log is attached

      CCACHE_SLOPPINESS="pch_defines,time_macros${CCACHE_SLOPPINESS+,$CCACHE_SLOPPINESS}" CCACHE_C
      PP2=true ccache g++ -Wl,--no-undefined -Wl,--version-script,QtQuickTest.version -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQt5QuickTest.so.5 \
      -o libQt5QuickTest.so.5.12.1 .obj/quicktest.o .obj/
      quicktestevent.o .obj/quicktestresult.o .obj/moc_quicktestevent_p.o  -L/opt/qt5/lib -lQt5Test -lQt5Widgets -lQt5Gui -lQt5Core -lpthread -L/usr/src/qtdeclarative-5.12.x/bld_dir/lib -lQt5Quick -L/opt/qt5/lib -lQt5Qml -lQt5Gui -lQt5Network -lQt5Core -lpthread /usr/lib/libGL.so  
      /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: error: cannot open /opt/qt5/lib/libQt5Quick.so: No such file or directory
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            treeve Treeve Jelbert
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes