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

QtQuick3D fails to build in CI when targeting WebAssembly + CMake 3.21.0 + Ninja due to command line length limit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.2.0 Beta1
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None
    • Platform/s:
      WebAssembly

      Description

      Job
      https://testresults.qt.io/coin/integration/qt/qt5/tasks/web_qt_qt5_1626704027212
      Log
      https://testresults.qt.io/coin/logview/qt/qtquick3d/9a31bcda82af3c94ec2fb3baaf0b3235485a01fb/WindowsWindows_10x86_64WindowsWebAssemblyx86_64Mingwqtci-windows-10-x86_64-52-83a968DisableTests_Sccache/2f4565a52fc2c58334a600e4e3ecebb0ec88a240/build_1626707087

      FAILED: sccache C:\Utils\emsdk\emscripten-llvm-e2.0.14\install\emscripten\em++.bat -DASSIMP_BUILD_BOOST_WORKAROUND -DASSIMP_BUILD_NO_3DS_IMPORTER -DASSIMP_BUILD_NO_3D_IMPORTER -DASSIMP_BUILD_NO_3MF_IMPORTER -DASSIMP_BUILD_NO_AC_IMPORTER -DASSIMP_BUILD_NO_AMF_IMPORTER -DASSIMP_BUILD_NO_ASE_IMPORTER -DASSIMP_BUILD_NO_ASSBIN_IMPORTER -DASSIMP_BUILD_NO_B3D_IMPORTER -DASSIMP_BUILD_NO_BLEND_IMPORTER -DASSIMP_BUILD_NO_BVH_IMPORTER -DASSIMP_BUILD_NO_C4D_IMPORTER -DASSIMP_BUILD_NO_COB_IMPORTER -DASSIMP_BUILD_NO_COMPRESSED_IFC -DASSIMP_BUILD_NO_CSM_IMPORTER -DASSIMP_BUILD_NO_DXF_IMPORTER -DASSIMP_BUILD_NO_EXPORT -DASSIMP_BUILD_NO_HMP_IMPORTER -DASSIMP_BUILD_NO_IFC_IMPORTER -DASSIMP_BUILD_NO_IRRMESH_IMPORTER -DASSIMP_BUILD_NO_IRR_IMPORTER -DASSIMP_BUILD_NO_LIMITBONEWEIGHTS_PROCESS -DASSIMP_BUILD_NO_LWO_IMPORTER -DASSIMP_BUILD_NO_LWS_IMPORTER -DASSIMP_BUILD_NO_M3D_IMPORTER -DASSIMP_BUILD_NO_MD2_IMPORTER -DASSIMP_BUILD_NO_MD3_IMPORTER -DASSIMP_BUILD_NO_MD5_IMPORTER -DASSIMP_BUILD_NO_MDC_IMPORTER -DASSIMP_BUILD_NO_MDL_IMPORTER -DASSIMP_BUILD_NO_MMD_IMPORTER -DASSIMP_BUILD_NO_MS3D_IMPORTER -DASSIMP_BUILD_NO_NDO_IMPORTER -DASSIMP_BUILD_NO_NFF_IMPORTER -DASSIMP_BUILD_NO_OFF_IMPORTER -DASSIMP_BUILD_NO_OGRE_IMPORTER -DASSIMP_BUILD_NO_OPENGEX_IMPORTER -DASSIMP_BUILD_NO_OWN_ZLIB -DASSIMP_BUILD_NO_PLY_IMPORTER -DASSIMP_BUILD_NO_Q3BSP_IMPORTER -DASSIMP_BUILD_NO_Q3D_IMPORTER -DASSIMP_BUILD_NO_RAW_IMPORTER -DASSIMP_BUILD_NO_SIB_IMPORTER -DASSIMP_BUILD_NO_SMD_IMPORTER -DASSIMP_BUILD_NO_STEP_IMPORTER -DASSIMP_BUILD_NO_TERRAGEN_IMPORTER -DASSIMP_BUILD_NO_X3D_IMPORTER -DASSIMP_BUILD_NO_XGL_IMPORTER -DASSIMP_BUILD_NO_X_IMPORTER -DNOUNCRYPT -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PLUGIN -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK3DASSETIMPORT_LIB -DQT_QUICK3DASSETUTILS_LIB -DQT_QUICK3DRUNTIMERENDER_LIB -DQT_QUICK3DUTILS_LIB -DQT_QUICK3D_LIB -DQT_QUICKTIMELINE_LIB -DQT_QUICK_LIB -DQT_SHADERTOOLS_LIB -DQT_STATICPLUGIN -DQT_ZLIB_LIB -DRAPIDJSON_HAS_STDSTRING=1 -DRAPIDJSON_NOMEMBERITERATORCLASS -DUSE_FILE32API -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -IC:/Users/qt/work/qt/qtquick3d/build/target/src/plugins/assetimporters/assimp/AssimpImporterPlugin_autogen/include -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp -IC:/Users/qt/work/qt/qtquick3d/build/target/src/plugins/assetimporters/assimp -IC:/Users/qt/work/qt/qtquick3d/build/target/include -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/.. -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/contrib/unzip -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/code -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/code/CApi -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/code/AssetLib/Collada -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/code/Common -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/code/AssetLib/FBX -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/code/Material -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/code/AssetLib/Obj -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/code/PostProcessing -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/code/AssetLib/STL -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/code/AssetLib/glTF -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/code/AssetLib/glTF2 -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/contrib/poly2tri -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/contrib/pugixml/src -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/contrib/pugixml/contrib -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/contrib/rapidjson/include -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/contrib/utf8cpp/source -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/include -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/src/include/assimp/Compiler -I/Users/qt/work/qt/qtquick3d/src/plugins/assetimporters/assimp/../../../3rdparty/assimp/unzip -IC:/Users/qt/work/install/target/include/QtCore -IC:/Users/qt/work/install/target/include/QtGui -IC:/Users/qt/work/qt/qtquick3d/build/target/src/assetimport -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DAssetImport/6.2.0 -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DAssetImport/6.2.0/QtQuick3DAssetImport -IC:/Users/qt/work/install/target/include/QtCore/6.2.0 -IC:/Users/qt/work/install/target/include/QtCore/6.2.0/QtCore -IC:/Users/qt/work/qt/qtquick3d/build/target/src/utils -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DUtils/6.2.0 -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DUtils/6.2.0/QtQuick3DUtils -IC:/Users/qt/work/install/target/include/QtGui/6.2.0 -IC:/Users/qt/work/install/target/include/QtGui/6.2.0/QtGui -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DUtils -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DAssetImport -IC:/Users/qt/work/install/target/include/QtQml -IC:/Users/qt/work/install/target/include/QtNetwork -IC:/Users/qt/work/qt/qtquick3d/build/target/src/assetutils -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DAssetUtils/6.2.0 -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DAssetUtils/6.2.0/QtQuick3DAssetUtils -IC:/Users/qt/work/qt/qtquick3d/build/target/src/runtimerender -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DRuntimeRender/6.2.0 -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DRuntimeRender/6.2.0/QtQuick3DRuntimeRender -IC:/Users/qt/work/install/target/include/QtQuick/6.2.0 -IC:/Users/qt/work/install/target/include/QtQuick/6.2.0/QtQuick -IC:/Users/qt/work/install/target/include/QtQmlModels/6.2.0 -IC:/Users/qt/work/install/target/include/QtQmlModels/6.2.0/QtQmlModels -IC:/Users/qt/work/install/target/include/QtQml/6.2.0 -IC:/Users/qt/work/install/target/include/QtQml/6.2.0/QtQml -IC:/Users/qt/work/install/target/include/QtQmlModels -IC:/Users/qt/work/install/target/include/QtQuick -IC:/Users/qt/work/install/target/include/QtOpenGL -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DRuntimeRender -IC:/Users/qt/work/install/target/include/QtShaderTools -IC:/Users/qt/work/install/target/include/QtShaderTools/6.2.0 -IC:/Users/qt/work/install/target/include/QtShaderTools/6.2.0/QtShaderTools -IC:/Users/qt/work/qt/qtquick3d/build/target/src/quick3d -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3D/6.2.0 -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3D/6.2.0/QtQuick3D -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3D -IC:/Users/qt/work/qt/qtquick3d/build/target/include/QtQuick3DAssetUtils -IC:/Users/qt/work/install/target/include/QtQuickTimeline/6.2.0 -IC:/Users/qt/work/install/target/include/QtQuickTimeline/6.2.0/QtQuickTimeline -IC:/Users/qt/work/install/target/include/QtQuickTimeline -IC:/Users/qt/work/install/target/include/QtZlib -isystem C:/Users/qt/work/install/target/include -isystem C:/Users/qt/work/install/target/mkspecs/wasm-emscripten -g -DNDEBUG -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wno-ignored-qualifiers -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated-declarations -Wno-unused-function -Wno-unused-private-field --bind -std=gnu++17 -MD -MT src/plugins/assetimporters/assimp/CMakeFiles/AssimpImporterPlugin_resources_1.dir/.rcc/qrc_assimp.cpp.o -MF src\plugins\assetimporters\assimp\CMakeFiles\AssimpImporterPlugin_resources_1.dir\.rcc\qrc_assimp.cpp.o.d -o src/plugins/assetimporters/assimp/CMakeFiles/AssimpImporterPlugin_resources_1.dir/.rcc/qrc_assimp.cpp.o -c C:/Users/qt/work/qt/qtquick3d/build/target/src/plugins/assetimporters/assimp/.rcc/qrc_assimp.cpp
      agent:2021/07/19 17:00:16 build.go:391: The command line is too long.
      

      The command line is too long.

      This seems to be related to CMake 3.21.0 using absolute file paths with Ninja.
      https://gitlab.kitware.com/cmake/cmake/-/issues/13894

      Relevant upstream issue https://gitlab.kitware.com/cmake/cmake/-/issues/18902

      We should be able to work around it by forcing usage of response files.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes