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

Linker warnings when building rcc, qmlcachegen and qmlprofiler on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.15.0 Alpha
    • 5.12.4, 5.12.6
    • Build System
    • None
    • macOS 10.14.2;
      XCode 10.1, Build version 10B61;
    • macOS
    • fcd3a20059d0c629d972ba2577694394b438a100 (qt/qtbase/5.15)

    Description

      When building Qt, LLVM linker issues warnings like this for some of the tools:

      ld: warning: direct access in function 'QHash<QString, int>::insert(QString const&, int const&)' from file '/Users/macos/QtBuild/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash<QString, int>::deleteNode2(QHashData::Node*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

      Warnings are available in the logs in the attachement. Reproduces on 5.12.4 and 5.12.6.

      Build commands:

      git clone git://code.qt.io/qt/qt5.git

      cd qt5/

      git checkout 5.12.4

      perl init-repository --module-subset=qtbase,qtmacextras,qttools,qttranslations,qtdeclarative

      cd ../QtBuild/

      ../qt5/configure -opensource -confirm-license -shared -nomake tests -nomake examples -silent -debug -platform macx-clang -opengl desktop -no-dbus -no-framework

      make

       

      Attachments

        1. rcc.log
          2 kB
        2. qmlprofiler.log
          6 kB
        3. qmlcachegen.log
          1.0 kB

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              eswcvlad eswcvlad
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes