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

Qt Webengine does not compile with Visual Studio 2017

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.15.1
    • 5.15
    • WebEngine
    • None

    Description

      I don't understand why I don't find it reported by other users, but when I compile Qt with Visual Studio 2017 (brought up to date after first failed attempt without success), I get at lot of errors which all have to do with type traits.

      I configure with
      ..\configure --prefix=%CD%/qtbase -release -opensource -confirm-license -force-debug-info -separate-debug-info -qt-libjpeg -qt-libpng -qt-sqlite -nomake examples -nomake tests -no-dbus -platform win32-msvc2019 -make-tool jom -opengl desktop -no-qml-debug -skip qtconnectivity -skip qtwebview -skip qtdatavis3d -skip qtgamepad -skip qtscript -skip qt3d -skip qtdoc -skip qtactiveqt -skip qtwebglplugin -skip qtquick3d -skip qtspeech -skip qtdoc

      And when about 1000 files are missing from QtWebEngineCore, I get errors like:

      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DUSE_AURA=1 -DOFFICIAL_BUILD -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 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_MINOR_MC -DV8_INTL_SUPPORT -DV8_CONCURRENT_MARKING -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_EMBEDDED_BUILTINS -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_WIN -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -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 -Igen -I../../../../../qtwebengine/src/3rdparty/chromium -I../../../../../qtwebengine/src/3rdparty/chromium/v8 -Igen/v8 -I../../../../../qtwebengine/src/3rdparty/chromium/third_party/icu/source/common -I../../../../../qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /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 /Zi /MD /wd4245 /wd4267 /wd4324 /wd4701 /wd4702 /wd4703 /wd4709 /wd4714 /wd4715 /wd4718 /wd4723 /wd4724 /wd4800 /O2 /Ob2 /Oy- /Zc:inline /Gw /TP /wd4577 /GR- /c gen/v8/torque-generated/src/builtins/array-of-tq-csa.cc /Foobj/v8/torque_generated_initializers/array-of-tq-csa.obj /Fd"obj/v8/torque_generated_initializers_cc.pdb"
      C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\type_traits(616): error C2139: 'v8::internal::Cell': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_convertible_to'
      C:\dev\3pp\Qt\Src\release_5_15_0\qtwebengine\src\core\release\gen\v8\torque-generated/class-definitions-tq.h(77): note: see declaration of 'v8::internal::Cell'
      C:\dev\3pp\Qt\Src\qtwebengine\src\3rdparty\chromium\v8\src/codegen/tnode.h(244): note: see reference to class template instantiation 'std::is_convertible<T,v8::internal::Object>' being compiled
              with
              [
                  T=v8::internal::Cell
              ]
      

      To me it appears to be related to something like this:
      https://github.com/nodejs/node-v8/issues/157

      Compiling with Visual Studio 2019 worked without any issues.

      Attachments

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              tmartsum Thorbjørn Lund Martsum
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes