Packaging game failed, Cannot compile from VS, C++ common tools installed

Hi all.

I converted my project from 4.8.3 to 4.12.5, and cleaned up the warnings/changed functions. I cannot package my game to Windows, but I can compile it in-editor. VS appears to be giving problems as well.

I’m using Visual Studio 2015 Community, and common c++ tools are installed. Two logs are below: from VS, and from UE4 when packaging to win64.

Log from VS compiling under “Development” configuration:

1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
1>  Creating makefile for ShaderCompileWorker (UnrealBuildTool.exe is newer)
1>  Target is up to date
2>------ Build started: Project: Traveler, Configuration: Development_Game x64 ------
2>  Creating makefile for Traveler (.uproject file is newer)
2>  Performing 5 actions (4 in parallel)
2>  PCH.UELinkerFixupsName.h.cpp
2>  Traveler.generated.cpp
2>  TimeTravelComponent_Pickuppable.cpp
2>  UELinkerFixups.cpp
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(33): error C2872: 'terminate_handler': ambiguous symbol
2>  C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(34): error C2872: 'terminate_handler': ambiguous symbol
2>  C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(37): error C2872: 'terminate_handler': ambiguous symbol
2>  C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
2>D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(35): error C2872: 'unexpected_handler': ambiguous symbol
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
2>D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(36): error C2872: 'unexpected_handler': ambiguous symbol
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
2>D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(39): error C2872: 'unexpected_handler': ambiguous symbol
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(33): error C2872: 'terminate_handler': ambiguous symbol
2>  C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(34): error C2872: 'terminate_handler': ambiguous symbol
2>  C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(37): error C2872: 'terminate_handler': ambiguous symbol
2>  C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
2>D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(35): error C2872: 'unexpected_handler': ambiguous symbol
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
2>D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(36): error C2872: 'unexpected_handler': ambiguous symbol
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
2>D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(39): error C2872: 'unexpected_handler': ambiguous symbol
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
2>  D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
2>ERROR : UBT error : Failed to produce item: D:\Projects\Unreal Projects\Traveler\Binaries\Win64\Traveler.exe
2>  Total build time: 92.69 seconds
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ""D:\Program Files\Unreal412win\UnrealEngine\Engine\Build\BatchFiles\Build.bat" Traveler Win64 Development "D:\Projects\Unreal Projects\Traveler\Traveler.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
========== Build: 1 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========

Log from UE4’s output when packaging:

LogSavePackage: Save=327.79ms
LogSavePackage: Moving '../../../../../../Projects/Unreal Projects/Traveler/Saved/UEDPCMainMenu4544AB7B4BAC51A063CBD5A9DEB27F9E.tmp' to '../../../../../../Projects/Unreal Projects/Traveler/Saved/Autosaves/Game/TravelerContent/Maps/UEDPCMainMenu.umap'
LogSavePackage:Display: Finished SavePackage ../../../../../../Projects/Unreal Projects/Traveler/Saved/Autosaves/Game/TravelerContent/Maps/UEDPCMainMenu.umap
LogEditorTransaction: Undo Spawn Play From Here Start
MainFrameActions: Packaging (Windows (64-bit)): Running AutomationTool...
MainFrameActions: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=D:/Projects/Unreal Projects/Traveler/Traveler.uproject BuildCookRun -nocompileeditor -nop4 -project=D:/Projects/Unreal Projects/Traveler/Traveler.uproject -cook -stage -archive -archived
MainFrameActions: Packaging (Windows (64-bit)): irectory=D:/Desktop/Traveler_Win -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -CrashReporter -utf8output -compile
MainFrameActions: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment.
MainFrameActions: Packaging (Windows (64-bit)): ScriptCompiler.FindAndCompileScriptModules: Compiling scripts.
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   DotNETUtilities -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\DotNETUtilities.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   EnvVarsToXML -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\EnvVarsToXML.exe
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   UnrealBuildTool -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool.exe
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   AutomationUtils.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationUtils.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   AllDesktop.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\AllDesktop\AllDesktop.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   GUBP.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\GUBP.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   Localization.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\Localization.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   OneSkyLocalization.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\OneSkyLocalization.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   AutomationScripts.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\AutomationScripts.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   Android.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\Android\Android.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   BuildGraph.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\BuildGraph.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   HTML5.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\HTML5\HTML5.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   DeploymentInterface -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\IOS\DeploymentInterface.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   IOS.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\IOS\IOS.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   Linux.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\Linux\Linux.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   Mac.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\Mac\Mac.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   TVOS.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\TVOS\TVOS.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   Win.Automation -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\Win.Automation.dll
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 6.6503804s to run MSBuild.exe, ExitCode=0
MainFrameActions: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for D:\Projects\Unreal Projects\Traveler\Traveler.uproject
MainFrameActions: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED **********
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe "D:/Program Files/Unreal412win/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj" /verbosity:minimal /target:Rebuild /property:Configuration=Development /property:Platform=AnyCPU
MainFrameActions: Packaging (Windows (64-bit)): MSBuild: Microsoft (R) Build Engine version 4.6.1055.0
MainFrameActions: Packaging (Windows (64-bit)): MSBuild: [Microsoft .NET Framework, version 4.0.30319.42000]
MainFrameActions: Packaging (Windows (64-bit)): MSBuild: Copyright (C) Microsoft Corporation. All rights reserved.
MainFrameActions: Packaging (Windows (64-bit)): MSBuild: 
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   DotNETUtilities -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\DotNETUtilities.dll
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   EnvVarsToXML -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\EnvVarsToXML.exe
MainFrameActions: Packaging (Windows (64-bit)): MSBuild:   UnrealBuildTool -> D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool.exe
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 1.9661125s to run MSBuild.exe, ExitCode=0
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool.exe Traveler Win64 Development -Project="D:\Projects\Unreal Projects\Traveler\Traveler.uproject"  "D:\Projects\Unreal Projects\Traveler\Traveler.uproject"  -remoteini="D:\Projects\Unreal Projects\Traveler" -
noxge -generatemanifest -NoHotReloadFromIDE
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 3.9252245s to run UnrealBuildTool.exe, ExitCode=0
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool.exe Traveler Win64 Development -Project="D:\Projects\Unreal Projects\Traveler\Traveler.uproject"  "D:\Projects\Unreal Projects\Traveler\Traveler.uproje
MainFrameActions: Packaging (Windows (64-bit)): ct"  -remoteini="D:\Projects\Unreal Projects\Traveler" -noxge -NoHotReloadFromIDE -ignorejunk
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Creating makefile for Traveler (UnrealBuildTool.exe is newer)
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Performing 3 actions (4 in parallel)
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: TimeTravelComponent_Pickuppable.cpp
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Traveler.generated.cpp
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(33): error C2872: 'terminate_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(34): error C2872: 'terminate_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(37): error C2872: 'terminate_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(35): error C2872: 'unexpected_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(36): error C2872: 'unexpected_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(39): error C2872: 'unexpected_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(33): error C2872: 'terminate_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(34): error C2872: 'terminate_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(37): error C2872: 'terminate_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void (__cdecl *__cdecl terminate_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(192): note: or       'std::terminate_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(35): error C2872: 'unexpected_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(36): error C2872: 'unexpected_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(39): error C2872: 'unexpected_handler': ambiguous symbol
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\eh.h(19): note: could be 'void (__cdecl *__cdecl unexpected_handler)(void)'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Program Files (x86)\VS2015Community\VC\INCLUDE\exception(193): note: or       'std::unexpected_handler'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\Projects\Unreal Projects\Traveler\Binaries\Win64\Traveler.exe
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Total build time: 130.33 seconds
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 130.4334603s to run UnrealBuildTool.exe, ExitCode=5
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Command failed (Result:5): D:\Program Files\Unreal412win\UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool.exe Traveler Win64 Development -Project="D:\Proj
MainFrameActions: Packaging (Windows (64-bit)): ects\Unreal Projects\Traveler\Traveler.uproject"  "D:\Projects\Unreal Projects\Traveler\Traveler.uproject"  -remoteini="D:\Projects\Unreal Projects\Traveler" -noxge -NoHotReloadFromIDE -ignorejunk. See logfile for details: 'UnrealBuildTool-2016.07.29-13.33.08.txt' 
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars) in D:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUtils.cs:line 814
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars) in D:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:line 52
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary`2 EnvV
ars) in D:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 355
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumberOverride,
 Dictionary`2 InTargetToManifest) in D:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 1443
MainFrameActions: Packaging (Windows (64-bit)):    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) in d:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\BuildProjectCommand.Automation.cs:line 150
MainFrameActions: Packaging (Windows (64-bit)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params) in d:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 211
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.BuildCommand.Execute() in D:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 28
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) in D:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 538
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Process(String[] CommandLine) in D:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 509
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Program.MainProc(Object Param) in D:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\Program.cs:line 131
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param) in D:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 704
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Program.Main() in D:\Program Files\Unreal412win\UnrealEngine\Engine\Source\Programs\AutomationTool\Program.cs:line 54
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
MainFrameActions: Packaging (Windows (64-bit)): Domain_ProcessExit
MainFrameActions: Packaging (Windows (64-bit)): AutomationToolLauncher exiting with ExitCode=5
MainFrameActions: Packaging (Windows (64-bit)): copying UAT log files...
MainFrameActions: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

It appears someone else is having this problem, too:

And a translation from a German forum:
https://translate.google.ca/translate?hl=en&sl=de&u=https://www.unrealengine4.de/index.php%3Fthread/1043-unreal-deployment-funktioniert-nicht/&prev=search

I’m able to package a blank project. The problem is not resolved when running VS as administrator.

Nothing is including any windows-specific files, either :confused:

Here’s the error summary when trying to build to linux(My toolchain is already set up, and I have built this in Linux in 4.8). The errors are very different, but once again don’t point to a spot in the project:

I was able to package for linux through fixing errors that had no reason to be errors (“Consider using SetupAttachment in constructors instead”), and compiling, then packaging again.

But, I still cannot package for windows. Still getting error C2872.

When this problem is resolved, I’ll still put “nonspecific error messages” in bug reports

Did you convert all the way from 4.8.3 to 4.12.5 all at once? If so, that’s quite a bit risky. If you have the time I would suggest going back and converting 1 release at a time and fixing the errors/warnings you get at the time. The conversion process can be tricky either way, doing multiple versions at once can cause issues that we don’t normally see.

If that doesn’t help, could you create a new C++ project in 4.12.5 to ensure that it will compile correctly? We should ensure that it isn’t an engine installation or VS issue first.

Try deleting the ‘intermediate’ folder in the your project directory (backup the project else were first) … two days ago I encountered similar error while building (automation tool exit code=5) … Solved by deleting the intermediate folder and then regenerating project files by right clicking on the ‘.uproject’ file

I did convert it directly.
And yes, I can make blank c++ projects in 4.12.5. This project also builds to linux, which makes it strange that building to windows doesn’t work.

I did regenerate project files, but unsure if I deleted the intermediate folder. Will try again while doing that.

Unfortunately, this did not work. I believe that automationtool exiting with error code 5 simply means something went wrong, and doesn’t signify a specific problem.

If you still have the original project from 4.8.3, would you be able to try converting one major release at a time? As far as Error code 5 goes, you’re correct. Error Code 5 simply means “The build has failed” and doesn’t really say anything else. The messages about these includes are most likely the issue here.

We haven’t heard from you in a while, Willtheoct. Are you still experiencing this issue? If so, have you had a chance to try what I mentioned in my latest comment? In the meantime, I’ll be marking this as resolved for tracking purposes.

I’ve begun the process a while back, but now when converting from 4.9 to 4.10, I cannot open the project, and there is no prompt to convert the project. The editor simply shows an error box and then crashes, with the following info:
The procedure entry point ?CalcNewComponentToWorld@USceneComponent@@MEBA?AUFTransform@@AEBU2@PEBV1@@Z could not be located in the dynamic link library UE4Editor-Engine.dll

I’m going to try cleaning my git repo of 4.10, and then I’ll try converting the 4.9, and if that fails, I’ll try the 4.8 to 4.10.

It’s unfortunately a very, very long process to upgrade one version at a time, but I’ll keep at it.

IIRC, the error starts happening at 4.9, but it might have been 4.10.

I resorted to deleting content and code until the error disappears, and it seems(though not 100% sure yet) that it’s because I’m using std::shared_ptr in one of my files. Removing references to that, and #include < memory >, have fixed the C2872 error, but now I’m having other problems. I will post as an answer once I’ve confirmed that I can package the game.

The solution was to remove #include < memory > and std::shared_ptr from some source files. This is still a bug with the engine, especially since it does not indicate where the problem lies whatsoever, but I’m glad there is a solution.