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

[REG 5.5.1 -> 5.6.0] Building with clang fails on Ubuntu 15.10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.0 RC
    • 5.6.0 RC
    • Network
    • None
    • Ubuntu 15.10 64 bit

      Ubuntu clang version 3.6.2-1 (tags/RELEASE_362/final) (based on LLVM 3.6.2)
      Target: x86_64-pc-linux-gnu
      Thread model: posix

      qtbase a67a905190b85b53c30c9cb800b5e282d9364179
    • 143c68436449203e83a3b2f49d9176d0e89d85a0 3726c46735edb23ad37af818ff7d52d661ec87e7

    Description

      Trying to build Qt 5.6.0 with clang fails:

      make[3]: Entering directory '/home/qtrob/dev/clang-3.6.2/qt-5.6.0/qtbase/src/network'
      rm -f libQt5Network.so.5.6.0 libQt5Network.so libQt5Network.so.5 libQt5Network.so.5.6
      clang++ -ccc-gcc-name g++ -Wl,--version-script,/home/qtrob/dev/clang-3.6.2/qt-5.6.0/qtbase/src/network/QtNetwork.version -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-rpath,/home/qtrob/dev/clang-3.6.2/qt-5.6.0/qtbase/lib -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQt5Network.so.5 -o libQt5Network.so.5.6.0 .obj/qftp.o .obj/qhttpnetworkheader.o .obj/qhttpnetworkrequest.o .obj/qhttpnetworkreply.o .obj/qhttpnetworkconnection.o .obj/qhttpnetworkconnectionchannel.o .obj/qabstractprotocolhandler.o .obj/qhttpprotocolhandler.o .obj/qspdyprotocolhandler.o .obj/qnetworkaccessauthenticationmanager.o .obj/qnetworkaccessmanager.o .obj/qnetworkaccesscache.o .obj/qnetworkaccessbackend.o .obj/qnetworkaccessdebugpipebackend.o .obj/qnetworkaccessfilebackend.o .obj/qnetworkaccesscachebackend.o .obj/qnetworkaccessftpbackend.o .obj/qnetworkcookie.o .obj/qnetworkcookiejar.o .obj/qnetworkrequest.o .obj/qnetworkreply.o .obj/qnetworkreplyimpl.o .obj/qnetworkreplydataimpl.o .obj/qnetworkreplyhttpimpl.o .obj/qnetworkreplyfileimpl.o .obj/qabstractnetworkcache.o .obj/qnetworkdiskcache.o .obj/qhttpthreaddelegate.o .obj/qhttpmultipart.o .obj/qnetworksession.o .obj/qnetworkconfigmanager.o .obj/qnetworkconfiguration.o .obj/qnetworkconfigmanager_p.o .obj/qbearerengine.o .obj/qbearerplugin.o .obj/qsharednetworksession.o .obj/qauthenticator.o .obj/qdnslookup.o .obj/qhostaddress.o .obj/qhostinfo.o .obj/qurlinfo.o .obj/qnetworkproxy.o .obj/qnetworkinterface.o .obj/qdnslookup_unix.o .obj/qhostinfo_unix.o .obj/qnetworkinterface_unix.o .obj/qnetworkproxy_generic.o .obj/qabstractsocketengine.o .obj/qhttpsocketengine.o .obj/qsocks5socketengine.o .obj/qabstractsocket.o .obj/qtcpsocket.o .obj/qudpsocket.o .obj/qtcpserver.o .obj/qlocalsocket.o .obj/qlocalserver.o .obj/qnativesocketengine.o .obj/qnativesocketengine_unix.o .obj/qlocalsocket_unix.o .obj/qlocalserver_unix.o .obj/qasn1element.o .obj/qssl.o .obj/qsslcertificate.o .obj/qsslconfiguration.o .obj/qsslcipher.o .obj/qsslellipticcurve.o .obj/qsslkey_p.o .obj/qsslerror.o .obj/qsslsocket.o .obj/qsslpresharedkeyauthenticator.o .obj/qsslcertificateextension.o .obj/qsslcertificate_openssl.o .obj/qsslcontext_openssl.o .obj/qsslellipticcurve_openssl.o .obj/qsslkey_openssl.o .obj/qsslsocket_openssl.o .obj/qsslsocket_openssl_symbols.o .obj/moc_qhttpnetworkreply_p.o .obj/moc_qspdyprotocolhandler_p.o .obj/moc_qnetworkaccesscache_p.o .obj/moc_qnetworkaccessbackend_p.o .obj/moc_qnetworkaccessdebugpipebackend_p.o .obj/moc_qnetworkaccessfilebackend_p.o .obj/moc_qnetworkaccessftpbackend_p.o .obj/moc_qnetworkcookiejar.o .obj/moc_qnetworkreply.o .obj/moc_qnetworkreplyhttpimpl_p.o .obj/moc_qabstractnetworkcache.o .obj/moc_qnetworkdiskcache.o .obj/moc_qhttpthreaddelegate_p.o .obj/moc_qhttpmultipart.o .obj/moc_qnetworkconfigmanager_p.o .obj/moc_qnetworksession_p.o .obj/moc_qbearerplugin_p.o .obj/moc_qdnslookup_p.o .obj/moc_qhostinfo_p.o .obj/moc_qabstractsocketengine_p.o .obj/moc_qhttpsocketengine_p.o .obj/moc_qsocks5socketengine_p.o .obj/moc_qtcpsocket.o .obj/moc_qudpsocket.o .obj/moc_qnativesocketengine_p.o .obj/moc_qsslsocket_openssl_p.o  -L/home/qtrob/dev/clang-3.6.2/qt-5.6.0/qtbase/lib -lQt5Core -lpthread -lz 
      /usr/bin/ld.gold: error: .obj/qftp.o: requires dynamic R_X86_64_32 reloc against 'qt_version_tag' which may overflow at runtime; recompile with -fPIC
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      Makefile:492: recipe for target '../../lib/libQt5Network.so.5.6.0' failed
      make[3]: *** [../../lib/libQt5Network.so.5.6.0] Error 1
      make[3]: Leaving directory '/home/qtrob/dev/clang-3.6.2/qt-5.6.0/qtbase/src/network'
      Makefile:190: recipe for target 'sub-network-make_first' failed
      make[2]: *** [sub-network-make_first] Error 2
      make[2]: Leaving directory '/home/qtrob/dev/clang-3.6.2/qt-5.6.0/qtbase/src'
      Makefile:45: recipe for target 'sub-src-make_first' failed
      make[1]: *** [sub-src-make_first] Error 2
      make[1]: Leaving directory '/home/qtrob/dev/clang-3.6.2/qt-5.6.0/qtbase'
      Makefile:72: recipe for target 'module-qtbase-make_first' failed
      make: *** [module-qtbase-make_first] Error 2
      

      Building the same Qt version with g++ works fine.
      Building Qt 5.5.1 with the same clang version works fine.

      If I can provide any further data to help you, just let me know.

      Attachments

        1. config.summary
          4 kB
          Robert Löhning
        2. make.log
          7 kB
          Robert Löhning

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes