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

[REG Qt5.8 -> Qt5.9] using quickcompiler in release (and debug) build fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.0 RC
    • 5.9.0 Beta 1
    • Build tools: Other
    • Windows, linux (macOS not tested)

    Description

      Online staging content on 6.4.2017

      Install e.g. msvc2013 x64 (fails also at least with gcc_64 on linux) binaries and Qt quickcompiler, launch creator and open project qt3d/wave and compile in debug mode using CONFIG += qtquickcompiler. Build succeeds and application launches. Change to release build and compile. Build fails on windows with following error:

      12:23:52: Running steps for project wave...
      12:23:52: Configuration unchanged, skipping qmake step.
      12:23:52: Starting: "E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\Tools\QtCreator\bin\jom.exe" 
      	E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\Tools\QtCreator\bin\jom.exe -f Makefile.Release
      	E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\5.9\msvc2013_64\bin\qtquickcompiler.exe --resource=E:/Qt/Qt5.9.0_tc_0604_ent_msvc2013_x64/Examples/Qt-5.9/qt3d/wave/wave.qrc ..\wave\BackgroundEffect.qml .qtquickcompiler\BackgroundEffect_qml.cpp
      jom: E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\Examples\Qt-5.9\qt3d\build-wave-Desktop_Qt_5_9_0_MSVC2013_64bit-Release\Makefile.Release [.qtquickcompiler\BackgroundEffect_qml.cpp] Error 2
      	E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\5.9\msvc2013_64\bin\qtquickcompiler.exe --resource=E:/Qt/Qt5.9.0_tc_0604_ent_msvc2013_x64/Examples/Qt-5.9/qt3d/wave/wave.qrc ..\wave\BasicCamera.qml .qtquickcompiler\BasicCamera_qml.cpp
      	E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\5.9\msvc2013_64\bin\qtquickcompiler.exe --resource=E:/Qt/Qt5.9.0_tc_0604_ent_msvc2013_x64/Examples/Qt-5.9/qt3d/wave/wave.qrc ..\wave\WaveMaterial.qml .qtquickcompiler\WaveMaterial_qml.cpp
      	E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\5.9\msvc2013_64\bin\qtquickcompiler.exe --resource=E:/Qt/Qt5.9.0_tc_0604_ent_msvc2013_x64/Examples/Qt-5.9/qt3d/wave/wave.qrc ..\wave\WaveEffect.qml .qtquickcompiler\WaveEffect_qml.cpp
      	E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\5.9\msvc2013_64\bin\qtquickcompiler.exe --resource=E:/Qt/Qt5.9.0_tc_0604_ent_msvc2013_x64/Examples/Qt-5.9/qt3d/wave/wave.qrc ..\wave\Wave.qml .qtquickcompiler\Wave_qml.cpp
      	E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\5.9\msvc2013_64\bin\qtquickcompiler.exe --resource=E:/Qt/Qt5.9.0_tc_0604_ent_msvc2013_x64/Examples/Qt-5.9/qt3d/wave/wave.qrc ..\wave\Background.qml .qtquickcompiler\Background_qml.cpp
      	E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\5.9\msvc2013_64\bin\qtquickcompiler.exe --resource=E:/Qt/Qt5.9.0_tc_0604_ent_msvc2013_x64/Examples/Qt-5.9/qt3d/wave/wave.qrc ..\wave\WaveForwardRenderer.qml .qtquickcompiler\WaveForwardRenderer_qml.cpp
      jom: E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\Examples\Qt-5.9\qt3d\build-wave-Desktop_Qt_5_9_0_MSVC2013_64bit-Release\Makefile.Release [.qtquickcompiler\BasicCamera_qml.cpp] Error 2
      jom: E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\Examples\Qt-5.9\qt3d\build-wave-Desktop_Qt_5_9_0_MSVC2013_64bit-Release\Makefile.Release [.qtquickcompiler\WaveMaterial_qml.cpp] Error 2
      jom: E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\Examples\Qt-5.9\qt3d\build-wave-Desktop_Qt_5_9_0_MSVC2013_64bit-Release\Makefile.Release [.qtquickcompiler\WaveEffect_qml.cpp] Error 2
      jom: E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\Examples\Qt-5.9\qt3d\build-wave-Desktop_Qt_5_9_0_MSVC2013_64bit-Release\Makefile.Release [.qtquickcompiler\Wave_qml.cpp] Error 2
      jom: E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\Examples\Qt-5.9\qt3d\build-wave-Desktop_Qt_5_9_0_MSVC2013_64bit-Release\Makefile.Release [.qtquickcompiler\Background_qml.cpp] Error 2
      jom: E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\Examples\Qt-5.9\qt3d\build-wave-Desktop_Qt_5_9_0_MSVC2013_64bit-Release\Makefile.Release [.qtquickcompiler\WaveForwardRenderer_qml.cpp] Error 2
      jom: E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\Examples\Qt-5.9\qt3d\build-wave-Desktop_Qt_5_9_0_MSVC2013_64bit-Release\Makefile [release] Error 2
      12:23:52: The process "E:\Qt\Qt5.9.0_tc_0604_ent_msvc2013_x64\Tools\QtCreator\bin\jom.exe" exited with code 2.
      Error while building/deploying project wave (kit: Desktop Qt 5.9.0 MSVC2013 64bit)
      When executing step "Make"
      

      On linux both release and debug build fails (debug build with samegame):

       temps[2] = static_cast<QV4::CallContext::Data*>(engine->currentContext->d()->outer.ptr)->locals[0];
       ^~~
      .qtquickcompiler/content_samegame_js.cpp: In function \xe2\x80\x98QV4::ReturnedValue {anonymous}::jsfunction_20(QV4::ExecutionEngine*)\xe2\x80\x99:
      .qtquickcompiler/content_samegame_js.cpp:5486:88: error: request for member \xe2\x80\x98ptr\xe2\x80\x99 in \xe2\x80\x98engine->QV4::ExecutionEngine::currentContext->QV4::ExecutionContext::d()->QV4::Heap::ExecutionContext::<anonymous>.QV4::Heap::ExecutionContextData::outer\xe2\x80\x99, which is of pointer type \xe2\x80\x98QV4::Heap::ExecutionContext*\xe2\x80\x99 (maybe you meant to use \xe2\x80\x98->\xe2\x80\x99 ?)
       temps[1] = static_cast<QV4::CallContext::Data*>(engine->currentContext->d()->outer.ptr)->locals[1];
       ^~~
      .qtquickcompiler/content_samegame_js.cpp:5487:88: error: request for member \xe2\x80\x98ptr\xe2\x80\x99 in \xe2\x80\x98engine->QV4::ExecutionEngine::currentContext->QV4::ExecutionContext::d()->QV4::Heap::ExecutionContext::<anonymous>.QV4::Heap::ExecutionContextData::outer\xe2\x80\x99, which is of pointer type \xe2\x80\x98QV4::Heap::ExecutionContext*\xe2\x80\x99 (maybe you meant to use \xe2\x80\x98->\xe2\x80\x99 ?)
       temps[2] = static_cast<QV4::CallContext::Data*>(engine->currentContext->d()->outer.ptr)->locals[0];
       ^~~
      "Makefile:1081: recipe for target 'content_samegame_js.o' failed"
      make: *** [content_samegame_js.o] Error 1
      

      Attachments

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes