Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtWebEngine 5.15.14 compilation issue using Visual Studio 2022

QtWebEngine 5.15.14 compilation issue using Visual Studio 2022

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 369 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Cobra91151C Offline
    Cobra91151C Offline
    Cobra91151
    wrote on last edited by
    #1

    Hello!

    I am trying to build QtWebEngine 5.15.14 using Visual Studio 2022 but I get the following error:

    FAILED: obj/third_party/perfetto/src/trace_processor/storage_minimal/trace_sorter.obj

    Output:

    [11501/33396] ninja -t msvc -e environment.x64 -- "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\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 -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DPERFETTO_IMPLEMENTATION -Igen -I../../../../qtwebengine/src/3rdparty/chromium -I../../../../qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/zlib /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 /wd4003 /Od /Ob0 /GF /Zi /MDd /TP /wd4577 /GR- /c ../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/importers/proto/track_event_parser.cc /Foobj/third_party/perfetto/src/trace_processor/storage_minimal/track_event_parser.obj /Fd"obj/third_party/perfetto/src/trace_processor/storage_minimal_cc.pdb"
    C:\QtBuild\qt-everywhere-src-5.15.14\qtwebengine\src\3rdparty\chromium\third_party\perfetto\src/trace_processor/storage/metadata.h(63): warning C4068: unknown pragma 'GCC'
    C:\QtBuild\qt-everywhere-src-5.15.14\qtwebengine\src\3rdparty\chromium\third_party\perfetto\src/trace_processor/storage/stats.h(192): warning C4068: unknown pragma 'GCC'
    C:\QtBuild\qt-everywhere-src-5.15.14\qtwebengine\src\3rdparty\chromium\third_party\perfetto\src/trace_processor/tables/macros_internal.h(143): warning C4068: unknown pragma 'GCC'
    [11502/33396] ninja -t msvc -e environment.x64 -- "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\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 -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DPERFETTO_IMPLEMENTATION -Igen -I../../../../qtwebengine/src/3rdparty/chromium -I../../../../qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/zlib /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 /wd4003 /Od /Ob0 /GF /Zi /MDd /TP /wd4577 /GR- /c ../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/trace_sorter.cc /Foobj/third_party/perfetto/src/trace_processor/storage_minimal/trace_sorter.obj /Fd"obj/third_party/perfetto/src/trace_processor/storage_minimal_cc.pdb"
    FAILED: obj/third_party/perfetto/src/trace_processor/storage_minimal/trace_sorter.obj
    ninja -t msvc -e environment.x64 -- "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\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 -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DPERFETTO_IMPLEMENTATION -Igen -I../../../../qtwebengine/src/3rdparty/chromium -I../../../../qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/zlib /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 /wd4003 /Od /Ob0 /GF /Zi /MDd /TP /wd4577 /GR- /c ../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/trace_sorter.cc /Foobj/third_party/perfetto/src/trace_processor/storage_minimal/trace_sorter.obj /Fd"obj/third_party/perfetto/src/trace_processor/storage_minimal_cc.pdb"
    C:\QtBuild\qt-everywhere-src-5.15.14\qtwebengine\src\3rdparty\chromium\third_party\perfetto\src/trace_processor/storage/metadata.h(63): warning C4068: unknown pragma 'GCC'
    C:\QtBuild\qt-everywhere-src-5.15.14\qtwebengine\src\3rdparty\chromium\third_party\perfetto\src/trace_processor/storage/stats.h(192): warning C4068: unknown pragma 'GCC'
    C:\QtBuild\qt-everywhere-src-5.15.14\qtwebengine\src\3rdparty\chromium\third_party\perfetto\src/trace_processor/tables/macros_internal.h(143): warning C4068: unknown pragma 'GCC'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): error C2672: 'swap': no matching overloaded function found
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\sstream(961): note: could be 'void std::swap(std::basic_stringstream<_Elem,_Traits,_Alloc> &,std::basic_stringstream<_Elem,_Traits,_Alloc> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::basic_stringstream<_Elem,_Traits,_Alloc> &,std::basic_stringstream<_Elem,_Traits,_Alloc> &) noexcept': could not deduce template argument for 'std::basic_stringstream<_Elem,_Traits,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\sstream(838): note: or       'void std::swap(std::basic_ostringstream<_Elem,_Traits,_Alloc> &,std::basic_ostringstream<_Elem,_Traits,_Alloc> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::basic_ostringstream<_Elem,_Traits,_Alloc> &,std::basic_ostringstream<_Elem,_Traits,_Alloc> &) noexcept': could not deduce template argument for 'std::basic_ostringstream<_Elem,_Traits,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\sstream(721): note: or       'void std::swap(std::basic_istringstream<_Elem,_Traits,_Alloc> &,std::basic_istringstream<_Elem,_Traits,_Alloc> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::basic_istringstream<_Elem,_Traits,_Alloc> &,std::basic_istringstream<_Elem,_Traits,_Alloc> &) noexcept': could not deduce template argument for 'std::basic_istringstream<_Elem,_Traits,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\sstream(604): note: or       'void std::swap(std::basic_stringbuf<_Elem,_Traits,_Alloc> &,std::basic_stringbuf<_Elem,_Traits,_Alloc> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::basic_stringbuf<_Elem,_Traits,_Alloc> &,std::basic_stringbuf<_Elem,_Traits,_Alloc> &) noexcept': could not deduce template argument for 'std::basic_stringbuf<_Elem,_Traits,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\unordered_map(894): note: or       'void std::swap(std::unordered_multimap<_Kty,_Ty,_Hasher,_Keyeq,_Alloc> &,std::unordered_multimap<_Kty,_Ty,_Hasher,_Keyeq,_Alloc> &) noexcept(<expr>)'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::unordered_multimap<_Kty,_Ty,_Hasher,_Keyeq,_Alloc> &,std::unordered_multimap<_Kty,_Ty,_Hasher,_Keyeq,_Alloc> &) noexcept(<expr>)': could not deduce template argument for 'std::unordered_multimap<_Kty,_Ty,_Hasher,_Keyeq,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\unordered_map(522): note: or       'void std::swap(std::unordered_map<_Kty,_Ty,_Hasher,_Keyeq,_Alloc> &,std::unordered_map<_Kty,_Ty,_Hasher,_Keyeq,_Alloc> &) noexcept(<expr>)'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::unordered_map<_Kty,_Ty,_Hasher,_Keyeq,_Alloc> &,std::unordered_map<_Kty,_Ty,_Hasher,_Keyeq,_Alloc> &) noexcept(<expr>)': could not deduce template argument for 'std::unordered_map<_Kty,_Ty,_Hasher,_Keyeq,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\list(1873): note: or       'void std::swap(std::list<_Ty,_Alloc> &,std::list<_Ty,_Alloc> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::list<_Ty,_Alloc> &,std::list<_Ty,_Alloc> &) noexcept': could not deduce template argument for 'std::list<_Ty,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\map(678): note: or       'void std::swap(std::multimap<_Kty,_Ty,_Pr,_Alloc> &,std::multimap<_Kty,_Ty,_Pr,_Alloc> &) noexcept(<expr>)'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::multimap<_Kty,_Ty,_Pr,_Alloc> &,std::multimap<_Kty,_Ty,_Pr,_Alloc> &) noexcept(<expr>)': could not deduce template argument for 'std::multimap<_Kty,_Ty,_Pr,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\map(441): note: or       'void std::swap(std::map<_Kty,_Ty,_Pr,_Alloc> &,std::map<_Kty,_Ty,_Pr,_Alloc> &) noexcept(<expr>)'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::map<_Kty,_Ty,_Pr,_Alloc> &,std::map<_Kty,_Ty,_Pr,_Alloc> &) noexcept(<expr>)': could not deduce template argument for 'std::map<_Kty,_Ty,_Pr,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\deque(1787): note: or       'void std::swap(std::deque<_Ty,_Alloc> &,std::deque<_Ty,_Alloc> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::deque<_Ty,_Alloc> &,std::deque<_Ty,_Alloc> &) noexcept': could not deduce template argument for 'std::deque<_Ty,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\vector(2358): note: or       'void std::swap(std::vector<_Ty,_Alloc> &,std::vector<_Ty,_Alloc> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::vector<_Ty,_Alloc> &,std::vector<_Ty,_Alloc> &) noexcept': could not deduce template argument for 'std::vector<_Ty,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\xstring(4927): note: or       'void std::swap(std::basic_string<_Elem,_Traits,_Alloc> &,std::basic_string<_Elem,_Traits,_Alloc> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::basic_string<_Elem,_Traits,_Alloc> &,std::basic_string<_Elem,_Traits,_Alloc> &) noexcept': could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\functional(1245): note: or       'void std::swap(std::function<_Fty> &,std::function<_Fty> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::function<_Fty> &,std::function<_Fty> &) noexcept': could not deduce template argument for 'std::function<_Fty> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\tuple(905): note: or       'void std::swap(std::tuple<_Types...> &,std::tuple<_Types...> &) noexcept(<expr>)'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::tuple<_Types...> &,std::tuple<_Types...> &) noexcept(<expr>)': could not deduce template argument for 'std::tuple<_Types...> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\memory(3626): note: or       'void std::swap(std::unique_ptr<_Ty,_Dx> &,std::unique_ptr<_Ty,_Dx> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::unique_ptr<_Ty,_Dx> &,std::unique_ptr<_Ty,_Dx> &) noexcept': could not deduce template argument for 'std::unique_ptr<_Ty,_Dx> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\memory(3246): note: or       'void std::swap(std::weak_ptr<_Ty> &,std::weak_ptr<_Ty> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::weak_ptr<_Ty> &,std::weak_ptr<_Ty> &) noexcept': could not deduce template argument for 'std::weak_ptr<_Ty> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\memory(1973): note: or       'void std::swap(std::shared_ptr<_Ty> &,std::shared_ptr<_Ty> &) noexcept'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::shared_ptr<_Ty> &,std::shared_ptr<_Ty> &) noexcept': could not deduce template argument for 'std::shared_ptr<_Ty> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\array(772): note: or       'void std::swap(std::array<_Ty,_Size> &,std::array<_Ty,_Size> &) noexcept(<expr>)'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::array<_Ty,_Size> &,std::array<_Ty,_Size> &) noexcept(<expr>)': could not deduce template argument for 'std::array<_Ty,_Size> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\utility(472): note: or       'void std::swap(std::pair<_Ty1,_Ty2> &,std::pair<_Ty1,_Ty2> &) noexcept(<expr>)'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::pair<_Ty1,_Ty2> &,std::pair<_Ty1,_Ty2> &) noexcept(<expr>)': could not deduce template argument for 'std::pair<_Ty1,_Ty2> &' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\type_traits(2112): note: or       'void std::swap(_Ty (&)[_Size],_Ty (&)[_Size]) noexcept(<expr>)'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(_Ty (&)[_Size],_Ty (&)[_Size]) noexcept(<expr>)': could not deduce template argument for '_Ty (&)[_Size]' from 'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\type_traits(2109): note: or       'void std::swap(_Ty &,_Ty &) noexcept(<expr>)'
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(_Ty &,_Ty &) noexcept(<expr>)': template parameter '_Ty' is ambiguous
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: could be 'const T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: or       'T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(_Ty &,_Ty &) noexcept(<expr>)': could not deduce template argument for '_Ty &' from 'const T'
            with
            [
                T=perfetto::trace_processor::TimestampedTracePiece
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: the template instantiation context (the oldest one first) is
    ../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/trace_sorter.cc(51): note: see reference to function template instantiation 'void std::sort<_FwdIt>(const _RanIt,const _RanIt)' being compiled
            with
            [
                _FwdIt=perfetto::base::CircularQueue<perfetto::trace_processor::TimestampedTracePiece>::Iterator,
                _RanIt=perfetto::base::CircularQueue<perfetto::trace_processor::TimestampedTracePiece>::Iterator
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8170): note: see reference to function template instantiation 'void std::sort<_RanIt,std::less<void>>(const _RanIt,const _RanIt,_Pr)' being compiled
            with
            [
                _RanIt=perfetto::base::CircularQueue<perfetto::trace_processor::TimestampedTracePiece>::Iterator,
                _Pr=std::less<void>
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8165): note: see reference to function template instantiation 'void std::_Sort_unchecked<_FwdIt,_Fn>(_RanIt,_RanIt,__int64,_Pr)' being compiled
            with
            [
                _FwdIt=perfetto::base::CircularQueue<perfetto::trace_processor::TimestampedTracePiece>::Iterator,
                _Fn=std::less<void>,
                _RanIt=perfetto::base::CircularQueue<perfetto::trace_processor::TimestampedTracePiece>::Iterator,
                _Pr=std::less<void>
            ]
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8146): note: see reference to function template instantiation 'std::pair<_RanIt,_RanIt> std::_Partition_by_median_guess_unchecked<_RanIt,_Pr>(_RanIt,_RanIt,_Pr)' being compiled
            with
            [
                _RanIt=perfetto::base::CircularQueue<perfetto::trace_processor::TimestampedTracePiece>::Iterator,
                _Pr=std::less<void>
            ]
    ninja: build stopped: subcommand failed.
    jom: C:\QtBuild\qt-everywhere-src-5.15.14\qtBuild\src\core\Makefile.gn_run.Debug [run_ninja] Error 1
    jom: C:\QtBuild\qt-everywhere-src-5.15.14\qtBuild\src\core\Makefile.gn_run [debug] Error 2
    jom: C:\QtBuild\qt-everywhere-src-5.15.14\qtBuild\src\core\Makefile [sub-gn_run-pro-make_first] Error 2
    jom: C:\QtBuild\qt-everywhere-src-5.15.14\qtBuild\src\Makefile [sub-core-make_first] Error 2
    jom: C:\QtBuild\qt-everywhere-src-5.15.14\qtBuild\Makefile [sub-src-make_first] Error 2
    
    C:\QtBuild\qt-everywhere-src-5.15.14\qtBuild>
    

    This issue is only related to Visual Studio 2022 compiler. Is there any patch available to fix this error? Thanks in advance.

    1 Reply Last reply
    0
    • Cobra91151C Offline
      Cobra91151C Offline
      Cobra91151
      wrote on last edited by Cobra91151
      #2

      Hello!

      I have added this patch: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/505412
      And successfully built QtWebEngine 5.15.14 for Visual Studio 2022. This issue is resolved. Thank you.

      1 Reply Last reply
      0
      • Cobra91151C Cobra91151 has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved