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

[REG 5.6] Build fails when using ld.bfd in qt-everywhere-* package

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.1
    • 5.6.0
    • Build System
    • None
    • 523c7e3fd55c853dd424d57f28e225d57439cf89

    Description

      When building from the convenience qt-everywhere-* tarball, the build will fail with an error like:

      /usr/bin/ld: warning: libQt5Qml.so.5, needed by /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so, not found (try using -rpath or -rpath-link)
      /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QQmlContext::nameForObject(QObject*) const@Qt_5'
      /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::~QJSValue()@Qt_5'
      /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QtQml::qmlContext(QObject const*)@Qt_5'
      /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::toVariant() const@Qt_5'
      /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::QJSValue(QJSValue::SpecialValue)@Qt_5'
      /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::QJSValue(QJSValue const&)@Qt_5'
      /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QtQml::qmlAttachedPropertiesObject(int*, QObject const*, QMetaObject const*, bool)@Qt_5'
      collect2: error: ld returned 1 exit status
      

      The command-line to the linker was:

      g++ -Wl,-O1 -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64 -o chatserver .obj/main.o .obj/chatserver.o .obj/websocketclientwrapper.o .obj/websockettransport.o .obj/moc_chatserver.o .obj/moc_websocketclientwrapper.o .obj/moc_websockettransport.o   -L/builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebsockets/lib -lQt5WebSockets -L/builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtbase/lib -lQt5Network -L/builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib -lQt5WebChannel -lQt5Core -lpthread 
      

      Note that there are no -rpath-link options.

      This was discussed in the mailing list.

      Attachments

        Issue Links

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

          Activity

            People

              buddenha Oswald Buddenhagen
              thiago Thiago Macieira
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes