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

Invalid conversion error in qtdeclarative

XMLWordPrintable

    • 960bebd61f70c39e2fbce9f67b889cd64f48cea7

      Trying to build 5.9.2 snapshot content in yocto 2.2.2 fails in qtdeclarative compilation with:

       compiling /home/migronof/git_repos/dev/yocto/morty/build-nitrogen6x/tmp/work/x86_64-linux/qtdeclarative-native/5.9.2+gitAUTOINC+bfab1db381-r0/git/src/qml/qml/qqmlxmlhttprequest.cpp
      /home/migronof/git_repos/dev/yocto/morty/build-nitrogen6x/tmp/work/x86_64-linux/qtdeclarative-native/5.9.2+gitAUTOINC+bfab1db381-r0/git/src/qml/qml/qqmltypeloader.cpp: In member function ‘void QQmlDataBlob::notifyComplete(QQmlDataBlob*)’:
      /home/migronof/git_repos/dev/yocto/morty/build-nitrogen6x/tmp/work/x86_64-linux/qtdeclarative-native/5.9.2+gitAUTOINC+bfab1db381-r0/git/src/qml/qml/qqmltypeloader.cpp:703:54: error: invalid conversion from ‘QQmlProfiler*’ to ‘quintptr {aka long long unsigned int}’ [-fpermissive]
           QQmlCompilingProfiler prof(typeLoader()->profiler(), blob);
                                                            ^
      In file included from ../../include/QtQml/5.9.2/QtQml/private/qqmlprofiler_p.h:1:0,
                       from ../../include/QtQml/5.9.2/QtQml/private/../../../../../../git/src/qml/qml/qqmlobjectcreator_p.h:59,
                       from ../../include/QtQml/5.9.2/QtQml/private/qqmlobjectcreator_p.h:1,
                       from ../../include/QtQml/5.9.2/QtQml/private/../../../../../../git/src/qml/qml/qqmlcomponent_p.h:62,
                       from ../../include/QtQml/5.9.2/QtQml/private/qqmlcomponent_p.h:1,
                       from /home/migronof/git_repos/dev/yocto/morty/build-nitrogen6x/tmp/work/x86_64-linux/qtdeclarative-native/5.9.2+gitAUTOINC+bfab1db381-r0/git/src/qml/qml/qqmltypeloader.cpp:47:
      ../../include/QtQml/5.9.2/QtQml/private/../../../../../../git/src/qml/debugger/qqmlprofiler_p.h:86:5: note:   initializing argument 1 of ‘QQmlCompilingProfiler::QQmlCompilingProfiler(quintptr, QQmlDataBlob*)’
           QQmlCompilingProfiler(quintptr, QQmlDataBlob *) {}
           ^

       
      Looks like this could be caused by the commit:

      cf3b1bbd9ee048a28b58a55d76504b1c01e34811

       

      The same(ish) qqmltypeloader code was building fine after a patch (which is merged in here) in 5.6.3 with yocto 1.8.

      Yocto 2.2 may be more restrictive in compiler settings?

        For Gerrit Dashboard: QTBUG-63392
        # Subject Branch Project Status CR V

            ulherman Ulf Hermann
            gronoff Mikko Gronoff
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes