skyrim-multiplayer / skymp

Multiplayer Mod & TypeScript SDK for Skyrim Special Edition
Other
218 stars 75 forks source link

[Error] Building Build/Chakra.Core.sln for Release #1463

Closed VitaliyMubarakov closed 1 year ago

VitaliyMubarakov commented 1 year ago

System

Error

-- Running vcpkg install
Detecting compiler hash for triplet x64-windows...
Detecting compiler hash for triplet x64-windows-sp...
The following packages will be built and installed:
  * boost-assert[core]:x64-windows-sp -> 1.82.0#2
  * boost-config[core]:x64-windows-sp -> 1.82.0#2
  * boost-static-assert[core]:x64-windows-sp -> 1.82.0#2
  * boost-stl-interfaces[core]:x64-windows-sp -> 1.82.0#2
  * boost-type-traits[core]:x64-windows-sp -> 1.82.0#2
  * boost-uninstall[core]:x64-windows-sp -> 1.82.0#2
  * boost-vcpkg-helpers[core]:x64-windows-sp -> 1.82.0#2
  * brotli[core]:x64-windows-sp -> 1.0.9#5
    chakracore[core]:x64-windows-sp -> 2022-11-09#3
    cmakerc[core]:x64-windows-sp -> 2022-09-08
    commonlibae[core]:x64-windows-sp -> 1 -- F:/Files/Work/SkyMpServers/JustSkyMp/skymp/overlay_ports\commonlibae
    cpp-httplib[core]:x64-windows-sp -> 0.12.3
  * directxmath[core]:x64-windows-sp -> 2022-12-12
    directxtk[core]:x64-windows-sp -> 2023-04-28
  * fmt[core]:x64-windows-sp -> 10.0.0
    frida-gum[core]:x64-windows-sp -> 16.0.19 -- F:/Files/Work/SkyMpServers/JustSkyMp/skymp/overlay_ports\frida-gum
  * libbson[core]:x64-windows-sp -> 1.22.2
    makeid[core]:x64-windows-sp -> 1.0.2
    mhook[core]:x64-windows-sp -> 2.5.1#3
  * mongo-c-driver[core]:x64-windows-sp -> 1.22.2
    mongo-cxx-driver[core]:x64-windows-sp -> 3.7.0
    nlohmann-json[core]:x64-windows-sp -> 3.11.2
    node-addon-api[core]:x64-windows-sp -> 6.1.0
  * node-api-headers[core]:x64-windows-sp -> 1.0.0#1
  * openssl[core]:x64-windows-sp -> 3.1.1
    robin-hood-hashing[core]:x64-windows-sp -> 3.11.5
  * rsm-binary-io[core]:x64-windows-sp -> 2.0.5
    simdjson[core,deprecated,exceptions,threads,utf8-validation]:x64-windows-sp -> 3.1.8
    simpleini[core]:x64-windows-sp -> 4.19
    slikenet[core]:x64-windows-sp -> 2021-06-07#2
    sparsepp[core]:x64-windows-sp -> 1.22#4
    spdlog[core]:x64-windows-sp -> 1.11.0#1
  * vcpkg-cmake-get-vars[core]:x64-windows -> 2023-03-02
    zlib[core]:x64-windows-sp -> 1.2.13
Additional packages (*) will be modified to complete this operation.
Restored 0 package(s) from C:\Users\russi\AppData\Local\vcpkg\archives in 4.57 ms. Use --debug to see more details.
Installing 1/34 chakracore:x64-windows-sp...
Building chakracore[core]:x64-windows-sp...
-- [OVERLAY] Loading triplet configuration from: F:\Files\Work\SkyMpServers\JustSkyMp\skymp\overlay_triplets\x64-windows-sp.cmake
-- Using cached Microsoft-ChakraCore-fd6908097f758ef65bd83680cf413313ad36c98d.tar.gz.
-- Extracting source F:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/downloads/Microsoft-ChakraCore-fd6908097f758ef65bd83680cf413313ad36c98d.tar.gz
-- Applying patch add-missing-reference.patch
-- Using source at F:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/chakracore/src/13ad36c98d-a3c29b6048.clean
-- Building Build/Chakra.Core.sln for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: msbuild F:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/chakracore/x64-windows-sp-rel/x64-windows-sp/Build/Chakra.Core.sln /p:Configuration=Release /p:CustomBeforeMicrosoftCommonTargets=F:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/ports/chakracore/no-warning-as-error.props /p:RuntimeLib=static_library /t:Rebuild /p:Platform=x64 /p:PlatformToolset=v143 /p:VCPkgLocalAppDataDisabled=true /p:UseIntelMKL=No /p:WindowsTargetPlatformVersion=10.0.20348.0 /p:VcpkgTriplet=x64-windows-sp /p:VcpkgInstalledDir=F:/Files/Work/SkyMpServers/JustSkyMp/skymp/build/vcpkg_installed /p:VcpkgManifestInstall=false /p:UseMultiToolTask=true /p:MultiProcMaxCount=5 /p:EnforceProcessCountAcrossBuilds=true /m:5
    Working Directory: F:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/chakracore/x64-windows-sp-rel/x64-windows-sp
    Error code: 1
    See logs for more information:
      F:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\chakracore\build-x64-windows-sp-rel-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_install_msbuild.cmake:79 (vcpkg_execute_required_process)
  ports/chakracore/portfile.cmake:22 (vcpkg_install_msbuild)
  scripts/ports.cmake:147 (include)

