Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt 5.15 failed to compile qtqml or qtdeclarative



  • My recently checkout vanilla git 5.15 branch is failed at qtdeclarative compilation with the following error :

    YarrCanonicalizeUCS2.cpp
    YarrCanonicalizeUnicode.cpp
    YarrInterpreter.cpp
    YarrJIT.cpp
    YarrPattern.cpp
    YarrSyntaxChecker.cpp
    C:\Q\qt-5.15\qtdeclarative\src\3rdparty\masm\yarr\YarrPattern.cpp(41): fatal error C1083: Cannot open include file: 'RegExpJitTables.h': No such file or directory
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    

    While at beginning of configure, it managed to find my python 2.7 amd64

    Checking for python... 
    test config.qtdeclarative_qml.tests.qml-python gave result C:/Python27amd64/python.exe
    

    manually checking out the python is working fine :

    C:\Q>where python
    C:\Python27amd64\python.exe
    

    Base on my search, it's python things problems, but invoking the script which is used to generate the "RegExpJitTables.h" is working fine :

    C:\Q\qt-5.15\qtdeclarative\src\3rdparty\masm\yarr>python create_regex_tables
    static const char _spacesData[65536] = {
    0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    ...
    

    Probably related ? :

    QtQml: created version header
    QtQml: created master header
    QtQml: created headers.pri file
    WARNING: Failure to find: qt5qmld_metatypes.json
    WARNING: Failure to find: C:/Q/qt-5.15/qtdeclarative/src/3rdparty/masm/assembler/*.h
    WARNING: Failure to find: C:/Q/qt-5.15/qtdeclarative/src/3rdparty/masm/wtf/*.h
    WARNING: Failure to find: C:/Q/2019_64/qtdeclarative/src/qml/qt5qmld_metatypes.json
    WARNING: Failure to find: qt5qml_metatypes.json
    WARNING: Failure to find: C:/Q/qt-5.15/qtdeclarative/src/3rdparty/masm/assembler/*.h
    WARNING: Failure to find: C:/Q/qt-5.15/qtdeclarative/src/3rdparty/masm/wtf/*.h
    WARNING: Failure to find: C:/Q/2019_64/qtdeclarative/src/qml/qt5qml_metatypes.json
    

    My configure line :

    CALL %QT_SOURCE%\configure -confirm-license -prefix %QT_DIST% -mp -debug-and-release -icu -shared -system-sqlite -sql-odbc -sql-psql -sql-mysql -system-zlib -system-libjpeg -system-libpng -gif -ico -v -qt-pcre -qt-freetype -nomake tests -opensource -openssl-runtime OPENSSL_LIBS_DEBUG="C:\Users\nameless\Documents\Works\Deps\x64\VS2019\OpenSSL\1.1.1\Shared\Debug\lib\libssl.lib C:\Users\nameless\Documents\Works\Deps\x64\VS2019\OpenSSL\1.1.1\Shared\Debug\lib\libcrypto.lib" OPENSSL_LIBS_RELEASE="C:\Users\nameless\Documents\Works\Deps\x64\VS2019\OpenSSL\1.1.1\Shared\Release\lib\libssl.lib C:\Users\nameless\Documents\Works\Deps\x64\VS2019\OpenSSL\1.1.1\Shared\Release\lib\libcrypto.lib" -platform win32-msvc
    

    Platform :

    Windows 10 x64 Enterprise 2004
    Visual Studio 2019 x64 16.6.0
    


  • reverting the following commit, fixed it for me https://code.qt.io/cgit/qt/qtdeclarative.git/commit/src/3rdparty/masm?h=5.15&id=1c6a70e1880a8fe0f3d8da4932c4f3533693219c .
    but getting :

    [25276/28308] ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DUSE_AURA=1 -DTOOLKIT_QT -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_ -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_RS2 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DBLINK_CORE_IMPLEMENTATION=1 -DWEBP_EXTERN=extern -DUSE_EGL -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=wchar_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_WIN -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY "-DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\"" -DSK_GL -DSK_HAS_JPEG_LIBRARY -DSK_USE_LIBGIFCODEC -DSK_SUPPORT_GPU=1 "-DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\"" -DGR_GL_FUNCTION_TYPE=__stdcall -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DSUPPORT_WEBGL2_COMPUTE_CONTEXT=1 -DWTF_USE_WEBAUDIO_PFFFT=1 -DUSE_LIBJPEG_TURBO=1 -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DLIBXSLT_STATIC -Igen -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libyuv/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/generated -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libwebp/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/wtl/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/khronos -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/gpu -Igen/third_party/dawn/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/dawn/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/ced/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/skia -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libgifcodec -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/src/common/third_party/base -Igen/angle -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libwebm/source -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase/src/include -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libjpeg_turbo -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/iccjpeg -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libpng -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/zlib -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/ots/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxml/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxml/win32/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxslt/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/snappy/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/snappy/win32 /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /wd4117 /D__DATE__= /D__TIME__= /D__TIMESTAMP__= /W4 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /MDd /wd4305 /wd4324 /wd4714 /wd4800 /wd4996 /O1 /wd4101 /wd4805 /wd4267 /wd4344 -DLIBXML_STATIC= /TP /wd4577 /GR- /c ../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/core/page/print_context.cc /Foobj/third_party/blink/renderer/core/page/page/print_context.obj /Fd"obj/third_party/blink/renderer/core/page/page_cc.pdb"
    FAILED: obj/third_party/blink/renderer/core/page/page/print_context.obj 
    ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DUSE_AURA=1 -DTOOLKIT_QT -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_ -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_RS2 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DBLINK_CORE_IMPLEMENTATION=1 -DWEBP_EXTERN=extern -DUSE_EGL -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=wchar_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_WIN -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY "-DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\"" -DSK_GL -DSK_HAS_JPEG_LIBRARY -DSK_USE_LIBGIFCODEC -DSK_SUPPORT_GPU=1 "-DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\"" -DGR_GL_FUNCTION_TYPE=__stdcall -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DSUPPORT_WEBGL2_COMPUTE_CONTEXT=1 -DWTF_USE_WEBAUDIO_PFFFT=1 -DUSE_LIBJPEG_TURBO=1 -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DLIBXSLT_STATIC -Igen -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libyuv/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/generated -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libwebp/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/wtl/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/khronos -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/gpu -Igen/third_party/dawn/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/dawn/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/ced/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/skia -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libgifcodec -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/src/common/third_party/base -Igen/angle -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libwebm/source -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase/src/include -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libjpeg_turbo -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/iccjpeg -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libpng -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/zlib -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/ots/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxml/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxml/win32/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxslt/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/snappy/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/snappy/win32 /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /wd4117 /D__DATE__= /D__TIME__= /D__TIMESTAMP__= /W4 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /MDd /wd4305 /wd4324 /wd4714 /wd4800 /wd4996 /O1 /wd4101 /wd4805 /wd4267 /wd4344 -DLIBXML_STATIC= /TP /wd4577 /GR- /c ../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/core/page/print_context.cc /Foobj/third_party/blink/renderer/core/page/page/print_context.obj /Fd"obj/third_party/blink/renderer/core/page/page_cc.pdb"
    C:\Q\qt-5.15\qtwebengine\src\3rdparty\chromium\base\memory\scoped_refptr.h(207) : fatal error C1001: Internal compiler error.
    (compiler file 'd:\agent\_work\3\s\src\vctools\Compiler\Utc\src\p2\main.c', line 181)
     To work around this problem, try simplifying or changing the program near the locations listed above.
    If possible please provide a repro here: https://developercommunity.visualstudio.com 
    Please choose the Technical Support command on the Visual C++ 
     Help menu, or open the Technical Support help file for more information
      cl!scalable_free()+0x1b7
      cl!scalable_free()+0x1b7
    


  • I'm also having this problem compiling static on Win10 x64, MSVC2017.

    Config line:
    configure -static -debug-and-release -platform win32-msvc2017 -opengl desktop -openssl-linked -opensource -confirm-license -nomake examples -nomake tools -nomake tests -I C:\Qt\openssl-1.1.1d-msvc2017-x64-static\include -L C:\Qt\openssl-1.1.1d-msvc2017-x64-static\lib -L C:\Qt\openssl-1.1.1d-msvc2017-x64-static\bin -no-warnings-are-errors -prefix C:\Qt\qt-5.15.0-msvc2017-x64-static



  • @ringlery
    QtWebengine cannot built statically, please read https://wiki.qt.io/QtWebEngine/How_to_Try

    And what are the errors?

    If it's the Cannot open include file: 'RegExpJitTables.h', here is the workaround :

    #on ..\qtdeclarative\src\3rdparty\masm\masm.pri
    #replace line 61 with
    win32: udis86.commands = call $$QMAKE_PYTHON $$PWD/disassembler/udis86/itab.py ${QMAKE_FILE_IN}
    else: udis86.commands = $$QMAKE_PYTHON $$PWD/disassembler/udis86/itab.py ${QMAKE_FILE_IN}
    #replace line 114 with
    win32: retgen.commands = call $$QMAKE_PYTHON $$retgen.script > ${QMAKE_FILE_OUT}
    else: retgen.commands = $$QMAKE_PYTHON $$retgen.script > ${QMAKE_FILE_OUT}
    

    And please make sure python2 or python3 is your ENV PATH before compilation



  • @echelon Thanks for the info. I modified the masm.pri file as you suggested and the build progressed further. As you noted, though, it choked on QtWebengine. I don't need it, but couldn't find a way to leave it out of the build. Any additional suggestions?


  • Lifetime Qt Champion

    Either move the folder out of the sources or add a --skip argument with it.



  • @ringlery
    Probably you have met the famous 255 max windows path limitation, either edit your local group policy to enable long path and use ninja, or move the source and compilation into for example "c:\Q"



  • @echelon said in Qt 5.15 failed to compile qtqml or qtdeclarative:

    reverting the following commit, fixed it for me https://code.qt.io/cgit/qt/qtdeclarative.git/commit/src/3rdparty/masm?h=5.15&id=1c6a70e1880a8fe0f3d8da4932c4f3533693219c .
    but getting :

    [25276/28308] ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DUSE_AURA=1 -DTOOLKIT_QT -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_ -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_RS2 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DBLINK_CORE_IMPLEMENTATION=1 -DWEBP_EXTERN=extern -DUSE_EGL -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=wchar_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_WIN -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY "-DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\"" -DSK_GL -DSK_HAS_JPEG_LIBRARY -DSK_USE_LIBGIFCODEC -DSK_SUPPORT_GPU=1 "-DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\"" -DGR_GL_FUNCTION_TYPE=__stdcall -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DSUPPORT_WEBGL2_COMPUTE_CONTEXT=1 -DWTF_USE_WEBAUDIO_PFFFT=1 -DUSE_LIBJPEG_TURBO=1 -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DLIBXSLT_STATIC -Igen -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libyuv/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/generated -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libwebp/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/wtl/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/khronos -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/gpu -Igen/third_party/dawn/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/dawn/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/ced/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/skia -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libgifcodec -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/src/common/third_party/base -Igen/angle -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libwebm/source -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase/src/include -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libjpeg_turbo -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/iccjpeg -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libpng -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/zlib -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/ots/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxml/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxml/win32/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxslt/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/snappy/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/snappy/win32 /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /wd4117 /D__DATE__= /D__TIME__= /D__TIMESTAMP__= /W4 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /MDd /wd4305 /wd4324 /wd4714 /wd4800 /wd4996 /O1 /wd4101 /wd4805 /wd4267 /wd4344 -DLIBXML_STATIC= /TP /wd4577 /GR- /c ../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/core/page/print_context.cc /Foobj/third_party/blink/renderer/core/page/page/print_context.obj /Fd"obj/third_party/blink/renderer/core/page/page_cc.pdb"
    FAILED: obj/third_party/blink/renderer/core/page/page/print_context.obj 
    ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DUSE_AURA=1 -DTOOLKIT_QT -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_ -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_RS2 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DBLINK_CORE_IMPLEMENTATION=1 -DWEBP_EXTERN=extern -DUSE_EGL -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=wchar_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_WIN -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY "-DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\"" -DSK_GL -DSK_HAS_JPEG_LIBRARY -DSK_USE_LIBGIFCODEC -DSK_SUPPORT_GPU=1 "-DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\"" -DGR_GL_FUNCTION_TYPE=__stdcall -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DSUPPORT_WEBGL2_COMPUTE_CONTEXT=1 -DWTF_USE_WEBAUDIO_PFFFT=1 -DUSE_LIBJPEG_TURBO=1 -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DLIBXSLT_STATIC -Igen -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libyuv/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/generated -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libwebp/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/wtl/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/khronos -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/gpu -Igen/third_party/dawn/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/dawn/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/ced/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/skia -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libgifcodec -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/src/common/third_party/base -Igen/angle -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/angle/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libwebm/source -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/leveldatabase/src/include -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libjpeg_turbo -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/iccjpeg -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libpng -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/zlib -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/ots/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxml/src/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxml/win32/include -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/libxslt/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/snappy/src -I../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/snappy/win32 /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /wd4117 /D__DATE__= /D__TIME__= /D__TIMESTAMP__= /W4 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /MDd /wd4305 /wd4324 /wd4714 /wd4800 /wd4996 /O1 /wd4101 /wd4805 /wd4267 /wd4344 -DLIBXML_STATIC= /TP /wd4577 /GR- /c ../../../../../qt-5.15/qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/core/page/print_context.cc /Foobj/third_party/blink/renderer/core/page/page/print_context.obj /Fd"obj/third_party/blink/renderer/core/page/page_cc.pdb"
    C:\Q\qt-5.15\qtwebengine\src\3rdparty\chromium\base\memory\scoped_refptr.h(207) : fatal error C1001: Internal compiler error.
    (compiler file 'd:\agent\_work\3\s\src\vctools\Compiler\Utc\src\p2\main.c', line 181)
     To work around this problem, try simplifying or changing the program near the locations listed above.
    If possible please provide a repro here: https://developercommunity.visualstudio.com 
    Please choose the Technical Support command on the Visual C++ 
     Help menu, or open the Technical Support help file for more information
      cl!scalable_free()+0x1b7
      cl!scalable_free()+0x1b7
    

    Compiler crashes can be 'mitigated' by enable precompiled header for the qtwebengine. Was disabled and edited by me to disable precompiled header.


Log in to reply