error: building chakracore:x64-windows-sp failed with: BUILD_FAILED
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+chakracore
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?title=[chakracore]+Build+error&body=Copy+issue+body+from+F%3A%2FFiles%2FWork%2FSkyMpServers%2FJustSkyMp%2Fskymp%2Fbuild%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md

-- Running vcpkg install - failed
CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:893 (message):
  vcpkg install failed.  See logs for more information:
  F:\Files\Work\SkyMpServers\JustSkyMp\skymp\build\vcpkg-manifest-install.log
Call Stack (most recent call first):
  C:/Program Files/cmake-3.22.1-windows-x86_64/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:124 (include)
  CMakeLists.txt:56 (project)

-- Configuring incomplete, errors occurred!

When i tried to build clear chakra

image

VitaliyMubarakov commented 1 year ago

After manipulation with Visual Studio Installer i got new error

error: building directxtk:x64-windows-sp failed with: BUILD_FAILED

Full

[0/42] cmd.exe /C "cd /D F:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Src\Shaders && F:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe -E env CompileShadersOutput="F:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/Shaders/Compiled" CompileShaders.cmd > F:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/Shaders/Compiled/compileshaders.log"
[2/42] C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0601 -D_WIN7_PLATFORM_UPDATE -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\x64-windows-sp-dbg\Shaders\Compiled -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Src -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Inc -external:IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\build\vcpkg_installed\x64-windows-sp\include\directxmath -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MTd /Z7 /Ob0 /Od /RTC1  -MTd /Wall /GR /fp:fast /sdl /permissive- /JMC- /Zc:__cplusplus /Zc:inline /ZH:SHA_256 /Zc:preprocessor /wd5105 /Zc:lambda /Zc:templateScope /Zc:checkGwOdr /wd5262 -std:c++17 /YcF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /FpF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/./cmake_pch.cxx.pch /FIF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles\DirectXTK.dir\cmake_pch.cxx.obj /FdCMakeFiles\DirectXTK.dir\DirectXTK.pdb /FS -c F:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\x64-windows-sp-dbg\CMakeFiles\DirectXTK.dir\cmake_pch.cxx
FAILED: CMakeFiles/DirectXTK.dir/cmake_pch.cxx.obj 
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0601 -D_WIN7_PLATFORM_UPDATE -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\x64-windows-sp-dbg\Shaders\Compiled -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Src -IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Inc -external:IF:\Files\Work\SkyMpServers\JustSkyMp\skymp\build\vcpkg_installed\x64-windows-sp\include\directxmath -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MTd /Z7 /Ob0 /Od /RTC1  -MTd /Wall /GR /fp:fast /sdl /permissive- /JMC- /Zc:__cplusplus /Zc:inline /ZH:SHA_256 /Zc:preprocessor /wd5105 /Zc:lambda /Zc:templateScope /Zc:checkGwOdr /wd5262 -std:c++17 /YcF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /FpF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/./cmake_pch.cxx.pch /FIF:/Files/Work/SkyMpServers/JustSkyMp/skymp/vcpkg/buildtrees/directxtk/x64-windows-sp-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles\DirectXTK.dir\cmake_pch.cxx.obj /FdCMakeFiles\DirectXTK.dir\DirectXTK.pdb /FS -c F:\Files\Work\SkyMpServers\JustSkyMp\skymp\vcpkg\buildtrees\directxtk\x64-windows-sp-dbg\CMakeFiles\DirectXTK.dir\cmake_pch.cxx
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(347): error C7527: 'TDelegateInterface': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(345): note: see previous definition of 'TDelegateInterface'
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(369): note: see reference to class template instantiation 'Microsoft::WRL::Details::DelegateArgTraits<HRESULT(__cdecl TDelegateInterface::* )(TArgs...)>' being compiled
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(347): error C7527: 'TArgs': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(345): note: see previous definition of 'TArgs'
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(360): error C7527: 'TDelegateInterface': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(345): note: see previous definition of 'TDelegateInterface'
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(375): error C7527: 'TDelegateInterface': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(373): note: see previous definition of 'TDelegateInterface'
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(397): note: see reference to class template instantiation 'Microsoft::WRL::Details::DelegateArgTraits<HRESULT(__cdecl TDelegateInterface::* )(TArgs...) noexcept>' being compiled
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(375): error C7527: 'TArgs': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(373): note: see previous definition of 'TArgs'
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(388): error C7527: 'TDelegateInterface': a template parameter name cannot be reused within its scope
C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt\wrl\event.h(373): note: see previous definition of 'TDelegateInterface'
ninja: build stopped: subcommand failed.
kkEngine commented 1 year ago

see https://github.com/microsoft/DirectXTK/issues/389 You can install Win 11 SDK (it's ok for win10) to solve the issue. Or wait for the latest directxtk with this PR (https://github.com/microsoft/DirectXTK/pull/390) to be included in vcpkg. Or make your overlay port in vcpkg.